Print this page
3752 want more verifiable dbuf user eviction
Submitted by: Justin Gibbs <justing@spectralogic.com>
Submitted by: Will Andrews <willa@spectralogic.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/fs/zfs/sys/dsl_deleg.h
+++ new/usr/src/uts/common/fs/zfs/sys/dsl_deleg.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 * Copyright (c) 2012 by Delphix. All rights reserved.
24 24 */
25 25
26 26 #ifndef _SYS_DSL_DELEG_H
27 27 #define _SYS_DSL_DELEG_H
28 28
29 +#include <sys/zfs_context.h>
29 30 #include <sys/dmu.h>
30 31 #include <sys/dsl_pool.h>
31 -#include <sys/zfs_context.h>
32 32
33 33 #ifdef __cplusplus
34 34 extern "C" {
35 35 #endif
36 36
37 37 #define ZFS_DELEG_PERM_NONE ""
38 38 #define ZFS_DELEG_PERM_CREATE "create"
39 39 #define ZFS_DELEG_PERM_DESTROY "destroy"
40 40 #define ZFS_DELEG_PERM_SNAPSHOT "snapshot"
41 41 #define ZFS_DELEG_PERM_ROLLBACK "rollback"
42 42 #define ZFS_DELEG_PERM_CLONE "clone"
43 43 #define ZFS_DELEG_PERM_PROMOTE "promote"
44 44 #define ZFS_DELEG_PERM_RENAME "rename"
45 45 #define ZFS_DELEG_PERM_MOUNT "mount"
46 46 #define ZFS_DELEG_PERM_SHARE "share"
47 47 #define ZFS_DELEG_PERM_SEND "send"
48 48 #define ZFS_DELEG_PERM_RECEIVE "receive"
49 49 #define ZFS_DELEG_PERM_ALLOW "allow"
50 50 #define ZFS_DELEG_PERM_USERPROP "userprop"
51 51 #define ZFS_DELEG_PERM_VSCAN "vscan"
52 52 #define ZFS_DELEG_PERM_USERQUOTA "userquota"
53 53 #define ZFS_DELEG_PERM_GROUPQUOTA "groupquota"
54 54 #define ZFS_DELEG_PERM_USERUSED "userused"
55 55 #define ZFS_DELEG_PERM_GROUPUSED "groupused"
56 56 #define ZFS_DELEG_PERM_HOLD "hold"
57 57 #define ZFS_DELEG_PERM_RELEASE "release"
58 58 #define ZFS_DELEG_PERM_DIFF "diff"
59 59
60 60 /*
61 61 * Note: the names of properties that are marked delegatable are also
62 62 * valid delegated permissions
63 63 */
64 64
65 65 int dsl_deleg_get(const char *ddname, nvlist_t **nvp);
66 66 int dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset);
67 67 int dsl_deleg_access(const char *ddname, const char *perm, cred_t *cr);
68 68 int dsl_deleg_access_impl(struct dsl_dataset *ds, const char *perm, cred_t *cr);
69 69 void dsl_deleg_set_create_perms(dsl_dir_t *dd, dmu_tx_t *tx, cred_t *cr);
70 70 int dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr);
71 71 int dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
72 72 int dsl_deleg_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx);
73 73 boolean_t dsl_delegation_on(objset_t *os);
74 74
75 75 #ifdef __cplusplus
76 76 }
77 77 #endif
78 78
79 79 #endif /* _SYS_DSL_DELEG_H */
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX