usr/src/uts/common/fs/zfs/sys/dsl_prop.h
changeset 12296 7cf402a7f374
parent 11022 63ab26072e41
child 13743 95aba6e49b9f
equal deleted inserted replaced
12295:e16f396f04a1 12296:7cf402a7f374
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 /*
    21 /*
    22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
    22  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    23  * Use is subject to license terms.
       
    24  */
    23  */
    25 
    24 
    26 #ifndef	_SYS_DSL_PROP_H
    25 #ifndef	_SYS_DSL_PROP_H
    27 #define	_SYS_DSL_PROP_H
    26 #define	_SYS_DSL_PROP_H
    28 
    27 
    89 dsl_syncfunc_t dsl_props_set_sync;
    88 dsl_syncfunc_t dsl_props_set_sync;
    90 int dsl_prop_set(const char *ddname, const char *propname,
    89 int dsl_prop_set(const char *ddname, const char *propname,
    91     zprop_source_t source, int intsz, int numints, const void *buf);
    90     zprop_source_t source, int intsz, int numints, const void *buf);
    92 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl);
    91 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl);
    93 void dsl_dir_prop_set_uint64_sync(dsl_dir_t *dd, const char *name, uint64_t val,
    92 void dsl_dir_prop_set_uint64_sync(dsl_dir_t *dd, const char *name, uint64_t val,
    94     cred_t *cr, dmu_tx_t *tx);
    93     dmu_tx_t *tx);
    95 
    94 
    96 void dsl_prop_setarg_init_uint64(dsl_prop_setarg_t *psa, const char *propname,
    95 void dsl_prop_setarg_init_uint64(dsl_prop_setarg_t *psa, const char *propname,
    97     zprop_source_t source, uint64_t *value);
    96     zprop_source_t source, uint64_t *value);
    98 int dsl_prop_predict_sync(dsl_dir_t *dd, dsl_prop_setarg_t *psa);
    97 int dsl_prop_predict_sync(dsl_dir_t *dd, dsl_prop_setarg_t *psa);
    99 #ifdef	ZFS_DEBUG
    98 #ifdef	ZFS_DEBUG