aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/btrfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/btrfs.h')
-rw-r--r--include/uapi/linux/btrfs.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h
index f8f20d72b852..f90d10478235 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -785,6 +785,22 @@ struct btrfs_ioctl_get_subvol_info_args {
785 __u64 reserved[8]; 785 __u64 reserved[8];
786}; 786};
787 787
788#define BTRFS_MAX_ROOTREF_BUFFER_NUM 255
789struct btrfs_ioctl_get_subvol_rootref_args {
790 /* in/out, minimum id of rootref's treeid to be searched */
791 __u64 min_treeid;
792
793 /* out */
794 struct {
795 __u64 treeid;
796 __u64 dirid;
797 } rootref[BTRFS_MAX_ROOTREF_BUFFER_NUM];
798
799 /* out, number of found items */
800 __u8 num_items;
801 __u8 align[7];
802};
803
788/* Error codes as returned by the kernel */ 804/* Error codes as returned by the kernel */
789enum btrfs_err_code { 805enum btrfs_err_code {
790 BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, 806 BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1,
@@ -905,5 +921,7 @@ enum btrfs_err_code {
905 struct btrfs_ioctl_logical_ino_args) 921 struct btrfs_ioctl_logical_ino_args)
906#define BTRFS_IOC_GET_SUBVOL_INFO _IOR(BTRFS_IOCTL_MAGIC, 60, \ 922#define BTRFS_IOC_GET_SUBVOL_INFO _IOR(BTRFS_IOCTL_MAGIC, 60, \
907 struct btrfs_ioctl_get_subvol_info_args) 923 struct btrfs_ioctl_get_subvol_info_args)
924#define BTRFS_IOC_GET_SUBVOL_ROOTREF _IOWR(BTRFS_IOCTL_MAGIC, 61, \
925 struct btrfs_ioctl_get_subvol_rootref_args)
908 926
909#endif /* _UAPI_LINUX_BTRFS_H */ 927#endif /* _UAPI_LINUX_BTRFS_H */