From nobody Fri Jul 15 13:16:56 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LksMc56xKz4Wf4h for ; Fri, 15 Jul 2022 13:17:00 +0000 (UTC) (envelope-from felix@palmen-it.de) Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LksMb1r7Mz3stG for ; Fri, 15 Jul 2022 13:16:59 +0000 (UTC) (envelope-from felix@palmen-it.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WglcBYv+oJeSAReN9qA6+UNQ3pxD9djV3WjBwkxFNx0=; b=v+qei/ytn/We+iGugmKoruyUDo z1E1Rxwxtk8aVSM7qKh3BjHVevYCxmtWlWBmriBiuuBDM82LIq9i+ENsGnFKj21tRZHJd14B7Qo37 cfio6UNOQUo2jSHjaAqtfq0kD/9DpUzZ0b7NjZRZ3Kzr/EAy2KqUYCCtv2LNd5IwiB1+9kPVskBAq qphpo3GD/5hDGMfASB7QWfOODbcBDr68kt6dAEHqwe/bn5JZwbl8I6xl33YOu3cCy5iJICqXoJI8w M2coR4+2cKp2S3NBpEXjZKYL8c2hCOy+iM01bIWspmbPOF9j5GVcsDfgm/lLmcgVHDg0dOM+o35DQ oqYnUu4A==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oCLBh-0065jT-3V for freebsd-hackers@freebsd.org; Fri, 15 Jul 2022 15:16:57 +0200 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.3) tls TLS_CHACHA20_POLY1305_SHA256 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oCLBg-000Ft0-Lm for freebsd-hackers@freebsd.org; Fri, 15 Jul 2022 13:16:56 +0000 Date: Fri, 15 Jul 2022 15:16:56 +0200 From: Felix Palmen To: freebsd-hackers@freebsd.org Subject: Re: VFS mount rollback for virtio 9pfs Message-ID: <20220715131656.f2epy732npgbgrf5@nexus.home.palmen-it.de> Mail-Followup-To: freebsd-hackers@freebsd.org X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~;.B;!M/bL}*qk]p5*r7F5vW};{:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: palmen-it.de References: <75ACE8B8-A41F-4742-95DA-3CFB3B97746A@dons.net.au> <20220714101214.sju2rpsngqjyuvsb@nexus.home.palmen-it.de> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wmry544psttv7pxp" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20220429 X-Rspamd-Queue-Id: 4LksMb1r7Mz3stG X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=palmen-it.de header.s=20200414 header.b="v+qei/yt"; dmarc=pass (policy=none) header.from=palmen-it.de; spf=pass (mx1.freebsd.org: domain of felix@palmen-it.de designates 2001:470:1f0b:bbb:1::1 as permitted sender) smtp.mailfrom=felix@palmen-it.de X-Spamd-Result: default: False [-8.80 / 15.00]; SIGNED_PGP(-2.00)[]; DWL_DNSWL_MED(-2.00)[palmen-it.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[palmen-it.de,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_DKIM_ALLOW(-0.20)[palmen-it.de:s=20200414]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f0b:bbb:1::1]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_IN_DNSWL_MED(-0.20)[2001:470:1f0b:bbb:1::1:from]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; HAS_ORG_HEADER(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[palmen-it.de:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --wmry544psttv7pxp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Daniel O'Connor [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 ,.//.......... {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--