diff options
| author | Christoph Hellwig <[email protected]> | 2009-02-26 20:32:51 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-02-28 00:27:45 +0000 |
| commit | 5cf8cf4146de03de67d1a8aefbece66b65f255cc (patch) | |
| tree | ced1ae8ce6217acdc717a394e7ebbdb5dcb1886e | |
| parent | hpilo: new pci device (diff) | |
| download | kernel-5cf8cf4146de03de67d1a8aefbece66b65f255cc.tar.gz kernel-5cf8cf4146de03de67d1a8aefbece66b65f255cc.zip | |
Fix FREEZE/THAW compat_ioctl regression
Commit 8e961870bb9804110d5c8211d5d9d500451c4518 removed the FREEZE/THAW
handling in xfs_compat_ioctl but never added any compat handler back, so
now any freeze/thaw request from a 32-bit binary ond 64-bit userspace
will fail.
As these ioctls are 32/64-bit compatible two simple COMPATIBLE_IOCTL
entries in fs/compat_ioctl.c will do the job.
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
| -rw-r--r-- | fs/compat_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 39bd4d38e889..45e59d3c7f1f 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -1913,6 +1913,9 @@ COMPATIBLE_IOCTL(FIONREAD) /* This is also TIOCINQ */ /* 0x00 */ COMPATIBLE_IOCTL(FIBMAP) COMPATIBLE_IOCTL(FIGETBSZ) +/* 'X' - originally XFS but some now in the VFS */ +COMPATIBLE_IOCTL(FIFREEZE) +COMPATIBLE_IOCTL(FITHAW) /* RAID */ COMPATIBLE_IOCTL(RAID_VERSION) COMPATIBLE_IOCTL(GET_ARRAY_INFO) |
