/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_object.c | 192 dmu_object_zapify(objset_t *mos, uint64_t object, dmu_object_type_t old_type, argument 199 VERIFY0(dnode_hold(mos, object, FTAG, &dn)); 211 mzap_create_impl(mos, object, 0, 0, tx); 213 spa_feature_incr(dmu_objset_spa(mos), 218 dmu_object_free_zapified(objset_t *mos, uint64_t object, dmu_tx_t *tx) argument 225 VERIFY0(dnode_hold(mos, object, FTAG, &dn)); 230 spa_feature_decr(dmu_objset_spa(mos), 233 VERIFY0(dmu_object_free(mos, object, tx));
|
H A D | dsl_bookmark.c | 60 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local 73 err = zap_lookup_norm(mos, bmark_zapobj, shortname, sizeof (uint64_t), 184 objset_t *mos = dp->dp_meta_objset; local 200 zap_create_norm(mos, U8_TEXTPREP_TOUPPER, 205 VERIFY0(zap_add(mos, bmark_fs->ds_object, 217 VERIFY0(zap_add(mos, bmark_fs->ds_bookmarks, 340 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local 349 return (zap_remove_norm(mos, bmark_zapobj, name, mt, tx)); 402 objset_t *mos = dp->dp_meta_objset; local 418 VERIFY0(zap_count(mos, d [all...] |
H A D | spa_history.c | 90 objset_t *mos = spa->spa_meta_objset; local 93 spa->spa_history = dmu_object_alloc(mos, DMU_OT_SPA_HISTORY, 97 VERIFY(zap_add(mos, DMU_POOL_DIRECTORY_OBJECT, 101 VERIFY(0 == dmu_bonus_hold(mos, spa->spa_history, FTAG, &dbp)); 125 objset_t *mos = spa->spa_meta_objset; local 133 if ((err = dmu_read(mos, spa->spa_history, phys_bof, firstread, 137 if ((err = dmu_read(mos, spa->spa_history, 154 objset_t *mos = spa->spa_meta_objset; local 170 dmu_write(mos, spa->spa_history, phys_eof, firstwrite, buf, tx); 175 dmu_write(mos, sp 203 objset_t *mos = spa->spa_meta_objset; local 340 objset_t *mos = spa->spa_meta_objset; local [all...] |
H A D | dsl_userhold.c | 55 objset_t *mos = dp->dp_meta_objset; local 70 error = zap_lookup(mos, dsl_dataset_phys(ds)->ds_userrefs_obj, 138 objset_t *mos = dp->dp_meta_objset; local 150 zap_create(mos, DMU_OT_USERREFS, DMU_OT_NONE, 0, tx); 156 VERIFY0(zap_add(mos, zapobj, htag, 8, 1, &now, tx)); 352 objset_t *mos; local 362 mos = ds->ds_dir->dd_pool->dp_meta_objset; 373 error = zap_lookup(mos, zapobj, holdname, 8, 1, &tmp); 477 objset_t *mos = dp->dp_meta_objset; local 488 VERIFY0(zap_remove(mos, dsl_dataset_phy [all...] |
H A D | dsl_deleg.c | 161 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 408 dsl_check_access(objset_t *mos, uint64_t zapobj, char type, char checkflag, void *valp, const char *perm) argument 429 dsl_check_user_access(objset_t *mos, uint64_t zapobj, const char *perm, int checkflag, cred_t *cr) argument 473 dsl_load_sets(objset_t *mos, uint64_t zapobj, char type, char checkflag, void *valp, avl_tree_t *avl) argument 512 dsl_load_user_sets(objset_t *mos, uint64_t zapobj, avl_tree_t *avl, char checkflag, cred_t *cr) argument 550 objset_t *mos; local 674 objset_t *mos = dd->dd_pool->dp_meta_objset; local 738 dsl_deleg_destroy(objset_t *mos, uint64_t zapobj, dmu_tx_t *tx) argument [all...] |
H A D | dsl_prop.c | 78 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 929 dsl_prop_get_all_impl(objset_t *mos, uint64_t propobj, const char *setpoint, dsl_prop_getflags_t flags, nvlist_t *nv) argument 1059 objset_t *mos = dp->dp_meta_objset; local [all...] |
H A D | dmu_traverse.c | 662 objset_t *mos = dp->dp_meta_objset; local 673 err = dmu_object_next(mos, &obj, B_FALSE, txg_start)) { 676 err = dmu_object_info(mos, obj, &doi);
|
H A D | dsl_destroy.c | 174 objset_t *mos = dp->dp_meta_objset; local 200 dsl_deadlist_open(&ds->ds_deadlist, mos, 202 dsl_deadlist_open(&ds_next->ds_deadlist, mos, 209 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local 221 for (zap_cursor_init(&zc, mos, dsl_dir_phys(ds->ds_dir)->dd_clones); 244 objset_t *mos = dp->dp_meta_objset; local 291 VERIFY0(zap_add_int(mos, 354 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx); 459 ASSERT0(zap_count(mos, 462 VERIFY0(dmu_object_free(mos, 610 objset_t *mos; local 672 objset_t *mos = dp->dp_meta_objset; local 718 objset_t *mos = dp->dp_meta_objset; local [all...] |
H A D | dsl_pool.c | 310 /* undo the dmu_objset_open_impl(mos) from dsl_pool_open() */ 462 objset_t *mos = dp->dp_meta_objset; local 535 * (dp_mos_dir). We can't modify the mos while we're syncing 549 if (list_head(&mos->os_dirty_dnodes[txg & TXG_MASK]) != NULL || 550 list_head(&mos->os_free_dnodes[txg & TXG_MASK]) != NULL) { 769 objset_t *mos = dp->dp_meta_objset; local 780 zap_create(mos, DMU_OT_DSL_CLONES, DMU_OT_NONE, 853 objset_t *mos = dp->dp_meta_objset; local 863 for (zap_cursor_init(&zc, mos, zapobj); 892 objset_t *mos local 905 objset_t *mos = dp->dp_meta_objset; local [all...] |
H A D | vdev.c | 852 objset_t *mos = spa->spa_meta_objset; local 894 error = dmu_read(mos, vd->vdev_ms_array, 1361 * will be performed when the pool is opened again using the mos config. 1919 objset_t *mos = spa->spa_meta_objset; local 1925 error = space_map_open(&vd->vdev_dtl_sm, mos, 2003 objset_t *mos = spa->spa_meta_objset; local 2039 new_object = space_map_alloc(mos, tx); 2042 VERIFY0(space_map_open(&vd->vdev_dtl_sm, mos, new_object, 2230 objset_t *mos = spa->spa_meta_objset; local 2274 (void) dmu_object_free(mos, v [all...] |
H A D | dsl_dir.c | 882 objset_t *mos = dp->dp_meta_objset; local 887 ddobj = dmu_object_alloc(mos, DMU_OT_DSL_DIR, 0, 890 VERIFY(0 == zap_add(mos, dsl_dir_phys(pds)->dd_child_dir_zapobj, 894 VERIFY(0 == zap_add(mos, DMU_POOL_DIRECTORY_OBJECT, 897 VERIFY(0 == dmu_bonus_hold(mos, ddobj, FTAG, &dbuf)); 908 ddphys->dd_props_zapobj = zap_create(mos, 910 ddphys->dd_child_dir_zapobj = zap_create(mos, 1821 objset_t *mos = dp->dp_meta_objset; local 1887 error = zap_remove(mos, 1899 VERIFY0(zap_add(mos, dsl_dir_phy 1975 objset_t *mos = dd->dd_pool->dp_meta_objset; local [all...] |
H A D | metaslab.c | 1384 objset_t *mos = vd->vdev_spa->spa_meta_objset; local 1400 error = space_map_open(&ms->ms_sm, mos, object, ms->ms_start, 2172 objset_t *mos = spa_meta_objset(spa); local 2219 new_object = space_map_alloc(mos, tx); 2222 VERIFY0(space_map_open(&msp->ms_sm, mos, new_object, 2313 dmu_write(mos, vd->vdev_ms_array, sizeof (uint64_t) *
|
H A D | dmu_send.c | 1477 objset_t *mos = dp->dp_meta_objset; local 1527 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_FROMGUID, 1530 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_TOGUID, 1532 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_TONAME, 1536 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_OBJECT, 1538 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_OFFSET, 1540 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_BYTES, 1544 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_LARGEBLOCK, 1549 VERIFY0(zap_add(mos, dsobj, DS_FIELD_RESUME_EMBEDOK, 1554 VERIFY0(zap_add(mos, dsob 2824 objset_t *mos = dmu_objset_pool(ra->os)->dp_meta_objset; local [all...] |
H A D | dsl_dataset.c | 333 objset_t *mos = dp->dp_meta_objset; local 340 err = dmu_bonus_hold(mos, dsl_dir_phys(ds->ds_dir)->dd_head_dataset_obj, 354 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local 364 err = zap_lookup_norm(mos, snapobj, name, 8, 1, 367 err = zap_lookup(mos, snapobj, name, 8, 1, value); 375 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local 387 err = zap_remove_norm(mos, snapobj, name, mt, tx); 389 err = zap_remove(mos, snapobj, name, tx); 420 objset_t *mos = dp->dp_meta_objset; local 428 err = dmu_bonus_hold(mos, dsob 778 objset_t *mos = dmu_tx_pool(tx)->dp_meta_objset; local 794 objset_t *mos = dmu_tx_pool(tx)->dp_meta_objset; local 810 objset_t *mos = dp->dp_meta_objset; local 1023 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local 1335 objset_t *mos = dp->dp_meta_objset; local 1724 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local 3619 objset_t *mos = ds->ds_dir->dd_pool->dp_meta_objset; local [all...] |
H A D | spa.c | 303 objset_t *mos = spa->spa_meta_objset; local 318 if (mos == NULL || spa->spa_pool_props_object == 0) { 326 for (zap_cursor_init(&zc, mos, spa->spa_pool_props_object); 376 err = zap_lookup(mos, spa->spa_pool_props_object, 6279 objset_t *mos = spa->spa_meta_objset; local 6349 * Set pool property values in the poolprops mos object. 6353 zap_create_link(mos, DMU_OT_POOL_PROPS, 6365 VERIFY0(zap_update(mos, 6378 VERIFY0(zap_update(mos, 6498 objset_t *mos local [all...] |
/illumos-gate/usr/src/cmd/zhack/ |
H A D | zhack.c | 306 objset_t *mos; local 353 mos = spa->spa_meta_objset; 357 if (0 == zap_contains(mos, spa->spa_feat_desc_obj, feature.fi_guid)) 402 objset_t *mos; local 446 mos = spa->spa_meta_objset; 453 if (0 == zap_contains(mos, spa->spa_feat_for_read_obj, 456 } else if (0 == zap_contains(mos, spa->spa_feat_for_write_obj,
|