5984 zfs clone should not mount the clone if canmount == noauto
Review Request #228 - Created June 5, 2015 and submitted
The change is already implemeted in ZoL.
My main rationale for doing things differently from what was done in ZoL was to avoid too deep nesting and the resulting line wrapping ugliness.
Additionally, introduction of
should_auto_mount()should reduce code duplication
Lastly, this change adds diagnostic messages for mounting / sharing failures in
zfs_do_clone()similar to those in
zfs clone -o canmount=noautoon FreeBSD.