Searched defs:mos (Results 1 - 23 of 23) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_object.c415 dmu_object_zapify(objset_t *mos, uint64_t object, dmu_object_type_t old_type, argument
422 VERIFY0(dnode_hold(mos, object, FTAG, &dn));
435 mzap_create_impl(mos, object, 0, 0, tx);
442 spa_feature_incr(dmu_objset_spa(mos),
447 dmu_object_free_zapified(objset_t *mos, uint64_t object, dmu_tx_t *tx) argument
454 VERIFY0(dnode_hold(mos, object, FTAG, &dn));
459 spa_feature_decr(dmu_objset_spa(mos),
462 VERIFY0(dmu_object_free(mos, object, tx));
H A Ddsl_bookmark.c62 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
79 err = zap_lookup_norm(mos, bmark_zapobj, shortname, sizeof (uint64_t),
190 objset_t *mos = dp->dp_meta_objset; local
207 zap_create_norm(mos, U8_TEXTPREP_TOUPPER,
212 VERIFY0(zap_add(mos, bmark_fs->ds_object,
234 int err = zap_lookup(mos, snapds->ds_object,
244 VERIFY0(zap_add(mos, bmark_fs->ds_bookmarks,
372 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
380 err = zap_length(mos, bmark_zapobj, name, &int_size, &num_ints);
387 spa_feature_decr(dmu_objset_spa(mos),
450 objset_t *mos = dp->dp_meta_objset; local
[all...]
H A Dspa_history.c91 objset_t *mos = spa->spa_meta_objset; local
94 spa->spa_history = dmu_object_alloc(mos, DMU_OT_SPA_HISTORY,
98 VERIFY(zap_add(mos, DMU_POOL_DIRECTORY_OBJECT,
102 VERIFY(0 == dmu_bonus_hold(mos, spa->spa_history, FTAG, &dbp));
126 objset_t *mos = spa->spa_meta_objset; local
134 if ((err = dmu_read(mos, spa->spa_history, phys_bof, firstread,
138 if ((err = dmu_read(mos, spa->spa_history,
155 objset_t *mos = spa->spa_meta_objset; local
171 dmu_write(mos, spa->spa_history, phys_eof, firstwrite, buf, tx);
176 dmu_write(mos, sp
269 objset_t *mos = spa->spa_meta_objset; local
427 objset_t *mos = spa->spa_meta_objset; local
[all...]
H A Dvdev_initialize.c78 objset_t *mos = vd->vdev_spa->spa_meta_objset; local
82 VERIFY0(zap_update(mos, vd->vdev_leaf_zap,
88 VERIFY0(zap_update(mos, vd->vdev_leaf_zap,
94 VERIFY0(zap_update(mos, vd->vdev_leaf_zap,
H A Ddsl_userhold.c55 objset_t *mos = dp->dp_meta_objset; local
70 error = zap_lookup(mos, dsl_dataset_phys(ds)->ds_userrefs_obj,
159 objset_t *mos = dp->dp_meta_objset; local
171 zap_create(mos, DMU_OT_USERREFS, DMU_OT_NONE, 0, tx);
177 VERIFY0(zap_add(mos, zapobj, htag, 8, 1, &now, tx));
374 objset_t *mos; local
384 mos = ds->ds_dir->dd_pool->dp_meta_objset;
395 error = zap_lookup(mos, zapobj, holdname, 8, 1, &tmp);
499 objset_t *mos = dp->dp_meta_objset; local
510 VERIFY0(zap_remove(mos, dsl_dataset_phy
[all...]
H A Ddsl_deleg.c161 objset_t *mos = dp->dp_meta_objset; local
170 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj = zap_create(mos,
182 if (zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj) != 0) {
183 jumpobj = zap_create_link(mos, DMU_OT_DSL_PERMS,
191 VERIFY(zap_update(mos, jumpobj,
206 objset_t *mos = dp->dp_meta_objset; local
224 if (zap_lookup(mos, zapobj, whokey, 8,
226 (void) zap_remove(mos, zapobj, whokey, tx);
227 VERIFY(0 == zap_destroy(mos, jumpobj, tx));
234 if (zap_lookup(mos, zapob
311 objset_t *mos; local
407 dsl_check_access(objset_t *mos, uint64_t zapobj, char type, char checkflag, void *valp, const char *perm) argument
428 dsl_check_user_access(objset_t *mos, uint64_t zapobj, const char *perm, int checkflag, cred_t *cr) argument
472 dsl_load_sets(objset_t *mos, uint64_t zapobj, char type, char checkflag, void *valp, avl_tree_t *avl) argument
511 dsl_load_user_sets(objset_t *mos, uint64_t zapobj, avl_tree_t *avl, char checkflag, cred_t *cr) argument
549 objset_t *mos; local
673 objset_t *mos = dd->dd_pool->dp_meta_objset; local
737 dsl_deleg_destroy(objset_t *mos, uint64_t zapobj, dmu_tx_t *tx) argument
[all...]
H A Ddsl_destroy.c151 objset_t *mos = dp->dp_meta_objset; local
177 dsl_deadlist_open(&ds->ds_deadlist, mos,
179 dsl_deadlist_open(&ds_next->ds_deadlist, mos,
186 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
198 for (zap_cursor_init(&zc, mos, dsl_dir_phys(ds->ds_dir)->dd_clones);
258 objset_t *mos = dp->dp_meta_objset; local
305 VERIFY0(zap_add_int(mos,
369 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx);
480 ASSERT0(zap_count(mos,
483 VERIFY0(dmu_object_free(mos,
694 objset_t *mos; local
756 objset_t *mos = dp->dp_meta_objset; local
809 objset_t *mos = dp->dp_meta_objset; local
[all...]
H A Ddsl_prop.c78 objset_t *mos = dd->dd_pool->dp_meta_objset; local
107 err = zap_lookup(mos, dsl_dir_phys(dd)->dd_props_zapobj,
119 err = zap_contains(mos, dsl_dir_phys(dd)->dd_props_zapobj,
126 err = zap_lookup(mos, dsl_dir_phys(dd)->dd_props_zapobj,
172 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
178 err = zap_lookup(mos, zapobj, propname, intsz, numints, buf);
192 err = zap_contains(mos, zapobj, inheritstr);
202 err = zap_lookup(mos, zapobj, recvdstr,
367 objset_t *mos; local
383 mos
541 objset_t *mos = dp->dp_meta_objset; local
614 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
933 dsl_prop_get_all_impl(objset_t *mos, uint64_t propobj, const char *setpoint, dsl_prop_getflags_t flags, nvlist_t *nv) argument
1063 objset_t *mos = dp->dp_meta_objset; local
[all...]
H A Ddmu_traverse.c697 objset_t *mos = dp->dp_meta_objset; local
708 err = dmu_object_next(mos, &obj, B_FALSE, txg_start)) {
711 err = dmu_object_info(mos, obj, &doi);
H A Dvdev_trim.c213 objset_t *mos = vd->vdev_spa->spa_meta_objset; local
221 VERIFY0(zap_update(mos, vd->vdev_leaf_zap,
228 VERIFY0(zap_update(mos, vd->vdev_leaf_zap,
239 VERIFY0(zap_update(mos, vd->vdev_leaf_zap,
247 VERIFY0(zap_update(mos, vd->vdev_leaf_zap, VDEV_LEAF_ZAP_TRIM_PARTIAL,
254 VERIFY0(zap_update(mos, vd->vdev_leaf_zap, VDEV_LEAF_ZAP_TRIM_SECURE,
259 VERIFY0(zap_update(mos, vd->vdev_leaf_zap, VDEV_LEAF_ZAP_TRIM_STATE,
H A Ddsl_pool.c377 /* undo the dmu_objset_open_impl(mos) from dsl_pool_open() */
600 objset_t *mos = dp->dp_meta_objset; local
725 * (dp_mos_dir). We can't modify the mos while we're syncing
739 if (dmu_objset_is_dirty(mos, txg)) {
1005 objset_t *mos = dp->dp_meta_objset; local
1016 zap_create(mos, DMU_OT_DSL_CLONES, DMU_OT_NONE,
1089 objset_t *mos = dp->dp_meta_objset; local
1099 for (zap_cursor_init(&zc, mos, zapobj);
1128 objset_t *mos = dp->dp_meta_objset; local
1133 dp->dp_tmp_userrefs_obj = zap_create_link(mos, DMU_OT_USERREF
1141 objset_t *mos = dp->dp_meta_objset; local
[all...]
H A Dspa_log_spacemap.c888 objset_t *mos = spa_meta_objset(spa); local
891 int error = zap_lookup(mos, DMU_POOL_DIRECTORY_OBJECT,
908 space_map_free_obj(mos, sls->sls_sm_obj, tx);
909 VERIFY0(zap_remove_int(mos, spacemap_zap, sls->sls_txg, tx));
929 objset_t *mos = spa_meta_objset(spa); local
938 int error = zap_lookup(mos, DMU_POOL_DIRECTORY_OBJECT,
944 spacemap_zap = zap_create(mos,
946 VERIFY0(zap_add(mos, DMU_POOL_DIRECTORY_OBJECT,
954 ASSERT3U(zap_lookup_int_key(mos, spacemap_zap, txg, &sm_obj),
956 sm_obj = space_map_alloc(mos, zfs_log_sm_blks
1206 objset_t *mos = spa_meta_objset(spa); local
[all...]
H A Dvdev_indirect.c364 objset_t *mos = spa->spa_meta_objset; local
373 vdev_indirect_mapping_open(mos, scip->scip_next_mapping_object);
486 objset_t *mos = spa->spa_meta_objset; local
512 vdev_indirect_mapping_free(mos, vic->vic_mapping_object, tx);
516 space_map_free_obj(mos, scip->scip_prev_obsolete_sm_object, tx);
522 VERIFY0(zap_remove(mos, DMU_POOL_DIRECTORY_OBJECT,
H A Dvdev_removal.c239 objset_t *mos = spa->spa_dsl_pool->dp_meta_objset; local
264 vic->vic_mapping_object = vdev_indirect_mapping_alloc(mos, tx);
266 vdev_indirect_mapping_open(mos, vic->vic_mapping_object);
267 vic->vic_births_object = vdev_indirect_births_alloc(mos, tx);
269 vdev_indirect_births_open(mos, vic->vic_births_object);
319 VERIFY0(dmu_object_info(mos, DMU_POOL_DIRECTORY_OBJECT, &doi));
322 VERIFY0(dmu_buf_hold(mos, DMU_POOL_DIRECTORY_OBJECT,
1552 objset_t *mos = spa->spa_meta_objset; local
1643 vdev_indirect_mapping_free(mos, vic->vic_mapping_object, tx);
1650 vdev_indirect_births_free(mos, vi
[all...]
H A Ddsl_dir.c757 objset_t *mos = dd->dd_pool->dp_meta_objset; local
760 if (zap_lookup(mos, dd->dd_object, DD_FIELD_LAST_REMAP_TXG,
763 VERIFY0(zap_update(mos, dd->dd_object, DD_FIELD_LAST_REMAP_TXG,
930 objset_t *mos = dp->dp_meta_objset; local
935 ddobj = dmu_object_alloc(mos, DMU_OT_DSL_DIR, 0,
938 VERIFY0(zap_add(mos, dsl_dir_phys(pds)->dd_child_dir_zapobj,
942 VERIFY0(zap_add(mos, DMU_POOL_DIRECTORY_OBJECT,
945 VERIFY0(dmu_bonus_hold(mos, ddobj, FTAG, &dbuf));
956 ddphys->dd_props_zapobj = zap_create(mos,
958 ddphys->dd_child_dir_zapobj = zap_create(mos,
2000 objset_t *mos = dp->dp_meta_objset; local
2154 objset_t *mos = dd->dd_pool->dp_meta_objset; local
[all...]
H A Ddsl_crypt.c548 dsl_crypto_key_open(objset_t *mos, dsl_wrapping_key_t *wkey, argument
565 ret = zap_lookup(mos, dckobj, DSL_CRYPTO_KEY_CRYPTO_SUITE, 8, 1,
570 ret = zap_lookup(mos, dckobj, DSL_CRYPTO_KEY_GUID, 8, 1, &guid);
574 ret = zap_lookup(mos, dckobj, DSL_CRYPTO_KEY_MASTER_KEY, 1,
579 ret = zap_lookup(mos, dckobj, DSL_CRYPTO_KEY_HMAC_KEY, 1,
584 ret = zap_lookup(mos, dckobj, DSL_CRYPTO_KEY_IV, 1, WRAPPING_IV_LEN,
589 ret = zap_lookup(mos, dckobj, DSL_CRYPTO_KEY_MAC, 1, WRAPPING_MAC_LEN,
595 (void) zap_lookup(mos, dckobj, DSL_CRYPTO_KEY_VERSION, 8, 1, &version);
1172 dsl_crypto_key_sync_impl(objset_t *mos, uint64_t dckobj, uint64_t crypt, argument
1177 VERIFY0(zap_update(mos, dckob
2130 objset_t *mos = tx->tx_pool->dp_meta_objset; local
2222 objset_t *mos = dp->dp_meta_objset; local
2381 objset_t *mos = dp->dp_meta_objset; local
2558 objset_t *mos = tx->tx_pool->dp_meta_objset; local
2571 objset_t *mos = tx->tx_pool->dp_meta_objset; local
[all...]
H A Ddmu_recv.c395 objset_t *mos = dp->dp_meta_objset; local
472 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_FROMGUID,
475 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_TOGUID,
477 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_TONAME,
481 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_OBJECT,
483 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_OFFSET,
485 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_BYTES,
488 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_LARGEBLOCK,
492 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_EMBEDOK,
496 VERIFY0(zap_add(mos, dsob
2316 objset_t *mos = dmu_objset_pool(ra->os)->dp_meta_objset; local
[all...]
H A Dmetaslab.c1987 objset_t *mos = spa->spa_meta_objset; local
2015 error = space_map_open(&ms->ms_sm, mos, object, ms->ms_start,
3165 objset_t *mos = spa_meta_objset(spa); local
3220 uint64_t new_object = space_map_alloc(mos,
3226 dmu_write(mos, vd->vdev_ms_array, sizeof (uint64_t) *
3229 VERIFY0(space_map_open(&msp->ms_sm, mos, new_object,
3259 uint64_t new_object = space_map_alloc(mos,
3264 mos, new_object, 0, vd->vdev_asize, vd->vdev_ashift));
3438 VERIFY0(dmu_read(mos, vd->vdev_ms_array,
5182 objset_t *mos local
[all...]
H A Dvdev.c1185 objset_t *mos = spa->spa_meta_objset; local
1223 error = dmu_read(mos, vd->vdev_ms_array,
2624 objset_t *mos = spa->spa_meta_objset; local
2630 error = space_map_open(&vd->vdev_dtl_sm, mos,
2657 objset_t *mos = spa->spa_meta_objset; local
2669 VERIFY0(zap_add(mos, vd->vdev_top_zap, VDEV_TOP_ZAP_ALLOCATION_BIAS,
2728 objset_t *mos = spa->spa_meta_objset; local
2763 new_object = space_map_alloc(mos, zfs_vdev_dtl_sm_blksz, tx);
2766 VERIFY0(space_map_open(&vd->vdev_dtl_sm, mos, new_object,
2951 objset_t *mos local
2993 objset_t *mos = vd->vdev_spa->spa_meta_objset; local
3056 objset_t *mos = spa_meta_objset(vd->vdev_spa); local
[all...]
H A Ddsl_dataset.c352 objset_t *mos = dp->dp_meta_objset; local
359 err = dmu_bonus_hold(mos, dsl_dir_phys(ds->ds_dir)->dd_head_dataset_obj,
373 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
381 err = zap_lookup_norm(mos, snapobj, name, 8, 1,
384 err = zap_lookup(mos, snapobj, name, 8, 1, value);
392 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
402 err = zap_remove_norm(mos, snapobj, name, mt, tx);
404 err = zap_remove(mos, snapobj, name, tx);
435 objset_t *mos = dp->dp_meta_objset; local
443 err = dmu_bonus_hold(mos, dsob
874 objset_t *mos = dmu_tx_pool(tx)->dp_meta_objset; local
890 objset_t *mos = dmu_tx_pool(tx)->dp_meta_objset; local
906 objset_t *mos = dp->dp_meta_objset; local
1125 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
1440 objset_t *mos = dp->dp_meta_objset; local
1879 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
4198 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local
[all...]
H A Dspa.c388 objset_t *mos = spa->spa_meta_objset; local
403 if (mos == NULL || spa->spa_pool_props_object == 0) {
411 for (zap_cursor_init(&zc, mos, spa->spa_pool_props_object);
462 err = zap_lookup(mos, spa->spa_pool_props_object,
7976 objset_t *mos = spa->spa_meta_objset; local
8046 * Set pool property values in the poolprops mos object.
8050 zap_create_link(mos, DMU_OT_POOL_PROPS,
8062 VERIFY0(zap_update(mos,
8075 VERIFY0(zap_update(mos,
8307 objset_t *mos local
[all...]
/illumos-gate/usr/src/cmd/zhack/
H A Dzhack.c273 objset_t *mos; local
320 mos = spa->spa_meta_objset;
324 if (0 == zap_contains(mos, spa->spa_feat_desc_obj, feature.fi_guid))
369 objset_t *mos; local
413 mos = spa->spa_meta_objset;
420 if (0 == zap_contains(mos, spa->spa_feat_for_read_obj,
423 } else if (0 == zap_contains(mos, spa->spa_feat_for_write_obj,
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c1101 objset_t *mos = vd->vdev_spa->spa_meta_objset; local
1107 dump_spacemap(mos, vd->vdev_obsolete_sm);
5026 objset_t *mos = spa->spa_meta_objset; local
5063 vdev_indirect_mapping_open(mos,
5106 while (dmu_object_next(mos, &object, B_FALSE, 0) == 0) {
5112 dmu_object_info(mos, object, &doi);

Completed in 239 milliseconds