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:
449782c
)
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
Michael Bestas
<mikeioannina@gmail.com>
Sun, 1 Jan 2017 23:30:03 +0000
(
01:30
+0200)
Change-Id: Ifb1f5e70da1faf626ddd9af311556c56ca5cff12
f2fs_utils/f2fs_utils.c
patch
|
blob
|
history
diff --git
a/f2fs_utils/f2fs_utils.c
b/f2fs_utils/f2fs_utils.c
index
9833ace
..
e8bc7bb
100644
(file)
--- a/
f2fs_utils/f2fs_utils.c
+++ b/
f2fs_utils/f2fs_utils.c
@@
-61,7
+61,7
@@
int make_f2fs_sparse_fd(int fd, long long len,
}
reset_f2fs_info();
f2fs_init_configuration(f2fs_config);
- len &= ~((__u64)
F2FS_BLKSIZE
);
+ len &= ~((__u64)
(F2FS_BLKSIZE - 1)
);
f2fs_config->total_sectors = len / f2fs_config->sector_size;
f2fs_config->start_sector = 0;
init_sparse_file(F2FS_BLKSIZE, len);