Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/etc



On Fri, Feb 04, 2022 at 10:19:03PM +0000, Alexander Nasonov wrote:
> These two "styles of mounting" are
> 
> /sbin/mount /filesystem - looks up fs parameters in /etc/fstab
> /sbin/zfs mount dataset - looks up fs parameters in zpools

There are several things that could be done here. I would guess some
of these also need a "special string" solution (see below) for booting
from ZFS.

I was (maybe eroneously) assuming common usage would be to mount all 
filesystems from a zpool, so expecting something like a
critical_zpools_local variable for a list of zpools that need mounting
early.

Then for special cases I would expect mount_zfs to understand some special
string (and the same type of string being passed in from the bootloader
for root on ZFS), so I could do:

	mount zfs:${guid-or-name-of-zpool}:${fs-identifier} /home

and have the equivalent of that in /etc/fstab. And then of course the
legacy mounts, as Jürgen pointed out.

But I am no ZFS expert, and just wanted to note that there is some
"design not yet fully complete" feeling with the current state of
integration of ZFS into NetBSD - which also might just mean it is not
yet properly documented. I really appreciate all the work going into this,
and would like to see sysinst support and boot with root on ZFS, and good
docs for all of it, for netbsd-10 (on amd64 at least).

Martin


Home | Main Index | Thread Index | Old Index