Whamcloud - gitweb
resize2fs: treat EINVAL to mean the new resize ioctl does not exist
authorTheodore Ts'o <tytso@mit.edu>
Sun, 20 Nov 2011 21:13:06 +0000 (16:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 20 Nov 2011 21:16:41 +0000 (16:16 -0500)
commit3f6fbf95c0f1c1dc2fc70692ee3e6c49f170df80
tree1d6a18e57bf909d90e3d30aa307cf33c880f8ebc
parent13dcce8bb46961fcab14e87343e25aaebef7f44c
resize2fs: treat EINVAL to mean the new resize ioctl does not exist

Linux's compat_sys_ioctl() function, which is run when executing a
ioctl using a 32-bit binary on a 64-bit kernel, returns EINVAL when an
inode does not exist.  Sigh.  See /usr/src/linux/fs/compat_ioctl.c.
This is probably a kernel bug, but work around it for now.

Addresses-Debian-Bug: #644989

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