Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2022 15:16:56 +0200
From:      Felix Palmen <felix@palmen-it.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: VFS mount rollback for virtio 9pfs
Message-ID:  <20220715131656.f2epy732npgbgrf5@nexus.home.palmen-it.de>
In-Reply-To: <BC734F39-4ECC-4B0D-A771-83763F3283BC@dons.net.au>
References:  <75ACE8B8-A41F-4742-95DA-3CFB3B97746A@dons.net.au> <20220714101214.sju2rpsngqjyuvsb@nexus.home.palmen-it.de> <BC734F39-4ECC-4B0D-A771-83763F3283BC@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--wmry544psttv7pxp
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Daniel O'Connor <darius@dons.net.au> [20220714 20:57]:
> That's the plan but if you want to test it you should be able to clone
> the repo [...]

I tested it, successful so far as it seems! Thanks again!

My usecase is a 14-CURRENT VM I mostly use for testing ports with
poudriere. It's only running when needed (cause it hogs quite some RAM)
and still I want the logs always available. So far I used NFS for that
which had some performance issues with ports producing *lots* of output
like e.g. gcc.

Now it's using 9pfs instead \o/ =E2=80=93 will see whether this improves
performance.

----
For reference (if anyone else wants to give it a shot), here's what I
did so far:

- fetched your branch into my local src repo, rebased it onto main
- rebuilt and reinstalled the system
- tried to load the modules, noticed they're not yet included in
  recursive build (remind me to add that, hehe), so manually did
  make / make install in their dirs
- added virtio_9pnet and virtio_9pfs to kld_list in /etc/rc.conf
- couldn't figure out how to use it with fstab, so added this stupid
  little rc script:

/usr/local/etc/rc.d/mountvirtfs
#v+
#!/bin/sh

# PROVIDE: mountvirtfs
# REQUIRE: DAEMON
# BEFORE: LOGIN

=2E /etc/rc.subr

name=3D"mountvirtfs"
desc=3D"mount VirtFS shares from host"
start_cmd=3D"mountvirtfs_start"
stop_cmd=3D":"

mountvirtfs_start()
{
        mount -t virtfs -o trans=3Dvirtio logs /usr/local/poudriere/data/lo=
gs
        mount -t virtfs -o trans=3Dvirtio html /usr/local/share/poudriere/h=
tml
}

run_rc_command "$1"
#v-

Well, it works!
# mount | grep virtfs
logs on /usr/local/poudriere/data/logs (virtfs, local)
html on /usr/local/share/poudriere/html (virtfs, local)

BR, Felix

--=20
 Dipl.-Inform. Felix Palmen  <felix@palmen-it.de>   ,.//..........
 {web}  http://palmen-it.de  {jabber} [see email]   ,//palmen-it.de
 {pgp public key}     http://palmen-it.de/pub.txt   //   """""""""""
 {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A

--wmry544psttv7pxp
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEqJE9VV8uOnQ5ZbmXPvKLCrwC2ioFAmLRaMMACgkQPvKLCrwC
2irI5QgAjk2pO7u9nPm6Gelpi4xuuJvE7+VNMJGgcT1aik9dd7PcAFZrB6ECmWpV
qYZxinxazNtAwDftOPJX2jy4mmnXOpGRjNriDKJWohYYSHsJBETh1RxZBk74DDZV
WYTDj7TNPI+HKt3pFBCQOkSK6O4xOyzJstApl/Y9WDGbFRHDJ10e4FXCWuUYt7Rj
8ebMKxdFqEwkChovLGoLiyg7ruvKjAWF32lRi20Hkqnckbh3o/fxy/1s2ejNPF6N
AVXHXb48+3evwPoLmlc7rHVwHMHrgahZaawfWCGtLaLtZcrZV3quzU0OfrVOOfBc
U1gsy/Xxpd4Dz50wuZWO038tm1bXJA==
=7d6n
-----END PGP SIGNATURE-----

--wmry544psttv7pxp--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220715131656.f2epy732npgbgrf5>