HomeFreeBSD

`mount.zfs -o zfsutil` leverages `zfs_mount_at()`

Description

mount.zfs -o zfsutil leverages zfs_mount_at()

Using zfs_mount_at() gives opportunity to properly propagate
mountopts from what's stored in a pool to the mount(2) syscall
invocation. It fixes cases when mount options are set to incorrect
values and rectification is impossible (e. g. Linux initrd boot
sequence in #7947).
Moved debug information printing after all variables are
initialized - printed text reflects what is passed to mount(2).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Issue #7947
Closes #13021

Details

Provenance
Damian Szuberski <szuberskidamian@gmail.com>Authored on Feb 8 2022, 6:53 PM
Tony Hutter <hutter2@llnl.gov>Committed on Feb 17 2022, 1:58 AM
Parents
rGa61915e08687: dsl_dir_tempreserve_impl: remove unused `deferred` variable
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGbb271d67e85a: `mount.zfs -o zfsutil` leverages `zfs_mount_at()` (authored by Damian Szuberski <szuberskidamian@gmail.com>).Feb 17 2022, 1:58 AM