History

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.

jeff.liu committed 13 years ago

Commit a8bfd4a1 parent 867ab662 files · +44 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/btrfs.h+2−0
@@ -504,6 +504,8 @@ struct btrfs_ioctl_send_args { · 503 unmodified lines
504504 struct btrfs_ioctl_qgroup_limit_args)
505505 #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \
506506 char[BTRFS_LABEL_SIZE])
507+#define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \
508+ char[BTRFS_LABEL_SIZE])
507509 #define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \
508510 struct btrfs_ioctl_get_dev_stats)
509511 #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \