MFV r308989: 6428 set canmount=off on unmounted filesystem tries to

unmount children

This is a cosmetic and bookkeeping change as the actual change is
already in FreeBSD.
See r297521, r304520, r308985.
This commit is contained in:
Andriy Gapon 2016-11-24 10:11:09 +00:00
commit 61158a7ce8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309096

View File

@ -1620,7 +1620,7 @@ zfs_prop_set_list(zfs_handle_t *zhp, nvlist_t *props)
*/
if (prop != ZFS_PROP_CANMOUNT ||
(fnvpair_value_uint64(elem) == ZFS_CANMOUNT_OFF &&
zfs_is_mounted(zhp, NULL))) {
zfs_is_mounted(zhp, NULL))) {
cls[cl_idx] = changelist_gather(zhp, prop, 0, 0);
if (cls[cl_idx] == NULL)
goto error;