5984 zfs clone should not mount the clone if canmount == noauto

Review Request #228 - Created June 5, 2015 and submitted

Information
Andriy Gapon
illumos-gate
5984
b108b91...
Reviewers
openzfs

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 zfs_do_create() and zfs_do_clone().
Lastly, this change adds diagnostic messages for mounting / sharing failures in zfs_do_clone() similar to those in zfs_do_create().

zfs clone -o canmount=noauto on FreeBSD.

Andriy Gapon
Andriy Gapon
Matthew Ahrens
Justin Gibbs
Richard Elling
Andriy Gapon
Review request changed

Status: Closed (submitted)

Loading...