130 uint64_t zap_create_norm(objset_t *ds, int normflags, dmu_object_type_t ot, |
131 uint64_t zap_create_norm(objset_t *ds, int normflags, dmu_object_type_t ot, |
131 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); |
132 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); |
132 uint64_t zap_create_flags(objset_t *os, int normflags, zap_flags_t flags, |
133 uint64_t zap_create_flags(objset_t *os, int normflags, zap_flags_t flags, |
133 dmu_object_type_t ot, int leaf_blockshift, int indirect_blockshift, |
134 dmu_object_type_t ot, int leaf_blockshift, int indirect_blockshift, |
134 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); |
135 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); |
|
136 uint64_t zap_create_link(objset_t *os, dmu_object_type_t ot, |
|
137 uint64_t parent_obj, const char *name, dmu_tx_t *tx); |
135 |
138 |
136 /* |
139 /* |
137 * Create a new zapobj with no attributes from the given (unallocated) |
140 * Create a new zapobj with no attributes from the given (unallocated) |
138 * object number. |
141 * object number. |
139 */ |
142 */ |
298 int zap_add_int_key(objset_t *os, uint64_t obj, |
301 int zap_add_int_key(objset_t *os, uint64_t obj, |
299 uint64_t key, uint64_t value, dmu_tx_t *tx); |
302 uint64_t key, uint64_t value, dmu_tx_t *tx); |
300 int zap_lookup_int_key(objset_t *os, uint64_t obj, |
303 int zap_lookup_int_key(objset_t *os, uint64_t obj, |
301 uint64_t key, uint64_t *valuep); |
304 uint64_t key, uint64_t *valuep); |
302 |
305 |
303 /* |
|
304 * They name is a stringified version of key; increment its value by |
|
305 * delta. Zero values will be zap_remove()-ed. |
|
306 */ |
|
307 int zap_increment_int(objset_t *os, uint64_t obj, uint64_t key, int64_t delta, |
|
308 dmu_tx_t *tx); |
|
309 int zap_increment(objset_t *os, uint64_t obj, const char *name, int64_t delta, |
306 int zap_increment(objset_t *os, uint64_t obj, const char *name, int64_t delta, |
310 dmu_tx_t *tx); |
307 dmu_tx_t *tx); |
311 |
308 |
312 struct zap; |
309 struct zap; |
313 struct zap_leaf; |
310 struct zap_leaf; |