OSDN Git Service
(root)
/
android-x86
/
system-extras.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea942d
)
fix bug in mkf2fs tool calculation of f2fs filesystem length
author
lei wang wang
<leiwang211@gmail.com>
Mon, 24 Aug 2015 07:47:36 +0000
(15:47 +0800)
committer
lei wang wang
<leiwang211@gmail.com>
Mon, 24 Aug 2015 07:50:14 +0000
(15:50 +0800)
f2fs_utils/f2fs_utils.c
patch
|
blob
|
history
diff --git
a/f2fs_utils/f2fs_utils.c
b/f2fs_utils/f2fs_utils.c
index
4c92622
..
6254c08
100644
(file)
--- a/
f2fs_utils/f2fs_utils.c
+++ b/
f2fs_utils/f2fs_utils.c
@@
-65,7
+65,7
@@
int make_f2fs_sparse_fd(int fd, long long len,
}
reset_f2fs_info();
f2fs_init_configuration(&config);
- len &= ~((__u64)
F2FS_BLKSIZE
);
+ len &= ~((__u64)
(F2FS_BLKSIZE - 1)
);
config.total_sectors = len / config.sector_size;
config.start_sector = 0;
f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, len);