7 btrfs-ioctl - documentation for the ioctl interface to btrfs
9 DATA STRUCTURES AND DEFINITIONS
10 -------------------------------
13 struct btrfs_ioctl_vol_args {
15 char name[BTRFS_PATH_NAME_MAX + 1];
19 struct btrfs_ioctl_vol_args_v2 {
26 struct btrfs_qgroup_inherit \__user *qgroup_inherit;
30 char name[BTRFS_SUBVOL_NAME_MAX + 1];
34 BTRFS_SUBVOL_NAME_MAX = 4039
35 BTRFS_PATH_NAME_MAX = 4087
40 BTRFS_IOC_SUBVOL_CREATE -- (obsolete) create a subvolume
53 BTRFS_IOC_SUBVOL_CREATE
54 BTRFS_IOC_SNAP_DESTROY
55 BTRFS_IOC_DEFRAG_RANGE
57 BTRFS_IOC_TREE_SEARCH_V2
59 BTRFS_IOC_DEFAULT_SUBVOL
63 BTRFS_IOC_SNAP_CREATE_V2
64 BTRFS_IOC_SUBVOL_CREATE_V2 -- create a subvolume
65 BTRFS_IOC_SUBVOL_GETFLAGS
66 BTRFS_IOC_SUBVOL_SETFLAGS
68 BTRFS_IOC_SCRUB_CANCEL
69 BTRFS_IOC_SCRUB_PROGRESS
74 BTRFS_IOC_BALANCE_PROGRESS
77 BTRFS_IOC_SET_RECEIVED_SUBVOL
79 BTRFS_IOC_DEVICES_READY
81 BTRFS_IOC_QGROUP_ASSIGN
82 BTRFS_IOC_QGROUP_CREATE
83 BTRFS_IOC_QGROUP_LIMIT
84 BTRFS_IOC_QUOTA_RESCAN
85 BTRFS_IOC_QUOTA_RESCAN_STATUS
86 BTRFS_IOC_QUOTA_RESCAN_WAIT
89 BTRFS_IOC_GET_DEV_STATS
91 BTRFS_IOC_FILE_EXTENT_SAME
92 BTRFS_IOC_GET_FEATURES
93 BTRFS_IOC_SET_FEATURES
94 BTRFS_IOC_GET_SUPPORTED_FEATURES
99 BTRFS_IOC_SUBVOL_CREATE
100 ~~~~~~~~~~~~~~~~~~~~~~~
101 NOTE: obsoleted by BTRFS_IOC_SUBVOL_CREATE_V2
103 _(since: 3.0, obsoleted: 4.0)_ Create a subvolume.
105 ioctl fd:: file descriptor of the parent directory of the new subvolume
106 argument:: struct btrfs_ioctl_vol_args
108 name:: name of the subvolume, although the buffer can be almost 4k, the file
109 size is limited by linux VFS to 255 characters and must not contain a slash
113 BTRFS_IOC_SUBVOL_CREATE_V2
114 ~~~~~~~~~~~~~~~~~~~~~~~~~~
115 NOTE: obsoletes BTRFS_IOC_SUBVOL_CREATE
117 _(since: 3.6)_ Create a subvolume, qgroup inheritance can be specified.
119 ioctl fd:: file descriptor of the parent directory of the new subvolume
120 argument:: struct btrfs_ioctl_vol_args_v2
126 name:: name of the subvolume, although the buffer can be almost 4k, the file
127 size is limited by linux VFS to 255 characters and must not contain a slash
134 *btrfs* is part of btrfs-progs.
135 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for