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
GitHub <noreply@github.com>Committed on Feb 8 2022, 6:53 PM
Parents
rG5f65d008e9ea: Remove unneeded "extern inline" function declarations
Branches
Unknown
Tags
Unknown