summaryrefslogtreecommitdiff
path: root/ioctl.h
diff options
context:
space:
mode:
authorJeff Liu <jeff.liu@oracle.com>2012-12-17 11:35:23 +0000
committerDavid Sterba <dsterba@suse.cz>2013-02-26 19:23:32 +0100
commit619dc61cae1420da2dec48f689d49b9b346abc15 (patch)
treee75c146cac0af971fd099c3cce01b09145c9fdf6 /ioctl.h
parent704a08cb8ae8735f8538e637a1be822e76e69d3c (diff)
Btrfs-progs: Change the label of a mounted file system
With this new ioctl(2), we can set/change the label for a mounted file system. It still does normal process for an umounted file system. Signed-off-by: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Anand Jain <anand.jain@oracle.com>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index 3e7e451d..e841913b 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -520,6 +520,10 @@ struct btrfs_ioctl_clone_range_args {
struct btrfs_ioctl_qgroup_create_args)
#define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \
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, \