mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-27 04:00:57 +00:00
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:
parent
17463f9c42
commit
ec0f3c910e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user