585 }
586
587 /*
588 * If this is a rename or the 'zoned' property, we pretend we're
589 * changing the mountpoint and flag it so we can catch all children in
590 * change_one().
591 *
592 * Flag cl_alldependents to catch all children plus the dependents
593 * (clones) that are not in the hierarchy.
594 */
595 if (prop == ZFS_PROP_NAME) {
596 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
597 clp->cl_alldependents = B_TRUE;
598 } else if (prop == ZFS_PROP_ZONED) {
599 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
600 clp->cl_allchildren = B_TRUE;
601 } else if (prop == ZFS_PROP_CANMOUNT) {
602 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
603 } else if (prop == ZFS_PROP_VOLSIZE) {
604 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
605 } else {
606 clp->cl_prop = prop;
607 }
608 clp->cl_realprop = prop;
609
610 if (clp->cl_prop != ZFS_PROP_MOUNTPOINT &&
611 clp->cl_prop != ZFS_PROP_SHARENFS &&
612 clp->cl_prop != ZFS_PROP_SHARESMB)
613 return (clp);
614
615 /*
616 * If watching SHARENFS or SHARESMB then
617 * also watch its companion property.
618 */
619 if (clp->cl_prop == ZFS_PROP_SHARENFS)
620 clp->cl_shareprop = ZFS_PROP_SHARESMB;
621 else if (clp->cl_prop == ZFS_PROP_SHARESMB)
622 clp->cl_shareprop = ZFS_PROP_SHARENFS;
623
624 if (clp->cl_alldependents) {
|
585 }
586
587 /*
588 * If this is a rename or the 'zoned' property, we pretend we're
589 * changing the mountpoint and flag it so we can catch all children in
590 * change_one().
591 *
592 * Flag cl_alldependents to catch all children plus the dependents
593 * (clones) that are not in the hierarchy.
594 */
595 if (prop == ZFS_PROP_NAME) {
596 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
597 clp->cl_alldependents = B_TRUE;
598 } else if (prop == ZFS_PROP_ZONED) {
599 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
600 clp->cl_allchildren = B_TRUE;
601 } else if (prop == ZFS_PROP_CANMOUNT) {
602 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
603 } else if (prop == ZFS_PROP_VOLSIZE) {
604 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
605 } else if (prop == ZFS_PROP_FSID_GUID) {
606 clp->cl_prop = ZFS_PROP_MOUNTPOINT;
607 } else {
608 clp->cl_prop = prop;
609 }
610 clp->cl_realprop = prop;
611
612 if (clp->cl_prop != ZFS_PROP_MOUNTPOINT &&
613 clp->cl_prop != ZFS_PROP_SHARENFS &&
614 clp->cl_prop != ZFS_PROP_SHARESMB)
615 return (clp);
616
617 /*
618 * If watching SHARENFS or SHARESMB then
619 * also watch its companion property.
620 */
621 if (clp->cl_prop == ZFS_PROP_SHARENFS)
622 clp->cl_shareprop = ZFS_PROP_SHARESMB;
623 else if (clp->cl_prop == ZFS_PROP_SHARESMB)
624 clp->cl_shareprop = ZFS_PROP_SHARENFS;
625
626 if (clp->cl_alldependents) {
|