mkfs.f2fs: don't need to limit MIN_VOLUME SIZE
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 Aug 2015 00:58:40 +0000 (17:58 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 Aug 2015 00:58:40 +0000 (17:58 -0700)
The minimum volume size is determined while preparing superblock.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/f2fs_fs.h
lib/libf2fs.c

index 59cc0d1..38a774c 100644 (file)
@@ -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
index e8f4d47..83d1296 100644 (file)
@@ -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;
 }