Lines Matching defs:os

9  * or http://www.opensolaris.org/os/licensing.
1181 ztest_zd_init(ztest_ds_t *zd, ztest_shared_ds_t *szd, objset_t *os)
1183 zd->zd_os = os;
1184 zd->zd_zilog = dmu_objset_zil(os);
1186 dmu_objset_name(os, zd->zd_name);
1265 ztest_bt_generate(ztest_block_tag_t *bt, objset_t *os, uint64_t object,
1269 bt->bt_objset = dmu_objset_id(os);
1278 ztest_bt_verify(ztest_block_tag_t *bt, objset_t *os, uint64_t object,
1282 ASSERT3U(bt->bt_objset, ==, dmu_objset_id(os));
1421 objset_t *os = zd->zd_os;
1434 tx = dmu_tx_create(os);
1448 ASSERT(dmu_objset_zil(os)->zl_replay == !!lr->lr_foid);
1452 lr->lr_foid = zap_create(os,
1456 error = zap_create_claim(os, lr->lr_foid,
1462 lr->lr_foid = dmu_object_alloc(os,
1466 error = dmu_object_claim(os, lr->lr_foid,
1482 VERIFY3U(0, ==, dmu_object_set_blocksize(os, lr->lr_foid,
1485 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db));
1488 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_gen, txg, txg);
1491 VERIFY3U(0, ==, zap_add(os, lr->lr_doid, name, sizeof (uint64_t), 1,
1505 objset_t *os = zd->zd_os;
1517 zap_lookup(os, lr->lr_doid, name, sizeof (object), 1, &object));
1522 VERIFY3U(0, ==, dmu_object_info(os, object, &doi));
1524 tx = dmu_tx_create(os);
1536 VERIFY3U(0, ==, zap_destroy(os, object, tx));
1538 VERIFY3U(0, ==, dmu_object_free(os, object, tx));
1541 VERIFY3U(0, ==, zap_remove(os, lr->lr_doid, name, tx));
1555 objset_t *os = zd->zd_os;
1591 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db));
1601 tx = dmu_tx_create(os);
1631 VERIFY(dmu_read(os, lr->lr_foid, offset,
1634 ztest_bt_verify(&rbt, os, lr->lr_foid,
1646 ztest_bt_verify(bt, os, lr->lr_foid, offset,
1655 ztest_bt_generate(bt, os, lr->lr_foid, offset, gen, txg, crtxg);
1659 dmu_write(os, lr->lr_foid, offset, length, data, tx);
1680 objset_t *os = zd->zd_os;
1692 tx = dmu_tx_create(os);
1703 VERIFY(dmu_free_range(os, lr->lr_foid, lr->lr_offset,
1719 objset_t *os = zd->zd_os;
1730 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db));
1732 tx = dmu_tx_create(os);
1764 ztest_bt_verify(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode,
1774 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode, txg, crtxg);
1836 objset_t *os = zd->zd_os;
1849 error = dmu_bonus_hold(os, object, FTAG, &db);
1875 error = dmu_read(os, object, offset, size, buf,
1890 error = dmu_buf_hold(os, object, offset, zgd, &db,
2132 objset_t *os = zd->zd_os;
2137 txg_wait_synced(dmu_objset_pool(os), 0);
2142 tx = dmu_tx_create(os);
2149 dmu_prealloc(os, object, offset, size, tx);
2151 txg_wait_synced(dmu_objset_pool(os), txg);
2153 (void) dmu_free_long_range(os, object, offset, size);
2320 objset_t *os = zd->zd_os;
2334 VERIFY(zil_open(os, ztest_get_data) == zd->zd_zilog);
2335 zil_replay(os, zd, ztest_replay_vector);
3171 ztest_objset_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx)
3176 VERIFY(zap_create_claim(os, ZTEST_DIROBJ,
3200 objset_t *os;
3207 VERIFY0(dmu_objset_own(name, DMU_OST_OTHER, B_TRUE, FTAG, &os));
3208 error = dmu_object_info(os, ZTEST_DIROBJ, &doi);
3215 dmu_objset_disown(os, FTAG);
3270 objset_t *os, *os2;
3285 dmu_objset_own(name, DMU_OST_OTHER, B_FALSE, FTAG, &os) == 0) {
3286 ztest_zd_init(&zdtmp, NULL, os);
3287 zil_replay(os, &zdtmp, ztest_replay_vector);
3289 dmu_objset_disown(os, FTAG);
3304 FTAG, &os));
3319 VERIFY0(dmu_objset_own(name, DMU_OST_OTHER, B_FALSE, FTAG, &os));
3321 ztest_zd_init(&zdtmp, NULL, os);
3326 zilog = zil_open(os, ztest_get_data);
3358 dmu_objset_disown(os, FTAG);
3423 objset_t *os;
3492 error = dmu_objset_own(snap2name, DMU_OST_ANY, B_TRUE, FTAG, &os);
3497 dmu_objset_disown(os, FTAG);
3504 dmu_objset_disown(os, FTAG);
3542 objset_t *os = zd->zd_os;
3601 dmu_prefetch(os, bigobj, 0, n * chunksize, s * chunksize,
3628 error = dmu_read(os, packobj, packoff, packsize, packbuf,
3631 error = dmu_read(os, bigobj, bigoff, bigsize, bigbuf,
3638 tx = dmu_tx_create(os);
3662 dmu_object_set_checksum(os, bigobj, cksum, tx);
3669 dmu_object_set_compress(os, bigobj, comp, tx);
3717 dmu_write(os, packobj, packoff, packsize, packbuf, tx);
3727 VERIFY(0 == dmu_free_range(os, bigobj, bigoff, bigsize, tx));
3736 dmu_write(os, bigobj, bigoff, bigsize, bigbuf, tx);
3748 VERIFY(0 == dmu_read(os, packobj, packoff,
3750 VERIFY(0 == dmu_read(os, bigobj, bigoff,
3816 objset_t *os = zd->zd_os;
3864 VERIFY(dmu_object_info(os, bigobj, &doi) == 0);
3884 VERIFY3U(0, ==, dmu_bonus_hold(os, bigobj, FTAG, &bonus_db));
3922 tx = dmu_tx_create(os);
3953 error = dmu_read(os, packobj, packoff,
3956 error = dmu_read(os, bigobj, bigoff, bigsize,
3967 dmu_write(os, packobj, packoff, packsize, packbuf, tx);
3991 VERIFY(dmu_buf_hold(os, bigobj, off,
4017 VERIFY(0 == dmu_read(os, packobj, packoff,
4019 VERIFY(0 == dmu_read(os, bigobj, bigoff,
4029 txg_wait_open(dmu_objset_pool(os), 0);
4031 txg_wait_synced(dmu_objset_pool(os), 0);
4107 objset_t *os = zd->zd_os;
4130 tx = dmu_tx_create(os);
4137 VERIFY3U(0, ==, zap_add(os, object, hc[i], sizeof (uint64_t),
4141 VERIFY3U(EEXIST, ==, zap_add(os, object, hc[i],
4144 zap_length(os, object, hc[i], &zl_intsize, &zl_ints));
4149 VERIFY3U(0, ==, zap_remove(os, object, hc[i], tx));
4167 error = zap_length(os, object, txgname, &zl_intsize, &zl_ints);
4172 VERIFY(zap_lookup(os, object, txgname, zl_intsize,
4175 VERIFY(zap_length(os, object, propname, &zl_intsize,
4181 VERIFY(zap_lookup(os, object, propname, zl_intsize,
4198 tx = dmu_tx_create(os);
4210 VERIFY3U(0, ==, zap_update(os, object, txgname, sizeof (uint64_t),
4212 VERIFY3U(0, ==, zap_update(os, object, propname, sizeof (uint64_t),
4224 error = zap_length(os, object, txgname, &zl_intsize, &zl_ints);
4231 tx = dmu_tx_create(os);
4236 VERIFY3U(0, ==, zap_remove(os, object, txgname, tx));
4237 VERIFY3U(0, ==, zap_remove(os, object, propname, tx));
4247 objset_t *os = zd->zd_os;
4272 tx = dmu_tx_create(os);
4277 error = zap_add(os, object, name, sizeof (uint64_t), 1,
4288 objset_t *os = zd->zd_os;
4329 VERIFY0(zap_count(os, object, &count));
4338 tx = dmu_tx_create(os);
4353 error = zap_length(os, object, name, &zl_wsize, &zl_wc);
4363 error = zap_lookup(os, object, name, wsize, wc, data);
4375 error = zap_add(os, object, name, wsize, wc, data, tx);
4380 VERIFY(zap_update(os, object, name, wsize, wc, data, tx) == 0);
4384 error = zap_remove(os, object, name, tx);
4453 ztest_create_cb_data(objset_t *os, uint64_t txg)
4460 cb_data->zcd_spa = dmu_objset_spa(os);
4478 objset_t *os = zd->zd_os;
4490 tx = dmu_tx_create(os);
4492 cb_data[0] = ztest_create_cb_data(os, 0);
4507 cb_data[1] = ztest_create_cb_data(os, txg);
4532 cb_data[2] = ztest_create_cb_data(os, txg);
4538 VERIFY(0 == dmu_read(os, od[0].od_object, 0, sizeof (uint64_t),
4545 dmu_write(os, od[0].od_object, 0, sizeof (uint64_t), &txg, tx);
4663 objset_t *os = zd->zd_os;
4674 dmu_objset_name(os, osname);
5019 objset_t *os = zd->zd_os;
5053 pattern = zs->zs_guid ^ dmu_objset_fsid_guid(os);
5057 tx = dmu_tx_create(os);
5070 int error = dmu_buf_hold(os, object, offset, FTAG, &db,
5074 os, (long long)object, (long long) offset, error);
5091 VERIFY0(dmu_buf_hold(os, object, 0, FTAG, &db,
5542 objset_t *os;
5559 VERIFY0(dmu_objset_own(name, DMU_OST_OTHER, B_FALSE, zd, &os));
5562 ztest_zd_init(zd, ZTEST_GET_SHARED_DS(d), os);
5573 zil_replay(os, zd, ztest_replay_vector);
5584 zilog = zil_open(os, ztest_get_data);
5613 objset_t *os;
5650 DMU_OST_ANY, B_TRUE, FTAG, &os));
5651 zs->zs_guid = dmu_objset_fsid_guid(os);
5652 dmu_objset_disown(os, FTAG);