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:
0b5b9f9
)
resize2fs: calculate minimal fs size only once
author
Peng Tao
<bergwolf@gmail.com>
Fri, 4 Sep 2009 07:22:39 +0000
(15:22 +0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 7 Sep 2009 18:20:52 +0000
(14:20 -0400)
When running resize2fs -M, no need to recalculate the minimal fs size.
Signed-off-by: "Peng Tao" <bergwolf@gmail.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
c6cbb5e
..
220c192
100644
(file)
--- a/
resize/main.c
+++ b/
resize/main.c
@@
-375,7
+375,7
@@
int main (int argc, char ** argv)
exit(1);
}
if (force_min_size)
- new_size =
calculate_minimum_resize_size(fs)
;
+ new_size =
min_size
;
else if (new_size_str) {
new_size = parse_num_blocks(new_size_str,
fs->super->s_log_block_size);