Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs-progs: updates related to seed device and v6.17 kernel
@ 2025-08-03 23:52 Qu Wenruo
  2025-08-03 23:52 ` [PATCH 1/3] btrfs-progs: docs/seed: update a note related to orphan roots cleanup Qu Wenruo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Qu Wenruo @ 2025-08-03 23:52 UTC (permalink / raw)
  To: linux-btrfs

Kernel commit 40426dd147ff ("btrfs: use the super_block as holder when
mounting file systems") changed the block device holder so that each
device of a mounted btrfs can only belong to a single fs.

This is fine for most users, but for a corner case of seed devices, it
can be problematic.

As previously we allow the same seed device to be mounted through both
the seed device and the sprouted fs, as at that time all btrfs devices
share the same holder.

But now since each block device can only belong to a single mounted fs,
it means the seed device can only be mounted through either the seed
device itself or a sprouted fs, not both at the same time.

This series will update the docs to be more explicit about the seed
device mounting behavior, and updated the test case misc/046 to follow
the new kernel behavior.

And since we're here, also update a note where newer kernel fix a bug in
orphan roots cleanup.


Qu Wenruo (3):
  btrfs-progs: docs/seed: update a note related to orphan roots cleanup
  btrfs-progs: docs/seed: add extra notes for v6.17 and newer kernels
  btrfs-progs: misc-tests: do not try to mount a block device into
    different filesystems

 Documentation/ch-seeding-device.rst           | 14 +++++++++++++-
 tests/misc-tests/046-seed-multi-mount/test.sh | 17 ++++++++---------
 2 files changed, 21 insertions(+), 10 deletions(-)

--
2.50.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-05 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-03 23:52 [PATCH 0/3] btrfs-progs: updates related to seed device and v6.17 kernel Qu Wenruo
2025-08-03 23:52 ` [PATCH 1/3] btrfs-progs: docs/seed: update a note related to orphan roots cleanup Qu Wenruo
2025-08-03 23:52 ` [PATCH 2/3] btrfs-progs: docs/seed: add extra notes for v6.17 and newer kernels Qu Wenruo
2025-08-03 23:52 ` [PATCH 3/3] btrfs-progs: misc-tests: do not try to mount a block device into different filesystems Qu Wenruo
2025-08-05 18:38 ` [PATCH 0/3] btrfs-progs: updates related to seed device and v6.17 kernel Boris Burkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox