HomeFreeBSD

Only automatically mount a clone when 'canmount == on'.

Description

Only automatically mount a clone when 'canmount == on'.

According to the man page, "When the noauto option is set, a dataset
can only be mounted and unmounted explicitly. The dataset is not
mounted automatically when the dataset is created or imported ...."

When cloning a dataset the canmount property was not being honored.
This patch adds the required check to achieve the behavior described
in the man page.

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2241

Details

Provenance
Turbo Fredriksson <turbo@bayour.com>Authored on Jun 6 2014, 2:59 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 6 2014, 7:30 PM
Parents
rG7a870db1b90d: Do not export pool to prevent cache from been removed
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG480f62655d2a: Only automatically mount a clone when 'canmount == on'. (authored by Turbo Fredriksson <turbo@bayour.com>).Jun 6 2014, 7:30 PM