Lines Matching defs:os

9  * or http://www.opensolaris.org/os/licensing.
1185 ztest_zd_init(ztest_ds_t *zd, ztest_shared_ds_t *szd, objset_t *os)
1187 zd->zd_os = os;
1188 zd->zd_zilog = dmu_objset_zil(os);
1190 dmu_objset_name(os, zd->zd_name);
1269 ztest_bt_generate(ztest_block_tag_t *bt, objset_t *os, uint64_t object,
1273 bt->bt_objset = dmu_objset_id(os);
1282 ztest_bt_verify(ztest_block_tag_t *bt, objset_t *os, uint64_t object,
1286 ASSERT3U(bt->bt_objset, ==, dmu_objset_id(os));
1425 objset_t *os = zd->zd_os;
1438 tx = dmu_tx_create(os);
1452 ASSERT(dmu_objset_zil(os)->zl_replay == !!lr->lr_foid);
1456 lr->lr_foid = zap_create(os,
1460 error = zap_create_claim(os, lr->lr_foid,
1466 lr->lr_foid = dmu_object_alloc(os,
1470 error = dmu_object_claim(os, lr->lr_foid,
1486 VERIFY3U(0, ==, dmu_object_set_blocksize(os, lr->lr_foid,
1489 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db));
1492 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_gen, txg, txg);
1495 VERIFY3U(0, ==, zap_add(os, lr->lr_doid, name, sizeof (uint64_t), 1,
1509 objset_t *os = zd->zd_os;
1521 zap_lookup(os, lr->lr_doid, name, sizeof (object), 1, &object));
1526 VERIFY3U(0, ==, dmu_object_info(os, object, &doi));
1528 tx = dmu_tx_create(os);
1540 VERIFY3U(0, ==, zap_destroy(os, object, tx));
1542 VERIFY3U(0, ==, dmu_object_free(os, object, tx));
1545 VERIFY3U(0, ==, zap_remove(os, lr->lr_doid, name, tx));
1559 objset_t *os = zd->zd_os;
1595 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db));
1605 tx = dmu_tx_create(os);
1635 VERIFY(dmu_read(os, lr->lr_foid, offset,
1638 ztest_bt_verify(&rbt, os, lr->lr_foid,
1650 ztest_bt_verify(bt, os, lr->lr_foid, offset,
1659 ztest_bt_generate(bt, os, lr->lr_foid, offset, gen, txg, crtxg);
1663 dmu_write(os, lr->lr_foid, offset, length, data, tx);
1684 objset_t *os = zd->zd_os;
1696 tx = dmu_tx_create(os);
1707 VERIFY(dmu_free_range(os, lr->lr_foid, lr->lr_offset,
1723 objset_t *os = zd->zd_os;
1734 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db));
1736 tx = dmu_tx_create(os);
1768 ztest_bt_verify(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode,
1778 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode, txg, crtxg);
1840 objset_t *os = zd->zd_os;
1853 error = dmu_bonus_hold(os, object, FTAG, &db);
1879 error = dmu_read(os, object, offset, size, buf,
1894 error = dmu_buf_hold(os, object, offset, zgd, &db,
2136 objset_t *os = zd->zd_os;
2141 txg_wait_synced(dmu_objset_pool(os), 0);
2146 tx = dmu_tx_create(os);
2153 dmu_prealloc(os, object, offset, size, tx);
2155 txg_wait_synced(dmu_objset_pool(os), txg);
2157 (void) dmu_free_long_range(os, object, offset, size);
2324 objset_t *os = zd->zd_os;
2338 VERIFY(zil_open(os, ztest_get_data) == zd->zd_zilog);
2339 zil_replay(os, zd, ztest_replay_vector);
3175 ztest_objset_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx)
3180 VERIFY(zap_create_claim(os, ZTEST_DIROBJ,
3204 objset_t *os;
3211 VERIFY0(dmu_objset_own(name, DMU_OST_OTHER, B_TRUE, FTAG, &os));
3212 error = dmu_object_info(os, ZTEST_DIROBJ, &doi);
3219 dmu_objset_disown(os, FTAG);
3277 objset_t *os, *os2;
3292 dmu_objset_own(name, DMU_OST_OTHER, B_FALSE, FTAG, &os) == 0) {
3293 ztest_zd_init(&zdtmp, NULL, os);
3294 zil_replay(os, &zdtmp, ztest_replay_vector);
3296 dmu_objset_disown(os, FTAG);
3311 FTAG, &os));
3326 VERIFY0(dmu_objset_own(name, DMU_OST_OTHER, B_FALSE, FTAG, &os));
3328 ztest_zd_init(&zdtmp, NULL, os);
3333 zilog = zil_open(os, ztest_get_data);
3365 dmu_objset_disown(os, FTAG);
3430 objset_t *os;
3499 error = dmu_objset_own(snap2name, DMU_OST_ANY, B_TRUE, FTAG, &os);
3504 dmu_objset_disown(os, FTAG);
3511 dmu_objset_disown(os, FTAG);
3549 objset_t *os = zd->zd_os;
3608 dmu_prefetch(os, bigobj, 0, n * chunksize, s * chunksize,
3635 error = dmu_read(os, packobj, packoff, packsize, packbuf,
3638 error = dmu_read(os, bigobj, bigoff, bigsize, bigbuf,
3645 tx = dmu_tx_create(os);
3669 dmu_object_set_checksum(os, bigobj, cksum, tx);
3676 dmu_object_set_compress(os, bigobj, comp, tx);
3724 dmu_write(os, packobj, packoff, packsize, packbuf, tx);
3734 VERIFY(0 == dmu_free_range(os, bigobj, bigoff, bigsize, tx));
3743 dmu_write(os, bigobj, bigoff, bigsize, bigbuf, tx);
3755 VERIFY(0 == dmu_read(os, packobj, packoff,
3757 VERIFY(0 == dmu_read(os, bigobj, bigoff,
3823 objset_t *os = zd->zd_os;
3871 VERIFY(dmu_object_info(os, bigobj, &doi) == 0);
3891 VERIFY3U(0, ==, dmu_bonus_hold(os, bigobj, FTAG, &bonus_db));
3929 tx = dmu_tx_create(os);
3960 error = dmu_read(os, packobj, packoff,
3963 error = dmu_read(os, bigobj, bigoff, bigsize,
3974 dmu_write(os, packobj, packoff, packsize, packbuf, tx);
3998 VERIFY(dmu_buf_hold(os, bigobj, off,
4024 VERIFY(0 == dmu_read(os, packobj, packoff,
4026 VERIFY(0 == dmu_read(os, bigobj, bigoff,
4036 txg_wait_open(dmu_objset_pool(os), 0);
4038 txg_wait_synced(dmu_objset_pool(os), 0);
4114 objset_t *os = zd->zd_os;
4137 tx = dmu_tx_create(os);
4144 VERIFY3U(0, ==, zap_add(os, object, hc[i], sizeof (uint64_t),
4148 VERIFY3U(EEXIST, ==, zap_add(os, object, hc[i],
4151 zap_length(os, object, hc[i], &zl_intsize, &zl_ints));
4156 VERIFY3U(0, ==, zap_remove(os, object, hc[i], tx));
4174 error = zap_length(os, object, txgname, &zl_intsize, &zl_ints);
4179 VERIFY(zap_lookup(os, object, txgname, zl_intsize,
4182 VERIFY(zap_length(os, object, propname, &zl_intsize,
4188 VERIFY(zap_lookup(os, object, propname, zl_intsize,
4205 tx = dmu_tx_create(os);
4217 VERIFY3U(0, ==, zap_update(os, object, txgname, sizeof (uint64_t),
4219 VERIFY3U(0, ==, zap_update(os, object, propname, sizeof (uint64_t),
4231 error = zap_length(os, object, txgname, &zl_intsize, &zl_ints);
4238 tx = dmu_tx_create(os);
4243 VERIFY3U(0, ==, zap_remove(os, object, txgname, tx));
4244 VERIFY3U(0, ==, zap_remove(os, object, propname, tx));
4254 objset_t *os = zd->zd_os;
4279 tx = dmu_tx_create(os);
4284 error = zap_add(os, object, name, sizeof (uint64_t), 1,
4295 objset_t *os = zd->zd_os;
4336 VERIFY0(zap_count(os, object, &count));
4345 tx = dmu_tx_create(os);
4360 error = zap_length(os, object, name, &zl_wsize, &zl_wc);
4370 error = zap_lookup(os, object, name, wsize, wc, data);
4382 error = zap_add(os, object, name, wsize, wc, data, tx);
4387 VERIFY(zap_update(os, object, name, wsize, wc, data, tx) == 0);
4391 error = zap_remove(os, object, name, tx);
4460 ztest_create_cb_data(objset_t *os, uint64_t txg)
4467 cb_data->zcd_spa = dmu_objset_spa(os);
4485 objset_t *os = zd->zd_os;
4497 tx = dmu_tx_create(os);
4499 cb_data[0] = ztest_create_cb_data(os, 0);
4514 cb_data[1] = ztest_create_cb_data(os, txg);
4539 cb_data[2] = ztest_create_cb_data(os, txg);
4545 VERIFY(0 == dmu_read(os, od[0].od_object, 0, sizeof (uint64_t),
4552 dmu_write(os, od[0].od_object, 0, sizeof (uint64_t), &txg, tx);
4670 objset_t *os = zd->zd_os;
4681 dmu_objset_name(os, osname);
5048 objset_t *os = zd->zd_os;
5081 dsl_pool_config_enter(dmu_objset_pool(os), FTAG);
5082 dmu_objset_fast_stat(os, &dds);
5083 dsl_pool_config_exit(dmu_objset_pool(os), FTAG);
5091 tx = dmu_tx_create(os);
5104 int error = dmu_buf_hold(os, object, offset, FTAG, &db,
5108 os, (long long)object, (long long) offset, error);
5125 VERIFY0(dmu_buf_hold(os, object, 0, FTAG, &db,
5582 objset_t *os;
5599 VERIFY0(dmu_objset_own(name, DMU_OST_OTHER, B_FALSE, zd, &os));
5602 ztest_zd_init(zd, ZTEST_GET_SHARED_DS(d), os);
5613 zil_replay(os, zd, ztest_replay_vector);
5624 zilog = zil_open(os, ztest_get_data);
5653 objset_t *os;
5691 DMU_OST_ANY, B_TRUE, FTAG, &os));
5692 dsl_pool_config_enter(dmu_objset_pool(os), FTAG);
5693 dmu_objset_fast_stat(os, &dds);
5694 dsl_pool_config_exit(dmu_objset_pool(os), FTAG);
5696 dmu_objset_disown(os, FTAG);