OSDN Git Service

resize2fs: enforce the 16TB limit on 32-bit file systems correctly
authorTheodore Ts'o <tytso@mit.edu>
Fri, 7 Sep 2012 04:05:21 +0000 (00:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 14 Sep 2012 03:04:44 +0000 (23:04 -0400)
commitea38e503073c2c541517ff5fb92135cc4a470a77
tree048d4f47ce305e3b394ea2e7ba70e5c24734a47e
parentab3f5c5aad6310be1d1891c05f1bc8cf7ccf0cef
resize2fs: enforce the 16TB limit on 32-bit file systems correctly

The 16TB limit must be enforced regardless of whether the new size is
specified on the command line or implied by the size of the device,
but only if the file system does not support 64-bit block sizes, or
the kernel does not advertise support of meta_bg resizing.

Previously we were unconditionally enforcing it when it was implied by
the device size, but not if the new size was specified on the command
line.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/main.c