Lines Matching defs:ztest_opts

202 static ztest_shared_opts_t ztest_opts;
213 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
391 &ztest_opts.zo_vdevtime },
393 &ztest_opts.zo_vdevtime },
630 ztest_shared_opts_t *zo = &ztest_opts;
838 if (ztest_opts.zo_ashift == 0)
840 return (ztest_opts.zo_ashift);
859 ztest_aux_template, ztest_opts.zo_dir,
860 pool == NULL ? ztest_opts.zo_pool : pool,
865 ztest_dev_template, ztest_opts.zo_dir,
866 pool == NULL ? ztest_opts.zo_pool : pool, vdev);
905 ztest_opts.zo_raidz_parity) == 0);
1071 if (ztest_opts.zo_verbose >= 6) {
2382 ztest_shared_opts_t *zo = &ztest_opts;
2428 name = kmem_asprintf("%s_upgrade", ztest_opts.zo_pool);
2435 nvroot = make_vdev_root(NULL, NULL, name, ztest_opts.zo_vdev_size, 0,
2436 0, ztest_opts.zo_raidz, ztest_opts.zo_mirrors, 1);
2442 switch (ztest_opts.zo_raidz_parity) {
2474 if (ztest_opts.zo_verbose >= 4) {
2596 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz;
2641 ztest_opts.zo_vdev_size, 0,
2642 ztest_random(4) == 0, ztest_opts.zo_raidz,
2703 ztest_opts.zo_dir, ztest_opts.zo_pool, aux,
2723 (ztest_opts.zo_vdev_size * 5) / 4, 0, 0, 0, 0, 1);
2775 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) {
2879 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
2917 oldvd = oldvd->vdev_child[leaf / ztest_opts.zo_raidz];
2919 if (ztest_opts.zo_raidz > 1) {
2921 ASSERT(oldvd->vdev_children == ztest_opts.zo_raidz);
2922 oldvd = oldvd->vdev_child[leaf % ztest_opts.zo_raidz];
2966 ztest_opts.zo_dir, ztest_opts.zo_pool,
3130 if (ztest_opts.zo_verbose >= 6) {
3166 if (ztest_opts.zo_verbose >= 5) {
3181 if (ztest_opts.zo_verbose >= 5) {
3275 psize == 0 || psize >= 4 * ztest_opts.zo_vdev_size) {
3285 if (ztest_opts.zo_verbose >= 6) {
3298 if (ztest_opts.zo_verbose >= 5) {
3333 if (ztest_opts.zo_verbose >= 5) {
3359 if (ztest_opts.zo_verbose >= 5) {
3397 if (ztest_opts.zo_verbose >= 6)
3484 ztest_opts.zo_pool, (u_longlong_t)id);
3927 if (ztest_opts.zo_verbose >= 7) {
3936 if (ztest_opts.zo_verbose >= 7) {
4174 if (ztest_opts.zo_verbose >= 7) {
4852 if (ztest_opts.zo_verbose >= 6)
5039 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
5072 ztest_opts.zo_dir, ztest_opts.zo_pool,
5075 ztest_opts.zo_dir, ztest_opts.zo_pool,
5260 if (ztest_opts.zo_verbose >= 7)
5415 if (ztest_opts.zo_verbose >= 4) {
5436 oldname = ztest_opts.zo_pool;
5538 if (ztest_opts.zo_verbose >= 4) {
5546 if (ztest_opts.zo_verbose >= 4) {
5556 if (ztest_opts.zo_verbose >= 4) {
5596 ztest_opts.zo_verbose >= 3 ? "s" : "",
5597 ztest_opts.zo_verbose >= 4 ? "v" : "",
5602 if (ztest_opts.zo_verbose >= 5)
5609 if (ztest_opts.zo_verbose >= 3)
5629 if (ztest_opts.zo_verbose >= 6)
5634 if (ztest_opts.zo_verbose >= 6)
5647 if (ztest_opts.zo_verbose >= 4) {
5727 if (spa_suspended(spa) && ztest_opts.zo_verbose >= 6)
5796 ztest_ds_t *zd = &ztest_ds[id % ztest_opts.zo_datasets];
5808 if (ztest_opts.zo_verbose >= 4) {
5869 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5871 if (ztest_opts.zo_verbose >= 3)
5879 for (int t = d; t < ztest_opts.zo_threads;
5880 t += ztest_opts.zo_datasets) {
5919 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5949 if (ztest_opts.zo_verbose >= 6)
6000 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC;
6003 if (ztest_random(100) < ztest_opts.zo_killrate) {
6005 ztest_random(ztest_opts.zo_passtime * NANOSEC);
6017 VERIFY0(spa_open(ztest_opts.zo_pool, &spa, FTAG));
6022 VERIFY0(dmu_objset_own(ztest_opts.zo_pool,
6073 int d = ztest_random(ztest_opts.zo_datasets);
6078 tid = umem_zalloc(ztest_opts.zo_threads * sizeof (thread_t),
6081 if (ztest_opts.zo_verbose >= 4)
6087 for (int t = 0; t < ztest_opts.zo_threads; t++) {
6088 if (t < ztest_opts.zo_datasets &&
6099 for (int t = ztest_opts.zo_threads - 1; t >= 0; t--) {
6101 if (t < ztest_opts.zo_datasets)
6111 umem_free(tid, ztest_opts.zo_threads * sizeof (thread_t));
6134 if (ztest_opts.zo_verbose > 3)
6145 ztest_opts.zo_pool);
6146 ztest_spa_import_export(ztest_opts.zo_pool, name);
6147 ztest_spa_import_export(name, ztest_opts.zo_pool);
6168 if (ztest_opts.zo_verbose >= 3)
6172 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
6212 numloops++ < ztest_opts.zo_maxloops &&
6239 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
6309 (void) spa_destroy(ztest_opts.zo_pool);
6312 zs->zs_mirrors = ztest_opts.zo_mirrors;
6313 nvroot = make_vdev_root(NULL, NULL, NULL, ztest_opts.zo_vdev_size, 0,
6314 0, ztest_opts.zo_raidz, zs->zs_mirrors, 1);
6322 VERIFY3U(0, ==, spa_create(ztest_opts.zo_pool, nvroot, props, NULL));
6326 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
6334 ztest_run_zdb(ztest_opts.zo_pool);
6338 ztest_run_zdb(ztest_opts.zo_pool);
6388 hdr->zh_ds_count = ztest_opts.zo_datasets;
6503 ASSERT(ztest_opts.zo_init != 0);
6513 for (int i = 1; i <= ztest_opts.zo_init; i++) {
6515 if (ztest_opts.zo_verbose >= 3 &&
6516 ztest_opts.zo_init != 1) {
6560 bcopy(&ztest_opts, ztest_shared_opts,
6565 bcopy(ztest_shared_opts, &ztest_opts, sizeof (ztest_opts));
6567 ASSERT3U(ztest_opts.zo_datasets, ==, ztest_shared_hdr->zh_ds_count);
6571 ztest_opts.zo_dir), !=, -1);
6573 ztest_ds = umem_alloc(ztest_opts.zo_datasets * sizeof (ztest_ds_t),
6578 metaslab_force_ganging = ztest_opts.zo_metaslab_force_ganging;
6589 hasalt = (strlen(ztest_opts.zo_alt_ztest) != 0);
6591 if (ztest_opts.zo_verbose >= 1) {
6594 (u_longlong_t)ztest_opts.zo_vdevs,
6595 ztest_opts.zo_datasets,
6596 ztest_opts.zo_threads,
6597 (u_longlong_t)ztest_opts.zo_time);
6604 if (strlen(ztest_opts.zo_alt_ztest) != 0) {
6605 if (ztest_opts.zo_verbose >= 1) {
6607 "initialization: %s\n", ztest_opts.zo_alt_ztest);
6609 VERIFY(!exec_child(ztest_opts.zo_alt_ztest,
6610 ztest_opts.zo_alt_libpath, B_FALSE, NULL));
6617 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC;
6652 if (hasalt && ztest_opts.zo_verbose >= 1) {
6659 if (hasalt && ztest_opts.zo_verbose >= 1) {
6661 ztest_opts.zo_alt_ztest);
6664 killed = exec_child(ztest_opts.zo_alt_ztest,
6665 ztest_opts.zo_alt_libpath, B_TRUE, &status);
6672 if (ztest_opts.zo_verbose >= 1) {
6687 (ztest_opts.zo_time * NANOSEC), timebuf);
6690 if (ztest_opts.zo_verbose >= 2) {
6716 if (spa_open(ztest_opts.zo_pool, &spa, FTAG) == 0) {
6723 ztest_opts.zo_pool);
6724 (void) spa_rename(tmpname, ztest_opts.zo_pool);
6728 ztest_run_zdb(ztest_opts.zo_pool);
6731 if (ztest_opts.zo_verbose >= 1) {
6734 ztest_opts.zo_alt_ztest);