diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/btrfs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index 45e618921c61..b4d69092fbdb 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h | |||
@@ -184,6 +184,12 @@ struct btrfs_ioctl_fs_info_args { | |||
184 | __u64 reserved[124]; /* pad to 1k */ | 184 | __u64 reserved[124]; /* pad to 1k */ |
185 | }; | 185 | }; |
186 | 186 | ||
187 | struct btrfs_ioctl_feature_flags { | ||
188 | __u64 compat_flags; | ||
189 | __u64 compat_ro_flags; | ||
190 | __u64 incompat_flags; | ||
191 | }; | ||
192 | |||
187 | /* balance control ioctl modes */ | 193 | /* balance control ioctl modes */ |
188 | #define BTRFS_BALANCE_CTL_PAUSE 1 | 194 | #define BTRFS_BALANCE_CTL_PAUSE 1 |
189 | #define BTRFS_BALANCE_CTL_CANCEL 2 | 195 | #define BTRFS_BALANCE_CTL_CANCEL 2 |
@@ -606,5 +612,11 @@ static inline char *btrfs_err_str(enum btrfs_err_code err_code) | |||
606 | struct btrfs_ioctl_dev_replace_args) | 612 | struct btrfs_ioctl_dev_replace_args) |
607 | #define BTRFS_IOC_FILE_EXTENT_SAME _IOWR(BTRFS_IOCTL_MAGIC, 54, \ | 613 | #define BTRFS_IOC_FILE_EXTENT_SAME _IOWR(BTRFS_IOCTL_MAGIC, 54, \ |
608 | struct btrfs_ioctl_same_args) | 614 | struct btrfs_ioctl_same_args) |
615 | #define BTRFS_IOC_GET_FEATURES _IOR(BTRFS_IOCTL_MAGIC, 57, \ | ||
616 | struct btrfs_ioctl_feature_flags) | ||
617 | #define BTRFS_IOC_SET_FEATURES _IOW(BTRFS_IOCTL_MAGIC, 57, \ | ||
618 | struct btrfs_ioctl_feature_flags[2]) | ||
619 | #define BTRFS_IOC_GET_SUPPORTED_FEATURES _IOR(BTRFS_IOCTL_MAGIC, 57, \ | ||
620 | struct btrfs_ioctl_feature_flags[3]) | ||
609 | 621 | ||
610 | #endif /* _UAPI_LINUX_BTRFS_H */ | 622 | #endif /* _UAPI_LINUX_BTRFS_H */ |