/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zcp_iter.c | 53 uint64_t dsobj = lua_tonumber(state, lua_upvalueindex(1)); in zcp_clones_iter() local 60 err = dsl_dataset_hold_obj(dp, dsobj, FTAG, &ds); in zcp_clones_iter() 142 uint64_t dsobj = ds->ds_object; in zcp_clones_list() local 150 lua_pushnumber(state, dsobj); in zcp_clones_list() 161 uint64_t dsobj = lua_tonumber(state, lua_upvalueindex(1)); in zcp_snapshots_iter() local 168 err = dsl_dataset_hold_obj(dp, dsobj, FTAG, &ds); in zcp_snapshots_iter() 219 uint64_t dsobj; in zcp_snapshots_list() local 225 dsobj = ds->ds_object; in zcp_snapshots_list() 233 lua_pushnumber(state, dsobj); in zcp_snapshots_list() 244 uint64_t dsobj = lua_tonumber(state, lua_upvalueindex(1)); in zcp_children_iter() local [all …]
|
H A D | dsl_dataset.c | 571 dsl_dataset_hold_obj(dsl_pool_t *dp, uint64_t dsobj, const void *tag, in dsl_dataset_hold_obj() argument 582 err = dmu_bonus_hold(mos, dsobj, tag, &dbuf); in dsl_dataset_hold_obj() 599 ds->ds_object = dsobj; in dsl_dataset_hold_obj() 675 zap_contains(mos, dsobj, DS_FIELD_IVSET_GUID) != 0) { in dsl_dataset_hold_obj() 734 (u_longlong_t)dsobj); in dsl_dataset_hold_obj() 762 dsl_dataset_hold_obj_flags(dsl_pool_t *dp, uint64_t dsobj, in dsl_dataset_hold_obj_flags() argument 767 err = dsl_dataset_hold_obj(dp, dsobj, tag, dsp); in dsl_dataset_hold_obj_flags() 844 dsl_dataset_own_obj_impl(dsl_pool_t *dp, uint64_t dsobj, ds_hold_flags_t flags, in dsl_dataset_own_obj_impl() argument 847 int err = dsl_dataset_hold_obj_flags(dp, dsobj, flags, tag, dsp); in dsl_dataset_own_obj_impl() 860 dsl_dataset_own_obj(dsl_pool_t *dp, uint64_t dsobj, ds_hold_flags_t flags, in dsl_dataset_own_obj() argument [all …]
|
H A D | dsl_pool.c | 1163 uint64_t dsobj; in dsl_pool_create_origin() local 1171 dsobj = dsl_dataset_create_sync(dp->dp_root_dir, ORIGIN_DIR_NAME, in dsl_pool_create_origin() 1173 VERIFY0(dsl_dataset_hold_obj(dp, dsobj, FTAG, &ds)); in dsl_pool_create_origin() 1252 dsl_pool_user_hold_rele_impl(dsl_pool_t *dp, uint64_t dsobj, in dsl_pool_user_hold_rele_impl() argument 1276 name = kmem_asprintf("%llx-%s", (u_longlong_t)dsobj, tag); in dsl_pool_user_hold_rele_impl() 1290 dsl_pool_user_hold(dsl_pool_t *dp, uint64_t dsobj, const char *tag, in dsl_pool_user_hold() argument 1293 return (dsl_pool_user_hold_rele_impl(dp, dsobj, tag, now, tx, B_TRUE)); in dsl_pool_user_hold() 1300 dsl_pool_user_release(dsl_pool_t *dp, uint64_t dsobj, const char *tag, in dsl_pool_user_release() argument 1303 return (dsl_pool_user_hold_rele_impl(dp, dsobj, tag, 0, in dsl_pool_user_release()
|
H A D | dmu_recv.c | 849 uint64_t dsobj; in dmu_recv_begin_sync() local 889 &dsobj)); in dmu_recv_begin_sync() 891 dsobj = dsl_dataset_create_sync(ds->ds_dir, in dmu_recv_begin_sync() 912 dsobj = dsl_dataset_create_sync(dd, strrchr(tofs, '/') + 1, in dmu_recv_begin_sync() 919 VERIFY0(dsl_dataset_own_obj_force(dp, dsobj, dsflags, dmu_recv_tag, in dmu_recv_begin_sync() 937 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_FROMGUID, in dmu_recv_begin_sync() 940 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_TOGUID, in dmu_recv_begin_sync() 942 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_TONAME, in dmu_recv_begin_sync() 946 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_OBJECT, in dmu_recv_begin_sync() 948 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_OFFSET, in dmu_recv_begin_sync() [all …]
|
H A D | dsl_crypt.c | 1086 spa_keystore_remove_mapping(spa_t *spa, uint64_t dsobj, const void *tag) in spa_keystore_remove_mapping() argument 1093 search_km.km_dsobj = dsobj; in spa_keystore_remove_mapping() 1124 spa_keystore_lookup_key(spa_t *spa, uint64_t dsobj, const void *tag, in spa_keystore_lookup_key() argument 1135 search_km.km_dsobj = dsobj; in spa_keystore_lookup_key() 1905 dsl_dataset_create_crypt_sync(uint64_t dsobj, dsl_dir_t *dd, in dsl_dataset_create_crypt_sync() argument 1972 dsl_dataset_activate_feature(dsobj, SPA_FEATURE_ENCRYPTION, in dsl_dataset_create_crypt_sync() 2400 dsl_crypto_recv_raw(const char *poolname, uint64_t dsobj, uint64_t fromobj, in dsl_crypto_recv_raw() argument 2405 dcrka.dcrka_dsobj = dsobj; in dsl_crypto_recv_raw() 2678 spa_crypt_get_salt(spa_t *spa, uint64_t dsobj, uint8_t *salt) in spa_crypt_get_salt() argument 2684 ret = spa_keystore_lookup_key(spa, dsobj, FTAG, &dck); in spa_crypt_get_salt() [all …]
|
H A D | dsl_scan.c | 127 static boolean_t scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj, 129 static void scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg); 130 static void scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj); 1456 scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj, uint64_t *txg) in scan_ds_queue_contains() argument 1460 srch.sds_dsobj = dsobj; in scan_ds_queue_contains() 1468 scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg) in scan_ds_queue_insert() argument 1474 sds->sds_dsobj = dsobj; in scan_ds_queue_insert() 1482 scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj) in scan_ds_queue_remove() argument 1486 srch.sds_dsobj = dsobj; in scan_ds_queue_remove() 2746 dsl_scan_visitds(dsl_scan_t *scn, uint64_t dsobj, dmu_tx_t *tx) in dsl_scan_visitds() argument [all …]
|
H A D | dsl_userhold.c | 362 dsl_dataset_hold_obj_string(dsl_pool_t *dp, const char *dsobj, const void *tag, in dsl_dataset_hold_obj_string() argument 365 return (dsl_dataset_hold_obj(dp, zfs_strtonum(dsobj, NULL), tag, dsp)); in dsl_dataset_hold_obj_string()
|
H A D | spa_errlog.c | 161 static int get_head_ds(spa_t *spa, uint64_t dsobj, uint64_t *head_ds) in get_head_ds() argument 165 dsobj, DS_HOLD_FLAG_DECRYPT, FTAG, &ds); in get_head_ds()
|
H A D | zio.c | 510 uint64_t dsobj = zio->io_bookmark.zb_objset; in zio_decrypt() local 577 dsobj, zio->io_abd, size, BP_SHOULD_BYTESWAP(bp)); in zio_decrypt() 580 ret = spa_do_crypt_mac_abd(B_FALSE, spa, dsobj, in zio_decrypt() 4680 uint64_t dsobj = zio->io_bookmark.zb_objset; in zio_encrypt() local 4748 VERIFY0(spa_do_crypt_objset_mac_abd(B_TRUE, spa, dsobj, in zio_encrypt() 4756 VERIFY0(spa_do_crypt_mac_abd(B_TRUE, spa, dsobj, in zio_encrypt()
|
H A D | arc.c | 1765 arc_hdr_authenticate(arc_buf_hdr_t *hdr, spa_t *spa, uint64_t dsobj) in arc_hdr_authenticate() argument 1808 ret = spa_do_crypt_objset_mac_abd(B_FALSE, spa, dsobj, abd, in arc_hdr_authenticate() 1811 ret = spa_do_crypt_mac_abd(B_FALSE, spa, dsobj, abd, psize, in arc_hdr_authenticate() 2853 arc_loan_raw_buf(spa_t *spa, uint64_t dsobj, boolean_t byteorder, in arc_loan_raw_buf() argument 2858 arc_buf_t *buf = arc_alloc_raw_buf(spa, arc_onloan_tag, dsobj, in arc_loan_raw_buf() 3395 arc_convert_to_raw(arc_buf_t *buf, uint64_t dsobj, boolean_t byteorder, in arc_convert_to_raw() argument 3407 hdr->b_crypt_hdr.b_dsobj = dsobj; in arc_convert_to_raw() 3473 arc_alloc_raw_buf(spa_t *spa, const void *tag, uint64_t dsobj, in arc_alloc_raw_buf() argument 3491 hdr->b_crypt_hdr.b_dsobj = dsobj; in arc_alloc_raw_buf()
|
H A D | spa.c | 967 spa_prop_clear_bootfs(spa_t *spa, uint64_t dsobj, dmu_tx_t *tx) in spa_prop_clear_bootfs() argument 969 if (spa->spa_bootfs == dsobj && spa->spa_pool_props_object != 0) { in spa_prop_clear_bootfs()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | dsl_crypt.h | 187 int spa_keystore_remove_mapping(spa_t *spa, uint64_t dsobj, const void *tag); 190 int spa_keystore_lookup_key(spa_t *spa, uint64_t dsobj, const void *tag, 199 int dsl_crypto_recv_raw(const char *poolname, uint64_t dsobj, uint64_t fromobj, 210 void dsl_dataset_create_crypt_sync(uint64_t dsobj, dsl_dir_t *dd, 217 int spa_crypt_get_salt(spa_t *spa, uint64_t dsobj, uint8_t *salt); 218 int spa_do_crypt_mac_abd(boolean_t generate, spa_t *spa, uint64_t dsobj, 220 int spa_do_crypt_objset_mac_abd(boolean_t generate, spa_t *spa, uint64_t dsobj,
|
H A D | dsl_dataset.h | 337 int dsl_dataset_hold_obj_flags(struct dsl_pool *dp, uint64_t dsobj, 340 int dsl_dataset_hold_obj(struct dsl_pool *dp, uint64_t dsobj, 349 int dsl_dataset_own_obj(struct dsl_pool *dp, uint64_t dsobj, 351 int dsl_dataset_own_obj_force(struct dsl_pool *dp, uint64_t dsobj, 492 void dsl_dataset_activate_feature(uint64_t dsobj, spa_feature_t f, void *arg,
|
H A D | arc.h | 272 void arc_convert_to_raw(arc_buf_t *buf, uint64_t dsobj, boolean_t byteorder, 280 arc_buf_t *arc_alloc_raw_buf(spa_t *spa, const void *tag, uint64_t dsobj, 288 arc_buf_t *arc_loan_raw_buf(spa_t *spa, uint64_t dsobj, boolean_t byteorder,
|
H A D | dsl_pool.h | 189 int dsl_pool_user_hold(dsl_pool_t *dp, uint64_t dsobj, 191 int dsl_pool_user_release(dsl_pool_t *dp, uint64_t dsobj,
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_pool.c | 4915 zpool_obj_to_path_impl(zpool_handle_t *zhp, uint64_t dsobj, uint64_t obj, in zpool_obj_to_path_impl() argument 4923 if (dsobj == 0) { in zpool_obj_to_path_impl() 4932 zc.zc_obj = dsobj; in zpool_obj_to_path_impl() 4937 (longlong_t)dsobj, (longlong_t)obj); in zpool_obj_to_path_impl() 4966 zpool_obj_to_path(zpool_handle_t *zhp, uint64_t dsobj, uint64_t obj, in zpool_obj_to_path() argument 4969 zpool_obj_to_path_impl(zhp, dsobj, obj, pathname, len, B_FALSE); in zpool_obj_to_path() 4973 zpool_obj_to_path_ds(zpool_handle_t *zhp, uint64_t dsobj, uint64_t obj, in zpool_obj_to_path_ds() argument 4976 zpool_obj_to_path_impl(zhp, dsobj, obj, pathname, len, B_TRUE); in zpool_obj_to_path_ds()
|
H A D | libzfs.abi | 6917 <parameter type-id='9c313c2d' name='dsobj'/> 6925 <parameter type-id='9c313c2d' name='dsobj'/>
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_main.c | 9521 uint64_t dsobj, obj; in errors_nvlist() local 9526 ZPOOL_ERR_DATASET, &dsobj) == 0); in errors_nvlist() 9530 zpool_obj_to_path(zhp, dsobj, obj, in errors_nvlist() 10234 uint64_t dsobj, obj; in print_error_log() local 10238 &dsobj) == 0); in print_error_log() 10241 zpool_obj_to_path(zhp, dsobj, obj, pathname, len); in print_error_log()
|