]> granicus.if.org Git - zfs/commit
Only automatically mount a clone when 'canmount == on'.
authorTurbo Fredriksson <turbo@bayour.com>
Fri, 6 Jun 2014 14:59:11 +0000 (16:59 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Jun 2014 19:30:35 +0000 (12:30 -0700)
commit480f62655d2a4c8fa9e3cf12f1245b455edac349
treefe89e7aa49bdfb9398a787aec892820ba56c5953
parent7a870db1b90db4ca31b67fbe856fd426431fa8b5
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
cmd/zfs/zfs_main.c