On 8/31/23 08:12, Guilherme G. Piccoli wrote:
Hi folks, this is the third round of the same fsid mounting patch. Our goal is to allow btrfs to have the same filesystem mounting at the same time; for more details, please take a look in the: V2: https://lore.kernel.org/linux-btrfs/20230803154453.1488248-1-gpiccoli@xxxxxxxxxx/ V1: https://lore.kernel.org/linux-btrfs/20230504170708.787361-1-gpiccoli@xxxxxxxxxx/ In this V3, besides small changes / improvements in the patches (see the changelog per patch), we dropped the module parameter workaround (which was the 3rd patch in V2) and implemented the fstests test (as suggested by Josef): https://lore.kernel.org/fstests/20230830221943.3375955-1-gpiccoli@xxxxxxxxxx/
We need some manual tests as well to understand how this feature will behave in a multi-pathed device, especially in SAN and iSCSI environments. I have noticed that Ubuntu has two different device paths for the root device during boot. It should be validated as the root file system using some popular OS distributions. Thanks, Anand
As usual, suggestions / reviews are greatly appreciated. Thanks in advance! Guilherme G. Piccoli (2): btrfs-progs: Add the single-dev feature (to both mkfs/tune) btrfs: Introduce the single-dev feature btrfs-progs: common/fsfeatures.c | 7 ++++ kernel-shared/ctree.h | 3 +- kernel-shared/uapi/btrfs.h | 7 ++++ mkfs/main.c | 4 +- tune/main.c | 76 ++++++++++++++++++++++++-------------- 5 files changed, 67 insertions(+), 30 deletions(-) kernel: fs/btrfs/disk-io.c | 17 +++++++- fs/btrfs/fs.h | 3 +- fs/btrfs/ioctl.c | 18 ++++++++ fs/btrfs/super.c | 8 ++-- fs/btrfs/sysfs.c | 2 + fs/btrfs/volumes.c | 84 ++++++++++++++++++++++++++++++++------ fs/btrfs/volumes.h | 3 +- include/uapi/linux/btrfs.h | 7 ++++ 8 files changed, 122 insertions(+), 20 deletions(-)