| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | dsl_deleg.c | 164 uint64_t zapobj; in dsl_deleg_set_sync() local 168 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj; in dsl_deleg_set_sync() 169 if (zapobj == 0) { in dsl_deleg_set_sync() 171 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj = zap_create(mos, in dsl_deleg_set_sync() 183 if (zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj) != 0) { in dsl_deleg_set_sync() 185 zapobj, whokey, tx); in dsl_deleg_set_sync() 208 uint64_t zapobj; in dsl_deleg_unset_sync() local 211 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj; in dsl_deleg_unset_sync() 212 if (zapobj == 0) { in dsl_deleg_unset_sync() 224 if (zap_lookup(mos, zapobj, whokey, 8, in dsl_deleg_unset_sync() [all …]
|
| H A D | zap.c | 210 zap_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx) in zap_destroy() argument 218 return (dmu_object_free(os, zapobj, tx)); in zap_destroy() 275 zap_lookup(objset_t *os, uint64_t zapobj, const char *name, in zap_lookup() argument 278 return (zap_lookup_norm(os, zapobj, name, integer_size, in zap_lookup() 291 zap_lookup_norm(objset_t *os, uint64_t zapobj, const char *name, in zap_lookup_norm() argument 297 int err = dnode_hold(os, zapobj, FTAG, &dn); in zap_lookup_norm() 333 zap_lookup_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key, in zap_lookup_uint64() argument 337 int err = dnode_hold(os, zapobj, FTAG, &dn); in zap_lookup_uint64() 367 zap_contains(objset_t *os, uint64_t zapobj, const char *name) in zap_contains() argument 370 int err = dnode_hold(os, zapobj, FTAG, &dn); in zap_contains() [all …]
|
| H A D | dsl_prop.c | 197 uint64_t zapobj; in dsl_prop_get_ds() local 201 zapobj = dsl_dataset_phys(ds)->ds_props_obj; in dsl_prop_get_ds() 203 if (zapobj != 0) { in dsl_prop_get_ds() 210 err = zap_lookup(mos, zapobj, propname, intsz, numints, buf); in dsl_prop_get_ds() 224 err = zap_contains(mos, zapobj, inheritstr); in dsl_prop_get_ds() 234 err = zap_lookup(mos, zapobj, recvdstr, in dsl_prop_get_ds() 401 uint64_t zapobj; in dsl_prop_predict() local 417 zapobj = dsl_dir_phys(dd)->dd_props_zapobj; in dsl_prop_predict() 431 err = zap_lookup(mos, zapobj, recvdstr, 8, 1, newvalp); in dsl_prop_predict() 443 err = zap_lookup(mos, zapobj, propname, 8, 1, newvalp); in dsl_prop_predict() [all …]
|
| H A D | zfeature.c | 257 uint64_t zapobj = (feature->fi_flags & ZFEATURE_FLAG_READONLY_COMPAT) ? in feature_get_refcount_from_disk() local 264 if (zapobj == 0) in feature_get_refcount_from_disk() 267 err = zap_lookup(spa->spa_meta_objset, zapobj, in feature_get_refcount_from_disk() 309 uint64_t zapobj = (feature->fi_flags & ZFEATURE_FLAG_READONLY_COMPAT) ? in feature_sync() local 312 VERIFY0(zap_update(spa->spa_meta_objset, zapobj, feature->fi_guid, in feature_sync() 344 uint64_t zapobj = (feature->fi_flags & ZFEATURE_FLAG_READONLY_COMPAT) ? in feature_enable_sync() local 347 ASSERT(0 != zapobj); in feature_enable_sync() 354 if (zap_contains(spa->spa_meta_objset, zapobj, feature->fi_guid) == 0) in feature_enable_sync() 411 uint64_t zapobj __maybe_unused = in feature_do_action() 416 ASSERT(0 != zapobj); in feature_do_action()
|
| H A D | dsl_userhold.c | 161 uint64_t zapobj; in dsl_dataset_user_hold_sync_one_impl() local 171 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj = in dsl_dataset_user_hold_sync_one_impl() 174 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; in dsl_dataset_user_hold_sync_one_impl() 178 VERIFY0(zap_add(mos, zapobj, htag, 8, 1, &now, tx)); in dsl_dataset_user_hold_sync_one_impl() 373 uint64_t zapobj; in dsl_dataset_user_release_check_one() local 386 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; in dsl_dataset_user_release_check_one() 395 if (zapobj != 0) in dsl_dataset_user_release_check_one() 396 error = zap_lookup(mos, zapobj, holdname, 8, 1, &tmp); in dsl_dataset_user_release_check_one()
|
| H A D | dsl_pool.c | 1211 uint64_t zapobj = dp->dp_tmp_userrefs_obj; in dsl_pool_clean_tmp_userrefs() local 1214 if (zapobj == 0) in dsl_pool_clean_tmp_userrefs() 1221 for (zap_cursor_init(&zc, mos, zapobj); in dsl_pool_clean_tmp_userrefs() 1265 uint64_t zapobj = dp->dp_tmp_userrefs_obj; in dsl_pool_user_hold_rele_impl() local 1276 if (zapobj == 0) { in dsl_pool_user_hold_rele_impl() 1279 zapobj = dp->dp_tmp_userrefs_obj; in dsl_pool_user_hold_rele_impl() 1287 error = zap_add(mos, zapobj, name, 8, 1, &now, tx); in dsl_pool_user_hold_rele_impl() 1289 error = zap_remove(mos, zapobj, name, tx); in dsl_pool_user_hold_rele_impl()
|
| H A D | vdev.c | 3623 vdev_destroy_unlink_zap(vdev_t *vd, uint64_t zapobj, dmu_tx_t *tx) in vdev_destroy_unlink_zap() argument 3627 VERIFY0(zap_destroy(spa->spa_meta_objset, zapobj, tx)); in vdev_destroy_unlink_zap() 3629 zapobj, tx)); in vdev_destroy_unlink_zap() 3984 uint64_t zapobj; in vdev_load() local 3987 zapobj = vd->vdev_top_zap; in vdev_load() 3989 zapobj = vd->vdev_leaf_zap; in vdev_load() 3995 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load() 4001 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load() 4007 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load() 4013 "failed [error=%d]", (u_longlong_t)zapobj, error); in vdev_load() [all …]
|
| /freebsd/sys/contrib/openzfs/include/sys/ |
| H A D | zap.h | 194 int zap_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx); 223 int zap_lookup(objset_t *os, uint64_t zapobj, const char *name, 236 int zap_lookup_norm(objset_t *os, uint64_t zapobj, const char *name, 249 int zap_lookup_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key, 261 int zap_contains(objset_t *os, uint64_t zapobj, const char *name); 268 int zap_prefetch(objset_t *os, uint64_t zapobj, const char *name); 271 int zap_prefetch_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key, 280 int zap_prefetch_object(objset_t *os, uint64_t zapobj); 288 int zap_add(objset_t *os, uint64_t zapobj, const char *key, 296 int zap_add_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key, [all …]
|
| H A D | dsl_deleg.h | 86 int dsl_deleg_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx);
|
| H A D | vdev.h | 89 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 D | zap_shrink_001_pos.ksh | 70 zapobj=$(zdb -v -O $TESTPOOL/$TESTFS $DIR) 71 nleafs=$(echo "$zapobj" | grep "Leaf blocks:" | awk -F\: '{print($2);}') 78 zapobj=$(zdb -v -O $TESTPOOL/$TESTFS $DIR) 79 nleafs=$(echo "$zapobj" | grep "Leaf blocks:" | awk -F\: '{print($2);}')
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/vdev_zaps/ |
| H A D | vdev_zaps.kshlib | 53 typeset zapobj=$4 55 if [ -z "$zapobj" ]; then 57 elif ! zdb -d $pool $zapobj | grep -q 'zap'; then
|