Home
last modified time | relevance | path

Searched refs:zapobj (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_deleg.c154 uint64_t zapobj; in dsl_deleg_set_sync() local
158 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj; in dsl_deleg_set_sync()
159 if (zapobj == 0) { in dsl_deleg_set_sync()
161 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj = zap_create(mos, in dsl_deleg_set_sync()
173 if (zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj) != 0) { in dsl_deleg_set_sync()
175 zapobj, whokey, tx); in dsl_deleg_set_sync()
198 uint64_t zapobj; in dsl_deleg_unset_sync() local
201 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj; in dsl_deleg_unset_sync()
202 if (zapobj == 0) { in dsl_deleg_unset_sync()
214 if (zap_lookup(mos, zapobj, whokey, 8, in dsl_deleg_unset_sync()
[all …]
H A Dzap.c200 zap_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx) in zap_destroy() argument
208 return (dmu_object_free(os, zapobj, tx)); in zap_destroy()
265 zap_lookup(objset_t *os, uint64_t zapobj, const char *name, in zap_lookup() argument
268 return (zap_lookup_norm(os, zapobj, name, integer_size, in zap_lookup()
281 zap_lookup_norm(objset_t *os, uint64_t zapobj, const char *name, in zap_lookup_norm() argument
287 int err = dnode_hold(os, zapobj, FTAG, &dn); in zap_lookup_norm()
323 zap_lookup_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key, in zap_lookup_uint64() argument
327 int err = dnode_hold(os, zapobj, FTAG, &dn); in zap_lookup_uint64()
357 zap_contains(objset_t *os, uint64_t zapobj, const char *name) in zap_contains() argument
360 int err = dnode_hold(os, zapobj, FTAG, &dn); in zap_contains()
[all …]
H A Ddsl_prop.c187 uint64_t zapobj; in dsl_prop_get_ds() local
191 zapobj = dsl_dataset_phys(ds)->ds_props_obj; in dsl_prop_get_ds()
193 if (zapobj != 0) { in dsl_prop_get_ds()
200 err = zap_lookup(mos, zapobj, propname, intsz, numints, buf); in dsl_prop_get_ds()
214 err = zap_contains(mos, zapobj, inheritstr); in dsl_prop_get_ds()
224 err = zap_lookup(mos, zapobj, recvdstr, in dsl_prop_get_ds()
391 uint64_t zapobj; in dsl_prop_predict() local
407 zapobj = dsl_dir_phys(dd)->dd_props_zapobj; in dsl_prop_predict()
421 err = zap_lookup(mos, zapobj, recvdstr, 8, 1, newvalp); in dsl_prop_predict()
433 err = zap_lookup(mos, zapobj, propname, 8, 1, newvalp); in dsl_prop_predict()
[all …]
H A Dzfeature.c247 uint64_t zapobj = (feature->fi_flags & ZFEATURE_FLAG_READONLY_COMPAT) ? in feature_get_refcount_from_disk() local
254 if (zapobj == 0) in feature_get_refcount_from_disk()
257 err = zap_lookup(spa->spa_meta_objset, zapobj, in feature_get_refcount_from_disk()
299 uint64_t zapobj = (feature->fi_flags & ZFEATURE_FLAG_READONLY_COMPAT) ? in feature_sync() local
302 VERIFY0(zap_update(spa->spa_meta_objset, zapobj, feature->fi_guid, in feature_sync()
334 uint64_t zapobj = (feature->fi_flags & ZFEATURE_FLAG_READONLY_COMPAT) ? in feature_enable_sync() local
337 ASSERT(0 != zapobj); in feature_enable_sync()
344 if (zap_contains(spa->spa_meta_objset, zapobj, feature->fi_guid) == 0) in feature_enable_sync()
401 uint64_t zapobj __maybe_unused = in feature_do_action()
406 ASSERT(0 != zapobj); in feature_do_action()
H A Ddsl_userhold.c151 uint64_t zapobj; in dsl_dataset_user_hold_sync_one_impl() local
161 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj = in dsl_dataset_user_hold_sync_one_impl()
164 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; in dsl_dataset_user_hold_sync_one_impl()
168 VERIFY0(zap_add(mos, zapobj, htag, 8, 1, &now, tx)); in dsl_dataset_user_hold_sync_one_impl()
363 uint64_t zapobj; in dsl_dataset_user_release_check_one() local
376 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; in dsl_dataset_user_release_check_one()
385 if (zapobj != 0) in dsl_dataset_user_release_check_one()
386 error = zap_lookup(mos, zapobj, holdname, 8, 1, &tmp); in dsl_dataset_user_release_check_one()
H A Ddsl_pool.c1290 uint64_t zapobj = dp->dp_tmp_userrefs_obj; in dsl_pool_clean_tmp_userrefs() local
1293 if (zapobj == 0) in dsl_pool_clean_tmp_userrefs()
1300 for (zap_cursor_init(&zc, mos, zapobj); in dsl_pool_clean_tmp_userrefs()
1344 uint64_t zapobj = dp->dp_tmp_userrefs_obj; in dsl_pool_user_hold_rele_impl() local
1355 if (zapobj == 0) { in dsl_pool_user_hold_rele_impl()
1358 zapobj = dp->dp_tmp_userrefs_obj; in dsl_pool_user_hold_rele_impl()
1366 error = zap_add(mos, zapobj, name, 8, 1, &now, tx); in dsl_pool_user_hold_rele_impl()
1368 error = zap_remove(mos, zapobj, name, tx); in dsl_pool_user_hold_rele_impl()
H A Dvdev.c3631 vdev_destroy_unlink_zap(vdev_t *vd, uint64_t zapobj, dmu_tx_t *tx) in vdev_destroy_unlink_zap() argument
3635 VERIFY0(zap_destroy(spa->spa_meta_objset, zapobj, tx)); in vdev_destroy_unlink_zap()
3637 zapobj, tx)); in vdev_destroy_unlink_zap()
3992 uint64_t zapobj; in vdev_load() local
3995 zapobj = vd->vdev_top_zap; in vdev_load()
3997 zapobj = vd->vdev_leaf_zap; in vdev_load()
4003 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load()
4009 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load()
4015 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load()
4021 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzap.h184 int zap_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx);
213 int zap_lookup(objset_t *os, uint64_t zapobj, const char *name,
226 int zap_lookup_norm(objset_t *os, uint64_t zapobj, const char *name,
239 int zap_lookup_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
251 int zap_contains(objset_t *os, uint64_t zapobj, const char *name);
258 int zap_prefetch(objset_t *os, uint64_t zapobj, const char *name);
261 int zap_prefetch_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
270 int zap_prefetch_object(objset_t *os, uint64_t zapobj);
278 int zap_add(objset_t *os, uint64_t zapobj, const char *key,
286 int zap_add_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
[all …]
H A Ddsl_deleg.h77 int dsl_deleg_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx);
H A Dvdev.h81 extern void vdev_destroy_unlink_zap(vdev_t *vd, uint64_t zapobj,
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zap_shrink/
H A Dzap_shrink_001_pos.ksh60 zapobj=$(zdb -v -O $TESTPOOL/$TESTFS $DIR)
61 nleafs=$(echo "$zapobj" | grep "Leaf blocks:" | awk -F\: '{print($2);}')
68 zapobj=$(zdb -v -O $TESTPOOL/$TESTFS $DIR)
69 nleafs=$(echo "$zapobj" | grep "Leaf blocks:" | awk -F\: '{print($2);}')
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps.kshlib49 typeset zapobj=$4
51 if [ -z "$zapobj" ]; then
53 elif ! zdb -d $pool $zapobj | grep -q 'zap'; then