diff options
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl32.c | 8 | ||||
-rw-r--r-- | fs/xfs/xfs_fs.h | 10 |
2 files changed, 12 insertions, 6 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.c b/fs/xfs/linux-2.6/xfs_ioctl32.c index bf2a956b63c2..83463c27545c 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl32.c +++ b/fs/xfs/linux-2.6/xfs_ioctl32.c | |||
@@ -379,9 +379,6 @@ xfs_compat_ioctl( | |||
379 | switch (cmd) { | 379 | switch (cmd) { |
380 | case XFS_IOC_DIOINFO: | 380 | case XFS_IOC_DIOINFO: |
381 | case XFS_IOC_FSGEOMETRY: | 381 | case XFS_IOC_FSGEOMETRY: |
382 | case XFS_IOC_GETVERSION: | ||
383 | case XFS_IOC_GETXFLAGS: | ||
384 | case XFS_IOC_SETXFLAGS: | ||
385 | case XFS_IOC_FSGETXATTR: | 382 | case XFS_IOC_FSGETXATTR: |
386 | case XFS_IOC_FSSETXATTR: | 383 | case XFS_IOC_FSSETXATTR: |
387 | case XFS_IOC_FSGETXATTRA: | 384 | case XFS_IOC_FSGETXATTRA: |
@@ -407,6 +404,11 @@ xfs_compat_ioctl( | |||
407 | case XFS_IOC_ERROR_CLEARALL: | 404 | case XFS_IOC_ERROR_CLEARALL: |
408 | break; | 405 | break; |
409 | 406 | ||
407 | case XFS_IOC32_GETXFLAGS: | ||
408 | case XFS_IOC32_SETXFLAGS: | ||
409 | case XFS_IOC32_GETVERSION: | ||
410 | cmd = _NATIVE_IOC(cmd, long); | ||
411 | break; | ||
410 | #ifdef BROKEN_X86_ALIGNMENT | 412 | #ifdef BROKEN_X86_ALIGNMENT |
411 | /* xfs_flock_t has wrong u32 vs u64 alignment */ | 413 | /* xfs_flock_t has wrong u32 vs u64 alignment */ |
412 | case XFS_IOC_ALLOCSP_32: | 414 | case XFS_IOC_ALLOCSP_32: |
diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/xfs_fs.h index aab966276517..3bed6433d050 100644 --- a/fs/xfs/xfs_fs.h +++ b/fs/xfs/xfs_fs.h | |||
@@ -419,9 +419,13 @@ typedef struct xfs_handle { | |||
419 | /* | 419 | /* |
420 | * ioctl commands that are used by Linux filesystems | 420 | * ioctl commands that are used by Linux filesystems |
421 | */ | 421 | */ |
422 | #define XFS_IOC_GETXFLAGS _IOR('f', 1, long) | 422 | #define XFS_IOC_GETXFLAGS FS_IOC_GETFLAGS |
423 | #define XFS_IOC_SETXFLAGS _IOW('f', 2, long) | 423 | #define XFS_IOC_SETXFLAGS FS_IOC_SETFLAGS |
424 | #define XFS_IOC_GETVERSION _IOR('v', 1, long) | 424 | #define XFS_IOC_GETVERSION FS_IOC_GETVERSION |
425 | /* 32-bit compat counterparts */ | ||
426 | #define XFS_IOC32_GETXFLAGS FS_IOC32_GETFLAGS | ||
427 | #define XFS_IOC32_SETXFLAGS FS_IOC32_SETFLAGS | ||
428 | #define XFS_IOC32_GETVERSION FS_IOC32_GETVERSION | ||
425 | 429 | ||
426 | /* | 430 | /* |
427 | * ioctl commands that replace IRIX fcntl()'s | 431 | * ioctl commands that replace IRIX fcntl()'s |