Skip to content

RFC Btrfs: get/set mounted filesystem label support

Jeff Liu linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 RFC Latest2 patches 6 repliesIn review

Changes of V4->V3 from the cover letter

- Add a new ioctl to fetch the label of a mounted file system.
- Replace "struct btrfs_ioctl_fs_label_args" with "char label[BTRFS_LABEL_SIZE]".
- ioctl(2) number changed from 50 to 53/54. I'll update the btrfs wiki page with regard to the number allocation to reflect this change if it is ok.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Btrfs: Add a new ioctl to get the label of a mounted filesystemfs/btrfs/ioctl.c fs/btrfs/ioctl.h+16 -00 replies
1/2Btrfs: Add a new ioctl to get the label of a mounted filesystemfs/btrfs/ioctl.c fs/btrfs/ioctl.h+16 -02 replies
2/2Btrfs: Add a new ioctl to change the label of a mounted filesystemfs/btrfs/ioctl.c fs/btrfs/ioctl.h+52 -02 replies
2/2Btrfs: Add a new ioctl to change the label of a mounted filesystemfs/btrfs/ioctl.c fs/btrfs/ioctl.h+36 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [RFC PATCH V4 0/2] Btrfs: get/set mounted filesystem label support

Hello,

This is an improved tiny patch set to add get/set the label upon a mounted file system via ioctl(2).

I'd like to add the Signed-off-by with Anand for the credit since He has posted a similar patch set a few month ago.

Changes of V4->V3:
- Add a new ioctl to fetch the label of a mounted file system.
- Replace "struct btrfs_ioctl_fs_label_args" with "char label[BTRFS_LABEL_SIZE]".
- ioctl(2) number changed from 50 to 53/54. I'll update the btrfs wiki page with regard to the number allocation to reflect this change if it is ok.

The old versions can be found at:

v3:
https://patchwork.kernel.org/patch/1124642/

v2:
http://permalink.gmane.org/gmane.comp.file-systems.btrfs/12877

v1:
http://permalink.gmane.org/gmane.comp.file-systems.btrfs/12872

Thanks,
-Jeff