diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 15 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl32.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_fs.h | 4 |
3 files changed, 2 insertions, 19 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index 67205f6198ba..e5be1e0be802 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c | |||
@@ -1546,21 +1546,6 @@ xfs_file_ioctl( | |||
1546 | return -error; | 1546 | return -error; |
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | case XFS_IOC_FREEZE: | ||
1550 | if (!capable(CAP_SYS_ADMIN)) | ||
1551 | return -EPERM; | ||
1552 | |||
1553 | if (inode->i_sb->s_frozen == SB_UNFROZEN) | ||
1554 | freeze_bdev(inode->i_sb->s_bdev); | ||
1555 | return 0; | ||
1556 | |||
1557 | case XFS_IOC_THAW: | ||
1558 | if (!capable(CAP_SYS_ADMIN)) | ||
1559 | return -EPERM; | ||
1560 | if (inode->i_sb->s_frozen != SB_UNFROZEN) | ||
1561 | thaw_bdev(inode->i_sb->s_bdev, inode->i_sb); | ||
1562 | return 0; | ||
1563 | |||
1564 | case XFS_IOC_GOINGDOWN: { | 1549 | case XFS_IOC_GOINGDOWN: { |
1565 | __uint32_t in; | 1550 | __uint32_t in; |
1566 | 1551 | ||
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.c b/fs/xfs/linux-2.6/xfs_ioctl32.c index 0504cece9f66..50903ad3182e 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl32.c +++ b/fs/xfs/linux-2.6/xfs_ioctl32.c | |||
@@ -632,8 +632,6 @@ xfs_file_compat_ioctl( | |||
632 | case XFS_IOC_SET_RESBLKS: | 632 | case XFS_IOC_SET_RESBLKS: |
633 | case XFS_IOC_GET_RESBLKS: | 633 | case XFS_IOC_GET_RESBLKS: |
634 | case XFS_IOC_FSGROWFSLOG: | 634 | case XFS_IOC_FSGROWFSLOG: |
635 | case XFS_IOC_FREEZE: | ||
636 | case XFS_IOC_THAW: | ||
637 | case XFS_IOC_GOINGDOWN: | 635 | case XFS_IOC_GOINGDOWN: |
638 | case XFS_IOC_ERROR_INJECTION: | 636 | case XFS_IOC_ERROR_INJECTION: |
639 | case XFS_IOC_ERROR_CLEARALL: | 637 | case XFS_IOC_ERROR_CLEARALL: |
diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/xfs_fs.h index 589c41c38446..f7c06fac8229 100644 --- a/fs/xfs/xfs_fs.h +++ b/fs/xfs/xfs_fs.h | |||
@@ -465,8 +465,8 @@ typedef struct xfs_handle { | |||
465 | #define XFS_IOC_ERROR_INJECTION _IOW ('X', 116, struct xfs_error_injection) | 465 | #define XFS_IOC_ERROR_INJECTION _IOW ('X', 116, struct xfs_error_injection) |
466 | #define XFS_IOC_ERROR_CLEARALL _IOW ('X', 117, struct xfs_error_injection) | 466 | #define XFS_IOC_ERROR_CLEARALL _IOW ('X', 117, struct xfs_error_injection) |
467 | /* XFS_IOC_ATTRCTL_BY_HANDLE -- deprecated 118 */ | 467 | /* XFS_IOC_ATTRCTL_BY_HANDLE -- deprecated 118 */ |
468 | #define XFS_IOC_FREEZE _IOWR('X', 119, int) | 468 | /* XFS_IOC_FREEZE -- FIFREEZE 119 */ |
469 | #define XFS_IOC_THAW _IOWR('X', 120, int) | 469 | /* XFS_IOC_THAW -- FITHAW 120 */ |
470 | #define XFS_IOC_FSSETDM_BY_HANDLE _IOW ('X', 121, struct xfs_fsop_setdm_handlereq) | 470 | #define XFS_IOC_FSSETDM_BY_HANDLE _IOW ('X', 121, struct xfs_fsop_setdm_handlereq) |
471 | #define XFS_IOC_ATTRLIST_BY_HANDLE _IOW ('X', 122, struct xfs_fsop_attrlist_handlereq) | 471 | #define XFS_IOC_ATTRLIST_BY_HANDLE _IOW ('X', 122, struct xfs_fsop_attrlist_handlereq) |
472 | #define XFS_IOC_ATTRMULTI_BY_HANDLE _IOW ('X', 123, struct xfs_fsop_attrmulti_handlereq) | 472 | #define XFS_IOC_ATTRMULTI_BY_HANDLE _IOW ('X', 123, struct xfs_fsop_attrmulti_handlereq) |