fs: Remove magic field from partition_info_s

since it is wrong and impossible to return file
system magic number from the block or mtd layer.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-08-18 01:11:04 +08:00
committed by Gustavo Henrique Nihei
parent 3421a0be38
commit af72376773
38 changed files with 0 additions and 39 deletions
-1
View File
@@ -218,7 +218,6 @@ static int cxd56_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
(FAR struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
info->numsectors = priv->density / PAGE_SIZE;
info->sectorsize = PAGE_SIZE;
info->startsector = 0;
-1
View File
@@ -355,7 +355,6 @@ static int lc823450_ioctl(FAR struct mtd_dev_s *dev, int cmd,
(FAR struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
info->numsectors = priv->nblocks;
info->sectorsize = priv->blocksize;
info->startsector = 0;
-1
View File
@@ -893,7 +893,6 @@ static int lpc43_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
(FAR struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
#ifdef CONFIG_SPIFI_SECTOR512
info->numsectors = priv->nblocks <<
(SPIFI_BLKSHIFT - SPIFI_512SHIFT);
-1
View File
@@ -251,7 +251,6 @@ static int ameba_flash_ioctl(FAR struct mtd_dev_s *dev,
(FAR struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
info->numsectors = priv->nsectors *
AMEBA_SECTOR_SIZE / AMEBA_PAGE_SIZE;
info->sectorsize = AMEBA_PAGE_SIZE;
-1
View File
@@ -400,7 +400,6 @@ static int tiva_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
(FAR struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
info->numsectors = TIVA_VIRTUAL_NPAGES;
info->sectorsize = TIVA_FLASH_PAGESIZE;
info->startsector = 0;
-1
View File
@@ -313,7 +313,6 @@ int bl602_ioctl(FAR struct mtd_dev_s *dev, int cmd,
(FAR struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
info->numsectors = priv->config->flash_size /
SPIFLASH_BLOCKSIZE;
info->sectorsize = SPIFLASH_BLOCKSIZE;
@@ -880,7 +880,6 @@ static int esp32c3_ioctl(struct mtd_dev_s *dev, int cmd,
struct partition_info_s *info = (struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
info->numsectors = SPI_FLASH_SIZE / SPI_FLASH_BLK_SIZE;
info->sectorsize = SPI_FLASH_BLK_SIZE;
info->startsector = 0;
-1
View File
@@ -1936,7 +1936,6 @@ static int esp32_ioctl(FAR struct mtd_dev_s *dev, int cmd,
(FAR struct partition_info_s *)arg;
if (info != NULL)
{
info->magic = 0;
info->numsectors = MTD_SIZE(priv) / MTD_BLKSIZE(priv);
info->sectorsize = MTD_BLKSIZE(priv);
info->startsector = 0;