projects
/
platform
/
upstream
/
f2fs-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17463f9
)
mkfs.f2fs: should initialize sparse file in Windows
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 18 Jul 2020 02:58:22 +0000
(19:58 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 21 Jul 2020 00:39:02 +0000
(17:39 -0700)
Otherwise it fails to format in Windows.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
lib/libf2fs.c
patch
|
blob
|
history
diff --git
a/lib/libf2fs.c
b/lib/libf2fs.c
index
55d3a5c
..
5937076
100644
(file)
--- a/
lib/libf2fs.c
+++ b/
lib/libf2fs.c
@@
-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