Re: strange behaviour with p9fs vs zfs
- In reply to: Lexi Winter : "strange behaviour with p9fs vs zfs"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Jul 2025 06:28:45 UTC
On Jul 21, 2025, at 10:07 PM, Lexi Winter <ivy@freebsd.org> wrote: > > hello, > > i've noticed some odd behaviour in p9fs that might be a bug. this is on > main ~29af6d2e2ec9fe8df7cf1e1a0bf3597028831b18 on amd64. > > on the host, i have a basic ZFS hierarchy: > > # zfs list -r zroot/p9test > NAME USED AVAIL REFER MOUNTPOINT > zroot/p9test 400K 682G 112K /zroot/p9test > zroot/p9test/a 96K 682G 96K /zroot/p9test/a > zroot/p9test/b 96K 682G 96K /zroot/p9test/b > zroot/p9test/c 96K 682G 96K /zroot/p9test/c > > this is exported to the VM via bhyve -s 6:0,virtio-9p,p9test=/zroot/p9test,ro > > inside the VM, i can mount the filesystem: > > # mount -tp9fs p9test /mnt > > however, while the top-level directory looks fine, all the descendent > mountpoints appear to be copies of the top-level directory: > > # ls -i /mnt > 34 a 34 b 34 c > # ls -i /mnt/a > 34 a 34 b 34 c > # ls -i /mnt/a/a > 34 a 34 b 34 c > # ls -i /mnt/a/a/b > 34 a 34 b 34 c > # ls -i /mnt/a/a/b/a > 34 a 34 b 34 c > > i would expect them to either appear empty (unhelpful, but at least > correct) or else for p9fs to traverse into the descentent filesystem > (much more helpful). I don't see that (I mounted host's /usr/src and everything appears as it should). Host: 14.3-STABLE stable/14-n271998-6e211ff4902a VM: 15.0-CURRENT #327 main-n278933-cc413e2c04f0 Though there are other bugs...