aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff.liu2013-01-04 20:48:08 -0600
committerJosef Bacik2013-02-20 11:59:59 -0600
commita8bfd4abea3da0e28f215e2a2b8c2f1ca27ebe80 (patch)
tree949b78c187f77101b366ca3f189ea25e3d20c870 /include
parent867ab667e74377160c4a683375ee5b8bf8801724 (diff)
downloadam43-linux-kernel-a8bfd4abea3da0e28f215e2a2b8c2f1ca27ebe80.tar.gz
am43-linux-kernel-a8bfd4abea3da0e28f215e2a2b8c2f1ca27ebe80.tar.xz
am43-linux-kernel-a8bfd4abea3da0e28f215e2a2b8c2f1ca27ebe80.zip
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 <jeff.liu@oracle.com> Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Miao Xie <miaox@cn.fujitsu.com> Reviewed-by: Goffredo Baroncelli <kreijack@inwind.it> Reviewed-by: David Sterba <dsterba@suse.cz> Reviewed-by: Goffredo Baroncelli <kreijack@inwind.it> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'include')
-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 51c0b335e0c..fa3a5f9338f 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -504,6 +504,8 @@ struct btrfs_ioctl_send_args {
504 struct btrfs_ioctl_qgroup_limit_args) 504 struct btrfs_ioctl_qgroup_limit_args)
505#define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ 505#define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \
506 char[BTRFS_LABEL_SIZE]) 506 char[BTRFS_LABEL_SIZE])
507#define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \
508 char[BTRFS_LABEL_SIZE])
507#define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \ 509#define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \
508 struct btrfs_ioctl_get_dev_stats) 510 struct btrfs_ioctl_get_dev_stats)
509#define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ 511#define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \