mirror of https://github.com/vitalif/e2fsprogs
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>bitmap-optimize
parent
d568782ade
commit
b1503c446a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue