Skip to content

Integrate 9pfs multi-attach patches to support isolated 9pfs clients#210

Merged
azenla merged 1 commit into
mainfrom
azenla/fix/9pfs-multi-attach
Jul 15, 2026
Merged

Integrate 9pfs multi-attach patches to support isolated 9pfs clients#210
azenla merged 1 commit into
mainfrom
azenla/fix/9pfs-multi-attach

Conversation

@azenla

@azenla azenla commented Jul 15, 2026

Copy link
Copy Markdown
Member

Kernel patches to let one Xen 9pfs frontend serve multiple mounts, each with its own aname, advertised via /sys/fs/9p/features. This lets zones mount each volume as its own 9p mount so df resolves per-volume instead of everything showing the one shared device.

Two variants since the 9p mount API changed in 6.19:

  • 9pfs-xen-multi-attach.patch — 6.19+
  • 9pfs-xen-multi-attach-6.18.patch — 6.18.x backport (old mount API)

Needs the matching protect zone/storage changes to actually be used; safe on unpatched kernels (the zone falls back to bind mounts when the feature isn't advertised).

Add guest-kernel patches that let one Xen 9pfs frontend back several
mounts, each attaching with its own aname, and advertise the capability
as edera_multi_attach_v1 in /sys/fs/9p/features. This lets zones mount
each volume as an independent 9p mount so df resolves per volume instead
of every volume reporting the single shared device.

The 9p mount API became fs_context-based in 6.19, so there are two
variants: 9pfs-xen-multi-attach.patch (lower: 6.19) and an old-mount-API
backport 9pfs-xen-multi-attach-6.18.patch (series: 6.18).
@azenla azenla changed the title 9pfs xen multi-attach patches Integrate 9pfs multi-attach patches to support isolated 9pfs clients Jul 15, 2026
@azenla azenla marked this pull request as ready for review July 15, 2026 07:01
@alexandermerritt

Copy link
Copy Markdown
Contributor

@azenla

azenla commented Jul 15, 2026

Copy link
Copy Markdown
Member Author

Resolves https://github.com/edera-dev/protect/issues/2967 ?

This alone won't solve it, there is a separate PR at https://github.com/edera-dev/protect/pull/2968 which will need to be updated once this is built. After that is pinned to a new kernel here, it can use this new functionality.

@azenla azenla merged commit 53716a4 into main Jul 15, 2026
12 of 14 checks passed
@azenla azenla deleted the azenla/fix/9pfs-multi-attach branch July 15, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants