Whamcloud - gitweb
resize2fs: fix on-line resizing
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 00:35:19 +0000 (20:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 00:55:34 +0000 (20:55 -0400)
commit200569608fc6e33f6546c17999f14fb5dbb0b9b5
treec41d5df204e5c381294339d92d15a06ff9a7f5ae
parent756690a29e088946129bed95066ec146f79fab89
resize2fs: fix on-line resizing

On-line resizing has been broken in the 1.42 series for two reasons:
(a) the call to the new EXT4_IOC_RESIZE_FS ioctl checked for ENOTTY to
indicate that the ioctl does not exist, when in fact EINVAL is what is
returned if the ioctl doesn't exist.  (b) resize2fs was passing in a
pointer to a 64-bit value, when the ioctl expected a 32-bit value.
This was OK on little-endian systems, but it wouldn't work at all on
big-endian systems.

Fix both problems.

Addresses-Debian-Bug: #451388

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