Deleted Added
full compact
dsl_deleg.c (275782) dsl_deleg.c (286575)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 547 unchanged lines hidden (view full) ---

556
557 if (dsl_delegation_on(mos) == B_FALSE)
558 return (SET_ERROR(ECANCELED));
559
560 if (spa_version(dmu_objset_spa(dp->dp_meta_objset)) <
561 SPA_VERSION_DELEGATED_PERMS)
562 return (SET_ERROR(EPERM));
563
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 547 unchanged lines hidden (view full) ---

556
557 if (dsl_delegation_on(mos) == B_FALSE)
558 return (SET_ERROR(ECANCELED));
559
560 if (spa_version(dmu_objset_spa(dp->dp_meta_objset)) <
561 SPA_VERSION_DELEGATED_PERMS)
562 return (SET_ERROR(EPERM));
563
564 if (dsl_dataset_is_snapshot(ds)) {
564 if (ds->ds_is_snapshot) {
565 /*
566 * Snapshots are treated as descendents only,
567 * local permissions do not apply.
568 */
569 checkflag = ZFS_DELEG_DESCENDENT;
570 } else {
571 checkflag = ZFS_DELEG_LOCAL;
572 }

--- 189 unchanged lines hidden ---
565 /*
566 * Snapshots are treated as descendents only,
567 * local permissions do not apply.
568 */
569 checkflag = ZFS_DELEG_DESCENDENT;
570 } else {
571 checkflag = ZFS_DELEG_LOCAL;
572 }

--- 189 unchanged lines hidden ---