Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05e7f37
)
resize2fs: fix resizing large file systems when block size != page size
author
Theodore Ts'o
<tytso@mit.edu>
Tue, 25 Oct 2016 17:18:14 +0000
(13:18 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 25 Oct 2016 17:18:14 +0000
(13:18 -0400)
Reported by: Jerry Lee <jerrylee@qnap.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c
patch
|
blob
|
history
diff --git
a/resize/main.c
b/resize/main.c
index
5a99483
..
396391b
100644
(file)
--- a/
resize/main.c
+++ b/
resize/main.c
@@
-505,7
+505,7
@@
int main (int argc, char ** argv)
new_size = max_size;
/* Round down to an even multiple of a pagesize */
if (sys_page_size > blocksize)
- new_size &= ~((
sys_page_size / blocksize)-1
);
+ new_size &= ~((
blk64_t)((sys_page_size / blocksize)-1)
);
}
/* If changing 64bit, don't change the filesystem size. */
if (flags & (RESIZE_DISABLE_64BIT | RESIZE_ENABLE_64BIT)) {