diff options
author | jeff.liu <jeff.liu@oracle.com> | 2013-01-04 21:48:01 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 12:59:58 -0500 |
commit | 867ab667e74377160c4a683375ee5b8bf8801724 (patch) | |
tree | 9473c309f58be6efd176f09417358ea42a4f8db4 /include/uapi/linux/btrfs.h | |
parent | 569e0f358c0c37f6733702d4a5d2c412860f7169 (diff) |
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.h | 2 |
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 { | |||
502 | struct btrfs_ioctl_qgroup_create_args) | 502 | struct btrfs_ioctl_qgroup_create_args) |
503 | #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ | 503 | #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ |
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, \ | ||
506 | char[BTRFS_LABEL_SIZE]) | ||
505 | #define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \ | 507 | #define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \ |
506 | struct btrfs_ioctl_get_dev_stats) | 508 | struct btrfs_ioctl_get_dev_stats) |
507 | #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ | 509 | #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ |