From nobody Thu Apr 27 13:54:49 2023 X-Original-To: freebsd-fs@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 4Q6cgH52Djz47C5H for ; Thu, 27 Apr 2023 13:54:51 +0000 (UTC) (envelope-from gerrit.kuehn@aei.mpg.de) Received: from umail2.aei.mpg.de (umail2.aei.mpg.de [194.94.224.8]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Q6cgH0tG9z4327 for ; Thu, 27 Apr 2023 13:54:51 +0000 (UTC) (envelope-from gerrit.kuehn@aei.mpg.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of gerrit.kuehn@aei.mpg.de designates 194.94.224.8 as permitted sender) smtp.mailfrom=gerrit.kuehn@aei.mpg.de; dmarc=none Received: from arc.aei.uni-hannover.de (ahgate1.aei.uni-hannover.de [130.75.117.49]) by umail2.aei.mpg.de (Postfix) with ESMTPS id 992991F23968 for ; Thu, 27 Apr 2023 15:54:49 +0200 (CEST) Date: Thu, 27 Apr 2023 15:54:49 +0200 From: Gerrit =?UTF-8?B?S8O8aG4=?= To: freebsd-fs@freebsd.org Subject: Re: canmount=noauto not behaving as expected Message-ID: <20230427155449.2b94bdb3@arc.aei.uni-hannover.de> In-Reply-To: <20230427152159.508f097c@arc.aei.uni-hannover.de> References: <20230427152159.508f097c@arc.aei.uni-hannover.de> Organization: MPG X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.94 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; R_MIXED_CHARSET(0.56)[subject]; RCVD_IN_DNSWL_MED(-0.20)[194.94.224.8:from]; R_SPF_ALLOW(-0.20)[+ip4:194.94.224.8]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:680, ipnet:194.94.0.0/15, country:DE]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; RCVD_TLS_ALL(0.00)[]; DMARC_NA(0.00)[mpg.de]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[194.94.224.8:from] X-Rspamd-Queue-Id: 4Q6cgH0tG9z4327 X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N Am Thu, 27 Apr 2023 15:21:59 +0200 schrieb Gerrit K=C3=BChn : > After export/import these filesystems systems stay unmounted as expected, > but they are still mounted again on the next "zfs mount -a". > Is this a bug in the manpage, a bug in zfs, or am I misunderstanding how > this is supposed to work? I think I found at least part of my misconception: the canmount property is not inherited. After a closer inspection, I get only nested filesystems mounted with "zfs mount -a", not the one where I actually set canmount=3Dnoauto. That's a bit of a pity, as I would like to set/inherit the property recursively on a whole subtree, but apparently that's not possible using a single command. However, I still fon't get any of the nested filesystems mounted on "zpool import", they all stay unmounted there. So canmount is (quite unexpectedly to me) treated differently for "zpool import" and "zfs mount -a". cu Gerrit