summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjeff.liu <jeff.liu@oracle.com>2013-01-05 03:48:01 +0100
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 18:59:58 +0100
commit867ab667e74377160c4a683375ee5b8bf8801724 (patch)
tree9473c309f58be6efd176f09417358ea42a4f8db4 /include
parentBtrfs: place ordered operations on a per transaction list (diff)
downloadlinux-867ab667e74377160c4a683375ee5b8bf8801724.tar.xz
linux-867ab667e74377160c4a683375ee5b8bf8801724.zip
Btrfs: Add a new ioctl to get the label of a mounted file system
Add a new ioctl(2) BTRFS_IOC_GET_FSLABLE, so that we can get the label upon a mounted filesystem. Signed-off-by: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Anand Jain <anand.jain@oracle.com> Cc: Miao Xie <miaox@cn.fujitsu.com> Cc: Goffredo Baroncelli <kreijack@inwind.it> Cc: David Sterba <dsterba@suse.cz> 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 dd9f1293ab35..51c0b335e0c8 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -502,6 +502,8 @@ struct btrfs_ioctl_send_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_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \
struct btrfs_ioctl_get_dev_stats)
#define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \