Re: VFS mount rollback for virtio 9pfs

From: Daniel O'Connor <darius_at_dons.net.au>
Date: Thu, 14 Jul 2022 11:27:45 UTC

> On 14 Jul 2022, at 19:42, Felix Palmen <felix@palmen-it.de> wrote:
> 
> * Daniel O'Connor <darius@dons.net.au> [20220711 22:46]:
>> I am attempting to get the Juniper virtfs code
>> (http://github.com/Juniper/virtfs) working and I have managed to get
>> it to a point where it mounts and things seem to work
>> (https://github.com/DanielO/freebsd-src/tree/9pfs) although I have
>> only tested on bhyve so far (but feel free to test elsewhere :)
> 
> Awesome, I've been waiting for this feature! Thanks for working on it.
> 
> I hope once you're done, you'll rebase it onto main and suggest if for
> inclusion :)

That's the plan but if you want to test it you should be able to clone the repo and build the KLDs, eg:
git clone --depth 1 --branch 9pfs https://github.com/DanielO/freebsd-src.git 9pfs
cd 9pfs/sys/dev/virtio/9pnet
make && sudo make install
cd ../9pfs
make && sudo make install

Then to use it:
kldload virtio_9pfs
mount -t virtfs somesharename /some/mount/point

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum