From nobody Thu Oct 12 02:30:37 2023 X-Original-To: bugs@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 4S5YXG3q8fz4x4fy for ; Thu, 12 Oct 2023 02:30:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S5YXF4LYQz4K0m for ; Thu, 12 Oct 2023 02:30:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697077837; a=rsa-sha256; cv=none; b=qHWyWymPIN5EgP9YdPfxi7jjGnVa1Dk9ySV8JrlVhKolTNzbVgHO5+laW9rU3YeVxpesPO x+VdMr87fWYhd73/kRx5LF07wDtMmTKDaisk4www9DT9p/HPcXUxH9QAjeTh6B50tnWxUt fP8L47LY8xFGSj9rEvDs1MYCU3dPonLmuPml6vbz8nkpd/DSddOM0iW6qSCUj/PJBCSxT6 ViRVmWDXpYIqe1XaSczG5qiKwjoiBEyqb5gV/rolgv4OKrSuXXESYqilG/0YgWLSlNAr+3 5QvU8hb0L2b/9udONv9XbzV8Y9QJcJ9k8sKcpC7xurmdofVjmvBfI9Fv02AELg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697077837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EWcTNk0+g1K4l0eqfVix0A6m4WrmbK9yg5GQCAXS8pE=; b=Akb4Kq82RyJY+USiG7W99MoWOEQXTw9XddDEhKmV/rPkLmYqcDoZw4vKdL8EAAZE+mo61I Nt1uHqfN0EnTYQ3e0wNrUOskPPYXAse5Tryn8utvZgNRH7z9TYFK6+4RVqR0e7XvZmglIN BtXP9Xbh+XRxzNJhfFzq6NrDckUeiUMuO+WqNhj+0ayDj6+CFkDw+rq/F0lutKAL9bK7ew xfrXmeqFDRgDjvJ7RpPZXVtoxhjj/g5Ph82UD/t6+fZ+D9XJgoSZEm5n7/2KzMdldEt37v 9EfLUaDU+V8ZoBbJlmb6WOB4djoqZG1SQ8PwOWaTM+wj0r5FY9Ggy4G/fmJtHQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S5YXF3QD9zmJm for ; Thu, 12 Oct 2023 02:30:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39C2Ubge034789 for ; Thu, 12 Oct 2023 02:30:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39C2Ubdi034788 for bugs@FreeBSD.org; Thu, 12 Oct 2023 02:30:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274421] bectl mount does not recognize intermediate canmount=off partitions for deep boot environments Date: Thu, 12 Oct 2023 02:30:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tamaru@psc.t.u-tokyo.ac.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274421 Bug ID: 274421 Summary: bectl mount does not recognize intermediate canmount=3Doff partitions for deep boot environments Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: tamaru@psc.t.u-tokyo.ac.jp I have tested this on FreeBSD 14.0-BETA5. Following is a sample zfs layout to describe the issue. NAME canmount mountpoint root/ROOT/default noauto / root/ROOT/default/usr off /usr root/ROOT/default/usr/src noauto /usr/src root/ROOT/default/usr/obj noauto /usr/obj root/home on /home root/var off /var root/var/log on /var/log It is close to the "deep boot environment" as described in btctl(8), but differs in that canmount=3Doff for /root/ROOT/default/usr . /etc/rc.d/zfsbe correctly mounts this BE as: Filesystem Mounted on root/ROOT/default / root/ROOT/default/usr/src /usr/src root/ROOT/default/usr/obj /usr/obj root/home /home root/var/log /var/log and the contents of /usr such as /usr/bin is included in root/ROOT/default . However, running btctl -r root/ROOT mount default when the system is booted from another BE or pool, it only mounts as deep as just before the first non- canmount=3Doff partition, in this case root/ROOT/default only: Filesystem Mounted on root/ROOT/default /tmp/be_mount.WsGI and differs from the preferred behavior that zfsbe gives. When we are at this, bectl create misbehaves in this regard as well. Running bectl create -r backup correctly replicates the whole hierarchy, but does not honor canmount properties. NAME canmount mountpoint root/ROOT/default noauto / root/ROOT/default/usr off /usr root/ROOT/default/usr/src noauto /usr/src root/ROOT/default/usr/obj noauto /usr/obj root/ROOT/backup noauto / root/ROOT/backup/usr noauto /usr <=3D=3D=3D=3D root/ROOT/backup/usr/src noauto /usr/src root/ROOT/backup/usr/obj noauto /usr/obj root/home on /home root/var off /var root/var/log on /var/log and thus, by switching to this backup BE by bectl activate backup the next boot looses /usr/bin (and others) when zfsbe (correctly) mounts /u= sr . --=20 You are receiving this mail because: You are the assignee for the bug.=