From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 22:05:11 2020 Received: (at submit) by debbugs.gnu.org; 27 Aug 2020 02:05:11 +0000 Received: from localhost ([127.0.0.1]:41186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kB7Hr-0006ws-AD for submit@debbugs.gnu.org; Wed, 26 Aug 2020 22:05:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:54532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kB7Hn-0006wi-7r for submit@debbugs.gnu.org; Wed, 26 Aug 2020 22:05:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB7Hn-0000gJ-29 for bug-guix@gnu.org; Wed, 26 Aug 2020 22:05:07 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:23034) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kB7Hk-0001qq-20 for bug-guix@gnu.org; Wed, 26 Aug 2020 22:05:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1598493904; h=Content-Type: MIME-Version: Message-Id: Subject: From: To: Date: Sender; bh=cM3QfjGkcjJJSWekN4giAdpipRgUKSrre7xaNTfBQ+g=; b=EBNAArwH1ugq0+6YlRbSXI641utMVNyjBJjA2JBlKitMsu/L0Qt5itQTXO5ak+J06V9IBTYz HZDzv8Ppe9hMn2B/qvCU3r6NwA40RHp7M55SHtEQJF6JmGDHGZ+Of88Bh8mlJu1xrSFtm+qh Z4S78zeh1wG/WAHyhOhLFoqqIaSY1CTnm9EQVMzmUGqfN52/H4dznPcfUjtQu2KLJ9g0xDgV giQMsYG1b//4zzxBTskIsICoWHuiAv1M2tRkr5lSJPYfK6sBD5YlUTun1sWZrHbJXAw6D2vG wXPjr/1DTe0sZCL7sUWTyKD+YZ7fhKLGikXBTOtqNiqvYZ9Mox/P7g== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyJkMDM0YyIsICJidWctZ3VpeEBnbnUub3JnIiwgIjA4NTQ3YSJd Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5f4714cc76c283d04f3eb7b4 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Thu, 27 Aug 2020 02:05:00 GMT Received: from localhost (KD106154066132.au-net.ne.jp [106.154.66.132]) by wilsonb.com (Postfix) with ESMTPSA id B385BA14EF for ; Thu, 27 Aug 2020 02:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1598493898; bh=cM3QfjGkcjJJSWekN4giAdpipRgUKSrre7xaNTfBQ+g=; h=Date:To:From:Subject:From; b=vAEFcRZf1XSX74lVkE8HzSnQLRHPL9j/tCx9MRL4G2nb428yg9EXs2pFrd7dB75nU 5/CHdQyFppIe/h8uNd/n5YEU5d2sew/ffcS65t4+6iPUOIMmIyQ6dheSAoIWaobZsn lkTwa4s/YhB6lPNYspHV7+17w2QdLakJ9UieKoFN6C9hm/TU1yj4xCsnsJ1yQ0MpI/ 7bTGK0hT7DVflTha23UyVdaHhYx7LtzCIqUy/p16ZCgOQKI7drO5Q70DK/ENmMnFkt 7Pu3XYFcJTg1OskI2rwfFmYo0gUklwq7Ure7VKqTfYp/LOXWH/c1f24K66qhLAsaNM mBbLQaXQJm5UVNCBBPMEXM0Fihq+dqQC+3o8eneYOAM/On74RYPJq6DAUDOxbFQkMU ju5I7GovNVb4fIp3orbUhNMikGkZnvwdR1gIfmHgGQF3sef3wQYo9I8DqiqTpfmA4j 9A0+IF4bZh3SGUQVwzuEydo1QD9W7G8DS98hOp8Te5xSioeleS3PBaAjRZ1ThfBLVm blnfq+KIDbBEbcaFkBtuJ6JEa7iooXrEZe5LVX5qWtF3DMDuNzhYF2br2GJQZ8WAH9 FKbVo9s8h0UGq8ordc/wHXZ182STGPni+EViW7DBqKnHmbYQkH/FwpT5wSqYKQLaYy S9kInu3Gx9UTWpUYRJX6mtv4= Date: Thu, 27 Aug 2020 11:04:47 +0900 To: bug-guix@gnu.org From: elaexuotee@wilsonb.com Subject: --expose in vm does not reflect file modifications in guest Message-Id: <3150ZD6Q06IY5.2LQMQ0E8MMOHQ@wilsonb.com> User-Agent: mblaze/0.7 MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="----_=_55a429a3020e061d3ae4691f_=_" Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+7434c3.08547a-bug-guix=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/26 22:05:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multipart message in MIME format. ------_=_55a429a3020e061d3ae4691f_=_ MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_3517bd2410e4cb020ed41678_=_" This is a multipart message in MIME format. ------_=_3517bd2410e4cb020ed41678_=_ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ## Overview When using --expose to mirror a path between host and guest, the guest mirr= or fails to reflect file modifications from the host. However, file creation a= nd deletion are correctly propogated. To pick up file modifications in the guest, it is sufficient to remount mirroring 9p filesystem. Is this behaviour expected? ## Reproduction The following should be sufficient to reproduce the issue: Create a container and expose a path: host$ guix system --expose /some/path vm.scm /gnu/store/-run-vm.sh Spin up the vm: host$ /gnu/store/-run-vm.sh =46rom the host, create a new file under /some/path, and check that the gue= =73t sees this file: host$ touch /some/path/test guest$ cat /some/path/test Now change the contents of this file on the host, and verify that the guest= does not see the change: host$ echo foo >/some/path/test guest$ cat /some/path/test Finally, remount the filesystem at /some/path, and see that the guest now p= icks up the changes: guest$ sudo mount -o remount,ro /some/path guest$ cat /some/path/test foo ## Version Information $ guix describe Generation 123 Aug 25 2020 23:19:12 (current) guix 253fcfe repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 253fcfe6fec8fb9d70cde8623fe562dc3ca67262 $ cat vm.scm (use-modules (gnu)) (use-service-modules networking ssh) (use-package-modules admin linux ncurses tmux) =20 (operating-system (host-name "fmadio") (timezone "Asia/Tokyo") (locale "en_US.utf8") =20 (bootloader (bootloader-configuration (bootloader #f) (target #f))) (kernel linux-libre-4.9) (file-systems %base-file-systems) (users (cons (user-account (name "x") (password (crypt "x" "Jr1er07l0lOUQ95GQLijow=3D=3D")) (group "users") (supplementary-groups '("wheel"))) %base-user-accounts)) (packages (cons* ncurses tcpdump tmux %base-packages)) (services (cons* (service dhcp-client-service-type) (service openssh-service-type) %base-services))) ## Notes In the above, I am running linux-libre@4.9 in the guest, but another user o= n #guix confirmed the issue with linux-libre@5.8. The same user reported seei= ng the following after modifying the host file and remounting in the guest: guest$ cat /some/path/test [ 49.263620] FS-Cache: Duplicate cookie detected [ 49.263644] FS-Cache: O-cookie c=3D00000000fe189610 [p=3D00000000422= 4ad86 fl=3D226 nc=3D0 na=3D1] [ 49.263664] FS-Cache: O-cookie d=3D0000000023080181 n=3D00000000825c= 3154 [ 49.263680] FS-Cache: O-key=3D[8] 'c3f51c0500000000' [ 49.263695] FS-Cache: N-cookie c=3D00000000c11e31c7 [p=3D00000000422= 4ad86 fl=3D2 nc=3D0 na=3D1] [ 49.263715] FS-Cache: N-cookie d=3D0000000023080181 n=3D00000000dad5= 62d4 [ 49.263731] FS-Cache: N-key=3D[8] 'c3f51c0500000000' foo ------_=_3517bd2410e4cb020ed41678_=_-- ------_=_55a429a3020e061d3ae4691f_=_ Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQQ7FdZn/PDWvxE6cmR2pStZ7i7CgQUCX0cUsxccZWxhZXh1b3Rl ZUB3aWxzb25iLmNvbQAKCRB2pStZ7i7CgZypAQChDaW+iJ0MydTkpFhDkMkxaRrw 06/KPvpgH2TcGE1GTAD/YqwD1wSbVBVBQl1T92PoAXv9tqFFyGGqFVqcibYmMw4= =R0mJ -----END PGP SIGNATURE----- ------_=_55a429a3020e061d3ae4691f_=_-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 28 10:11:36 2020 Received: (at 43062) by debbugs.gnu.org; 28 Aug 2020 14:11:36 +0000 Received: from localhost ([127.0.0.1]:47037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBf6O-0000fp-9h for submit@debbugs.gnu.org; Fri, 28 Aug 2020 10:11:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBf6M-0000fc-PO for 43062@debbugs.gnu.org; Fri, 28 Aug 2020 10:11:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58983) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBf6H-0003y5-9e; Fri, 28 Aug 2020 10:11:29 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=49300 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kBf6G-0005Ok-Mg; Fri, 28 Aug 2020 10:11:28 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 43062@debbugs.gnu.org, elaexuotee@wilsonb.com Subject: Re: bug#43062: --expose in vm does not reflect file modifications in guest References: <3150ZD6Q06IY5.2LQMQ0E8MMOHQ@wilsonb.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 Fructidor an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 28 Aug 2020 16:11:26 +0200 In-Reply-To: <3150ZD6Q06IY5.2LQMQ0E8MMOHQ@wilsonb.com> (elaexuotee's message of "Thu, 27 Aug 2020 11:04:47 +0900") Message-ID: <87wo1ioo6p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43062 Cc: Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, elaexuotee--- via Bug reports for GNU Guix skribis: > When using --expose to mirror a path between host and guest, the guest mi= rror > fails to reflect file modifications from the host. However, file creation= and > deletion are correctly propogated. > > To pick up file modifications in the guest, it is sufficient to remount > mirroring 9p filesystem. > > Is this behaviour expected? I believe this comes from the =E2=80=9Ccache=3Dloose=E2=80=9D 9p mount opti= on added in commit e0d96774dd48c29ccc4c90fea1f8f71850ab0879. Does the patch below help? Chris, what do you think? How would this affect the performance issues that led to e0d96774dd48c29ccc4c90fea1f8f71850ab0879? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 861f2a427a..80a8618729 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -699,7 +699,8 @@ of the GNU system as described by OS." (device (file-system->mount-tag source)) (type "9p") (flags (if writable? '() '(read-only))) - (options "trans=virtio,cache=loose") + (options (string-append "trans=virtio" + (if writable? "" ",cache=loose"))) (check? #f) (create-mount-point? #t))))) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 29 02:39:11 2020 Received: (at 43062) by debbugs.gnu.org; 29 Aug 2020 06:39:12 +0000 Received: from localhost ([127.0.0.1]:47850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBuW7-0007wy-J4 for submit@debbugs.gnu.org; Sat, 29 Aug 2020 02:39:11 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:51748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBuW4-0007wi-NG for 43062@debbugs.gnu.org; Sat, 29 Aug 2020 02:39:10 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1598683149; h=Content-Type: MIME-Version: Message-Id: In-Reply-To: References: Subject: From: Cc: To: Date: Sender; bh=Y7XITwl6LddmSzpIvkasCVXGjHU1sAqUn3AGSqldyKY=; b=6vRPEjthyZU3yrBIuR7dgZukqsIgKJyoRoCSLLvKMjpqAMgIDtH/yiogLFmH5PSPzA/J20DB I59e88UC7B8hM+2bcD6s0s8VvIruIwP7AGUhE92XgH5uyrXsqxcnx+K90q+TuDkXgKhpFOcL rtgNmfwnY4dMdLehVWuNUOHKIwmsiA1nMj8QA4dFyC9Ui2cYXrC0wxqsHxoculVnOJJhRq4B FiTy6SKoNGsF3NLHymBVHIxad9GwrtHVbQ0r1oxUHjphtiADqeILPIV6Y4MkWB9/6ltMy86A sxfFJFc7v3ANjLt+oQX7bQZhmPcLW2pfYpswbW1XTHuVF89ozbi4Uw== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyIzNzE5ZiIsICI0MzA2MkBkZWJidWdzLmdudS5vcmciLCAiMDg1NDdhIl0= Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 5f49f807a816b7fb485a3b29 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sat, 29 Aug 2020 06:39:03 GMT Received: from localhost (KD106154064203.au-net.ne.jp [106.154.64.203]) by wilsonb.com (Postfix) with ESMTPSA id 223F6A1C7E; Sat, 29 Aug 2020 06:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1598683140; bh=Y7XITwl6LddmSzpIvkasCVXGjHU1sAqUn3AGSqldyKY=; h=Date:To:Cc:From:Subject:References:In-Reply-To:From; b=zvCXu+dump4coBjFROTppqA1E5ULcW4jZdeaTPHSGUFLb4rxXsIO8AD1esIHOxwzQ CbJx0GZCFN+CO3gzKkiDRCujYrqfDiZc5WMhnzDrK4POsn3K5VTR61HFODjX3AW+qH goPpun+KcWpDMfWsN4GzUHFTaFFgsVrxFHwoE2NeLmlE7WHlfBMD8ojmy2NT62qXci LCrWKDekOMI8js5ksL+wCaFH0Hf5fopKRoBjI7L/zAQbEZHV/xmOntmoL9b5/WkcdC cpw1axrdwG43rxZzm65I36SKNSIDZ6NS0OdnGT+lfdUZ7DB1FCQ+n/RKK4fCq4RaDM BXjEiWVzRIYHDqXGc2N1OX67JMCZVxwXNpQjcRb1EfqVC6OM30wfynJQvfHWFigQbo UYRqXTzHR56Vxhgv0z2TWvjbw66022iolYKQEeAKAOxLBmvfqxzI//27ilAmBZ+rVC 8/nE8RnMUjIHCRGuSDasUPrSBIA36ZvtwkIYcwOMlq63WDWUKOFqaZ4ZJXp+PYw6cX /SspRFgN6MRIGIo/kAXMjfsYzI8UazLa1j8UgJVhWhjAbk0rm4yhAphw4zKFoR+g4T w9mh1L5AfUr6AXrxQMLqxZQ3qRBP78qYiF2J9M+V4DU9MI+7JkHTaGDUOX63L0MimN gmj/vB8DJSaVxp03ppa1AYtk= Date: Sat, 29 Aug 2020 15:38:55 +0900 To: Ludovic =?UTF-8?Q?Court=C3=A8s?= From: elaexuotee@wilsonb.com Subject: Re: bug#43062: --expose in vm does not reflect file modifications in guest References: <3150ZD6Q06IY5.2LQMQ0E8MMOHQ@wilsonb.com> <87wo1ioo6p.fsf@gnu.org> In-Reply-To: <87wo1ioo6p.fsf@gnu.org> Message-Id: <22LNMZE34BONZ.2XQ791HIZ9IY6@wilsonb.com> User-Agent: mblaze/0.7 MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="----_=_652e310b3987aa250f66b847_=_" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 43062 Cc: Christopher Baines , 43062@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multipart message in MIME format. ------_=_652e310b3987aa250f66b847_=_ MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_66aa3ed437fc7bc0400f61bb_=_" This is a multipart message in MIME format. ------_=_66aa3ed437fc7bc0400f61bb_=_ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I believe this comes from the =E2=80=9Ccache=3Dloose=E2=80=9D 9p mount op= tion added in > commit e0d96774dd48c29ccc4c90fea1f8f71850ab0879. >=20 > Does the patch below help? Yes, when no caching behaviour is specified in the guest, the problem disappears. I also tried cache=3Dfscache and see the exact same problem as = with cache=3Dloose. Cheers! ------_=_66aa3ed437fc7bc0400f61bb_=_-- ------_=_652e310b3987aa250f66b847_=_ Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQQ7FdZn/PDWvxE6cmR2pStZ7i7CgQUCX0n3+hccZWxhZXh1b3Rl ZUB3aWxzb25iLmNvbQAKCRB2pStZ7i7CgTH/AP9Y+3aqag06yUfvHvPwOAlxwGIt WFCrDdIdKdeo5o2BsQD+L0ntxB6Kdi/E1aF/Aq+rsCD+19UikJQv6KBUjFgYdgc= =vbuf -----END PGP SIGNATURE----- ------_=_652e310b3987aa250f66b847_=_-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 30 14:23:56 2020 Received: (at 43062) by debbugs.gnu.org; 30 Aug 2020 18:23:56 +0000 Received: from localhost ([127.0.0.1]:50723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCRzg-0001Pf-8A for submit@debbugs.gnu.org; Sun, 30 Aug 2020 14:23:56 -0400 Received: from mira.cbaines.net ([212.71.252.8]:45444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCRzf-0001PY-Bd for 43062@debbugs.gnu.org; Sun, 30 Aug 2020 14:23:55 -0400 Received: from localhost (unknown [46.237.160.133]) by mira.cbaines.net (Postfix) with ESMTPSA id DAA6427BBE5; Sun, 30 Aug 2020 19:23:53 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 506280be; Sun, 30 Aug 2020 18:23:51 +0000 (UTC) References: <3150ZD6Q06IY5.2LQMQ0E8MMOHQ@wilsonb.com> <87wo1ioo6p.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 26.3 From: Christopher Baines To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#43062: --expose in vm does not reflect file modifications in guest In-reply-to: <87wo1ioo6p.fsf@gnu.org> Date: Sun, 30 Aug 2020 19:23:48 +0100 Message-ID: <878sdwvvpn.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 43062 Cc: elaexuotee@wilsonb.com, 43062@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi, > > elaexuotee--- via Bug reports for GNU Guix skribis: > >> When using --expose to mirror a path between host and guest, the guest m= irror >> fails to reflect file modifications from the host. However, file creatio= n and >> deletion are correctly propogated. >> >> To pick up file modifications in the guest, it is sufficient to remount >> mirroring 9p filesystem. >> >> Is this behaviour expected? > > I believe this comes from the =E2=80=9Ccache=3Dloose=E2=80=9D 9p mount op= tion added in > commit e0d96774dd48c29ccc4c90fea1f8f71850ab0879. > > Does the patch below help? > > Chris, what do you think? How would this affect the performance issues > that led to e0d96774dd48c29ccc4c90fea1f8f71850ab0879? Caching only for readonly filesystems sounds fine, I think I was only thinking about the store for e0d96774dd48c29ccc4c90fea1f8f71850ab0879. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl9L7rRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xeoqg/9HXT999EOwLBVoODWm3FDzWkGSe+KNQ8v9abIcacFumL3OoNCAyRwI1c+ f1IVRWSLFTQGtZYxuasX6t0pBiE3VV8cYPl5WwbApAzToG1Ls9ubhe5Fw2YAGSsz I4Hs0qtvCnylJzn37zp8+c9SzlgT6iHBT7ChgfWxLkzL4Km+bJC3mdwaN1AfbcHm kO8BwJvU8COrhA7twonpYuiGvm94hIgbEjEtboEFl+XnCD527+6683S8kTl3pc6p ZjT6+UzVfQnxlEybCV6+M/qnYNSviSX13uwo1qO1c7nOnVNcaqHfF4BeXhopeiBP JaRInHyA3+NcJjY5aXLvf+T3LDmtwNWVfWcRyHn0QbhWpripd3jR1EQ3Sc3JI2uR wQRxyPZa9RSEbmP9fE4DtdzOH8SmGZQN9QgWFXuAfhNzRCpkaOrbwWR/BMrkodkB X+asXCiUNyaNbi/YC9lQoKUk0y9+M0kfHGkGGjvM+b3mkXfmGHkvdPluw6da/8BJ 5LnuOKXPw8fqYdJnkCMIW3PHtgl0dhZCPPAikyhoNPy1SF8+632CsJYDKxtSWa/9 baEf5lRDwCE75NnGOPiPXINGSZBDl+4yYcwEuaSVomt6W38QVoFgOj7RbozM9MZY WDSwl7mE3ks3DjCDkDsK8BiSHgNAd31m6VTOpX6aecx7XqBqHJw= =sd2w -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 31 09:52:22 2020 Received: (at 43062-done) by debbugs.gnu.org; 31 Aug 2020 13:52:23 +0000 Received: from localhost ([127.0.0.1]:51847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCkEQ-0007HA-Kk for submit@debbugs.gnu.org; Mon, 31 Aug 2020 09:52:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCkEO-0007Gy-Bf for 43062-done@debbugs.gnu.org; Mon, 31 Aug 2020 09:52:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56408) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCkEI-00046R-Df; Mon, 31 Aug 2020 09:52:14 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=36320 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kCkEH-0007FV-Q7; Mon, 31 Aug 2020 09:52:14 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Baines Subject: Re: bug#43062: --expose in vm does not reflect file modifications in guest References: <3150ZD6Q06IY5.2LQMQ0E8MMOHQ@wilsonb.com> <87wo1ioo6p.fsf@gnu.org> <878sdwvvpn.fsf@cbaines.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 Fructidor an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 31 Aug 2020 15:52:11 +0200 In-Reply-To: <878sdwvvpn.fsf@cbaines.net> (Christopher Baines's message of "Sun, 30 Aug 2020 19:23:48 +0100") Message-ID: <871rjmdit0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43062-done Cc: elaexuotee@wilsonb.com, 43062-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! Christopher Baines skribis: > Ludovic Court=C3=A8s writes: > >> Hi, >> >> elaexuotee--- via Bug reports for GNU Guix skribis: >> >>> When using --expose to mirror a path between host and guest, the guest = mirror >>> fails to reflect file modifications from the host. However, file creati= on and >>> deletion are correctly propogated. >>> >>> To pick up file modifications in the guest, it is sufficient to remount >>> mirroring 9p filesystem. >>> >>> Is this behaviour expected? >> >> I believe this comes from the =E2=80=9Ccache=3Dloose=E2=80=9D 9p mount o= ption added in >> commit e0d96774dd48c29ccc4c90fea1f8f71850ab0879. >> >> Does the patch below help? >> >> Chris, what do you think? How would this affect the performance issues >> that led to e0d96774dd48c29ccc4c90fea1f8f71850ab0879? > > Caching only for readonly filesystems sounds fine, I think I was only > thinking about the store for e0d96774dd48c29ccc4c90fea1f8f71850ab0879. Alright, I went ahead and did that in 7eeb78157d3d0267ce4a4ea38ff56a2c4246c11b. Thanks! Ludo=E2=80=99. From unknown Sat Aug 16 18:42:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 29 Sep 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator