mkfs.f2fs: should initialize sparse file in Windows

Otherwise it fails to format in Windows.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2020-07-17 19:58:22 -07:00
parent 17463f9c42
commit ec0f3c910e

View File

@ -1158,6 +1158,8 @@ int get_device_info(int i)
c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size;
c.total_sectors += dev->total_sectors;
if (c.sparse_mode && f2fs_init_sparse_file())
return -1;
return 0;
}
#endif