From: Kazuya Mio Date: Mon, 18 Apr 2011 20:11:34 +0000 (+0000) Subject: e2fsprogs: Unify the upper limit of reserved blocks count X-Git-Tag: v1.42-WIP-0702~34^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1503c446a9cd3041c94945df7a9772e812dbd21;p=thirdparty%2Fe2fsprogs.git 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 Signed-off-by: Theodore Ts'o --- diff --git a/misc/tune2fs.c b/misc/tune2fs.c index e5722a5a5..9d2b12cc2 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);