aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2009-02-26 21:32:51 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-02-27 16:27:45 -0800
commit5cf8cf4146de03de67d1a8aefbece66b65f255cc (patch)
treeced1ae8ce6217acdc717a394e7ebbdb5dcb1886e /fs
parent31d8b5631f095cb7100cfccc95c801a2547ffe2b (diff)
downloadkernel_goldelico_gta04-5cf8cf4146de03de67d1a8aefbece66b65f255cc.zip
kernel_goldelico_gta04-5cf8cf4146de03de67d1a8aefbece66b65f255cc.tar.gz
kernel_goldelico_gta04-5cf8cf4146de03de67d1a8aefbece66b65f255cc.tar.bz2
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 <hch@lst.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/compat_ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 39bd4d3..45e59d3 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)