diff options
author | Kazuya Mio <k-mio@sx.jp.nec.com> | 2011-04-18 20:11:34 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-31 20:07:38 -0400 |
commit | b1503c446a9cd3041c94945df7a9772e812dbd21 (patch) | |
tree | 7eeb96f4cabf72ac879d089aea50256811a9b906 /misc | |
parent | d568782ade9b630a6f28f24b1357fc89a6ba8286 (diff) | |
download | e2fsprogs-b1503c446a9cd3041c94945df7a9772e812dbd21.tar.gz |
e2fsprogs: Unify the upper limit of reserved blocks count
In e2fsprogs, the upper limit of reserved blocks count is a half of
filesystem's blocks count. This patch fixes the incorrect checks of
reserved blocks count.
Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tune2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c index e5722a5a..9d2b12cc 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -1715,7 +1715,7 @@ retry_open: reserved_ratio, sb->s_r_blocks_count); } if (r_flag) { - if (reserved_blocks >= sb->s_blocks_count/2) { + if (reserved_blocks > sb->s_blocks_count/2) { com_err(program_name, 0, _("reserved blocks count is too big (%lu)"), reserved_blocks); |