aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorjeff.liu <[email protected]>2013-01-05 02:48:08 +0000
committerJosef Bacik <[email protected]>2013-02-20 12:59:59 -0500
commita8bfd4abea3da0e28f215e2a2b8c2f1ca27ebe80 (patch)
tree949b78c187f77101b366ca3f189ea25e3d20c870 /include/uapi/linux
parent867ab667e74377160c4a683375ee5b8bf8801724 (diff)
Btrfs: set/change the label of a mounted file system
With this new ioctl(2) BTRFS_IOC_SET_FSLABEL, we can set/change the label of a mounted file system. Signed-off-by: Jie Liu <[email protected]> Signed-off-by: Anand Jain <[email protected]> Reviewed-by: Miao Xie <[email protected]> Reviewed-by: Goffredo Baroncelli <[email protected]> Reviewed-by: David Sterba <[email protected]> Reviewed-by: Goffredo Baroncelli <[email protected]> Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/btrfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h
index 51c0b335e0c8..fa3a5f9338fc 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -504,6 +504,8 @@ struct btrfs_ioctl_send_args {
struct btrfs_ioctl_qgroup_limit_args)
#define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \
char[BTRFS_LABEL_SIZE])
+#define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \
+ char[BTRFS_LABEL_SIZE])
#define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \
struct btrfs_ioctl_get_dev_stats)
#define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \