From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iP5XJhUVR1/IKAAA0tVLHw (envelope-from ) for ; Thu, 27 Aug 2020 02:06:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AGUyIhUVR1+GfAAAbx9fmQ (envelope-from ) for ; Thu, 27 Aug 2020 02:06:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BF5F69402C8 for ; Thu, 27 Aug 2020 02:06:12 +0000 (UTC) Received: from localhost ([::1]:46644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB7In-0000oQ-9d for larch@yhetil.org; Wed, 26 Aug 2020 22:06:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB7Ig-0000oI-G7 for bug-guix@gnu.org; Wed, 26 Aug 2020 22:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kB7Ig-00023t-5X for bug-guix@gnu.org; Wed, 26 Aug 2020 22:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kB7If-0006y5-VQ for bug-guix@gnu.org; Wed, 26 Aug 2020 22:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43062: --expose in vm does not reflect file modifications in guest Resent-From: elaexuotee@wilsonb.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 27 Aug 2020 02:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43062 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43062@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159849391126718 (code B ref -1); Thu, 27 Aug 2020 02:06:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: elaexuotee@wilsonb.com From: elaexuotee--- via Bug reports for GNU Guix X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=mg.wilsonb.com header.s=krs header.b=EBNAArwH; dkim=fail (rsa verify failed) header.d=wilsonb.com header.s=201703 header.b=vAEFcRZf; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -2.11 X-TUID: rAnvGOJ9QYds 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_=_--