canmount=noauto not behaving as expected

From: Gerrit Kühn <gerrit.kuehn_at_aei.mpg.de>
Date: Thu, 27 Apr 2023 13:21:59 UTC
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