From nobody Thu Apr 27 13:21:59 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 4Q6bxR4vL5z479Gg for ; Thu, 27 Apr 2023 13:22:03 +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 4Q6bxQ361Mz3ytb for ; Thu, 27 Apr 2023 13:22:02 +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 8C8DA1F23842 for ; Thu, 27 Apr 2023 15:21:59 +0200 (CEST) Date: Thu, 27 Apr 2023 15:21:59 +0200 From: Gerrit =?UTF-8?B?S8O8aG4=?= To: freebsd-fs@freebsd.org Subject: canmount=noauto not behaving as expected Message-ID: <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=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-2.66 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-0.94)[-0.943]; NEURAL_HAM_SHORT(-0.85)[-0.846]; R_MIXED_CHARSET(0.63)[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: 4Q6bxQ361Mz3ytb X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N Hello, I just tried using canmount=noauto on a couple of filesystems (on FreeBSD 13.2) and found that these are still mounted on boot and when issuing "zfs mount -a". From the manpage I would have expected the opposite: --- When set to noauto, a dataset can only be mounted and unmounted explicitly. The dataset is not mounted automatically when the dataset is created or imported, nor is it mounted by the zfs mount -a command or unmounted by the zfs unmount -a command. --- 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? cu Gerrit