The minimum volume size is determined while preparing superblock. Signed-off-by: Jaegeuk Kim <jaeg...@kernel.org> --- include/f2fs_fs.h | 1 - lib/libf2fs.c | 7 ------- 2 files changed, 8 deletions(-)
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index 59cc0d1..38a774c 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -209,7 +209,6 @@ static inline uint64_t bswap_64(uint64_t val) #define CHECKSUM_OFFSET 4092 /* for mkfs */ -#define F2FS_MIN_VOLUME_SIZE 104857600 #define F2FS_NUMBER_OF_CHECKPOINT_PACK 2 #define DEFAULT_SECTOR_SIZE 512 #define DEFAULT_SECTORS_PER_BLOCK 8 diff --git a/lib/libf2fs.c b/lib/libf2fs.c index e8f4d47..83d1296 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -499,13 +499,6 @@ int f2fs_get_device_info(struct f2fs_configuration *c) MSG(0, "Info: sector size = %u\n", c->sector_size); MSG(0, "Info: total sectors = %"PRIu64" (%"PRIu64" MB)\n", c->total_sectors, c->total_sectors >> 11); - if (c->total_sectors < - (F2FS_MIN_VOLUME_SIZE / c->sector_size)) { - MSG(0, "Error: Min volume size supported is %d\n", - F2FS_MIN_VOLUME_SIZE); - return -1; - } - return 0; } -- 2.1.1 ------------------------------------------------------------------------------ _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel