aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/btrfs.h
diff options
context:
space:
mode:
authorjeff.liu <jeff.liu@oracle.com>2013-01-05 02:48:01 +0000
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 12:59:58 -0500
commit867ab667e74377160c4a683375ee5b8bf8801724 (patch)
tree9473c309f58be6efd176f09417358ea42a4f8db4 /include/uapi/linux/btrfs.h
parent569e0f358c0c37f6733702d4a5d2c412860f7169 (diff)
downloadkernel_goldelico_gta04-867ab667e74377160c4a683375ee5b8bf8801724.zip
kernel_goldelico_gta04-867ab667e74377160c4a683375ee5b8bf8801724.tar.gz
kernel_goldelico_gta04-867ab667e74377160c4a683375ee5b8bf8801724.tar.bz2
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/uapi/linux/btrfs.h')
-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 dd9f129..51c0b33 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, \