From 619dc61cae1420da2dec48f689d49b9b346abc15 Mon Sep 17 00:00:00 2001 From: Jeff Liu Date: Mon, 17 Dec 2012 11:35:23 +0000 Subject: 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 Signed-off-by: Anand Jain --- ioctl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ioctl.h') 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, \ -- cgit v1.2.3