Skip to content

Btrfs: show subvolume name and ID in /proc/mounts

Omar Sandoval linux-btrfs 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 0 repliesNew
  2. v26 patches 14 repliesSuperseded
  3. v13 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Btrfs: lock superblock before remounting for rw subvolfs/btrfs/super.c+2 -00 replies
2/6Btrfs: remove all subvol options before mounting top-levelfs/btrfs/super.c+20 -360 replies
3/6Btrfs: clean up error handling in mount_subvol()fs/btrfs/super.c+33 -280 replies
4/6Btrfs: fail on mismatched subvol and subvolid mount optionsfs/btrfs/super.c+25 -80 replies
5/6Btrfs: unify subvol= and subvolid= mountingfs/btrfs/super.c+171 -670 replies
6/6Btrfs: show subvol= and subvolid= in /proc/mountsfs/btrfs/super.c fs/seq_file.c+5 -00 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchDavid Sterba
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] Btrfs: show subvolume name and ID in /proc/mounts

Now that we've reached an agreement, I've rebased this series on top of v4.1-rc3 (there were some minor conflicts with the ->d_inode to d_inode() conversion merged in v4.1-rc1, no other code changes).

This change makes things just a little bit friendlier for users and also cleans up the mount path. David mentioned that he's also using this patchset as a base for per-subvolume mount flag support. He's reviewed all of the patches in this series. Please consider for 4.2!

v2: https://lkml.org/lkml/2015/4/9/906
v1: https://lkml.org/lkml/2015/4/8/16

Omar Sandoval (6):
Btrfs: lock superblock before remounting for rw subvol
Btrfs: remove all subvol options before mounting top-level
Btrfs: clean up error handling in mount_subvol()
Btrfs: fail on mismatched subvol and subvolid mount options
Btrfs: unify subvol= and subvolid= mounting
Btrfs: show subvol= and subvolid= in /proc/mounts

 fs/btrfs/super.c | 386 ++++++++++++++++++++++++++++++++++++-------------------
 fs/seq_file.c    |   1 +
 2 files changed, 252 insertions(+), 135 deletions(-)
Signature · 1 line
2.4.1