Lines Matching defs:ztest_opts

197 static ztest_shared_opts_t ztest_opts;
208 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
382 &ztest_opts.zo_vdevtime },
384 &ztest_opts.zo_vdevtime },
615 ztest_shared_opts_t *zo = &ztest_opts;
823 if (ztest_opts.zo_ashift == 0)
825 return (ztest_opts.zo_ashift);
844 ztest_aux_template, ztest_opts.zo_dir,
845 pool == NULL ? ztest_opts.zo_pool : pool,
850 ztest_dev_template, ztest_opts.zo_dir,
851 pool == NULL ? ztest_opts.zo_pool : pool, vdev);
890 ztest_opts.zo_raidz_parity) == 0);
1056 if (ztest_opts.zo_verbose >= 6) {
2357 ztest_shared_opts_t *zo = &ztest_opts;
2403 name = kmem_asprintf("%s_upgrade", ztest_opts.zo_pool);
2410 nvroot = make_vdev_root(NULL, NULL, name, ztest_opts.zo_vdev_size, 0,
2411 0, ztest_opts.zo_raidz, ztest_opts.zo_mirrors, 1);
2417 switch (ztest_opts.zo_raidz_parity) {
2449 if (ztest_opts.zo_verbose >= 4) {
2515 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz;
2553 ztest_opts.zo_vdev_size, 0,
2554 ztest_random(4) == 0, ztest_opts.zo_raidz,
2610 ztest_opts.zo_dir, ztest_opts.zo_pool, aux,
2630 (ztest_opts.zo_vdev_size * 5) / 4, 0, 0, 0, 0, 1);
2669 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) {
2774 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
2800 oldvd = oldvd->vdev_child[leaf / ztest_opts.zo_raidz];
2802 if (ztest_opts.zo_raidz > 1) {
2804 ASSERT(oldvd->vdev_children == ztest_opts.zo_raidz);
2805 oldvd = oldvd->vdev_child[leaf % ztest_opts.zo_raidz];
2848 ztest_opts.zo_dir, ztest_opts.zo_pool,
2951 if (ztest_opts.zo_verbose >= 6) {
2987 if (ztest_opts.zo_verbose >= 5) {
3002 if (ztest_opts.zo_verbose >= 5) {
3082 psize == 0 || psize >= 4 * ztest_opts.zo_vdev_size) {
3091 if (ztest_opts.zo_verbose >= 6) {
3104 if (ztest_opts.zo_verbose >= 5) {
3138 if (ztest_opts.zo_verbose >= 5) {
3161 if (ztest_opts.zo_verbose >= 5) {
3198 if (ztest_opts.zo_verbose >= 6)
3285 ztest_opts.zo_pool, (u_longlong_t)id);
3728 if (ztest_opts.zo_verbose >= 7) {
3737 if (ztest_opts.zo_verbose >= 7) {
3975 if (ztest_opts.zo_verbose >= 7) {
4639 if (ztest_opts.zo_verbose >= 6)
4814 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
4847 ztest_opts.zo_dir, ztest_opts.zo_pool,
4850 ztest_opts.zo_dir, ztest_opts.zo_pool,
5032 if (ztest_opts.zo_verbose >= 7)
5181 if (ztest_opts.zo_verbose >= 4) {
5202 oldname = ztest_opts.zo_pool;
5271 ztest_opts.zo_verbose >= 3 ? "s" : "",
5272 ztest_opts.zo_verbose >= 4 ? "v" : "",
5277 if (ztest_opts.zo_verbose >= 5)
5284 if (ztest_opts.zo_verbose >= 3)
5304 if (ztest_opts.zo_verbose >= 6)
5309 if (ztest_opts.zo_verbose >= 6)
5322 if (ztest_opts.zo_verbose >= 4) {
5402 if (spa_suspended(spa) && ztest_opts.zo_verbose >= 6)
5465 ztest_ds_t *zd = &ztest_ds[id % ztest_opts.zo_datasets];
5477 if (ztest_opts.zo_verbose >= 4) {
5538 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5540 if (ztest_opts.zo_verbose >= 3)
5548 for (int t = d; t < ztest_opts.zo_threads;
5549 t += ztest_opts.zo_datasets) {
5588 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5618 if (ztest_opts.zo_verbose >= 6)
5668 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC;
5671 if (ztest_random(100) < ztest_opts.zo_killrate) {
5673 ztest_random(ztest_opts.zo_passtime * NANOSEC);
5685 VERIFY0(spa_open(ztest_opts.zo_pool, &spa, FTAG));
5691 VERIFY0(dmu_objset_own(ztest_opts.zo_pool,
5742 int d = ztest_random(ztest_opts.zo_datasets);
5747 tid = umem_zalloc(ztest_opts.zo_threads * sizeof (thread_t),
5750 if (ztest_opts.zo_verbose >= 4)
5756 for (int t = 0; t < ztest_opts.zo_threads; t++) {
5757 if (t < ztest_opts.zo_datasets &&
5768 for (int t = ztest_opts.zo_threads - 1; t >= 0; t--) {
5770 if (t < ztest_opts.zo_datasets)
5780 umem_free(tid, ztest_opts.zo_threads * sizeof (thread_t));
5803 if (ztest_opts.zo_verbose > 3)
5814 ztest_opts.zo_pool);
5815 ztest_spa_import_export(ztest_opts.zo_pool, name);
5816 ztest_spa_import_export(name, ztest_opts.zo_pool);
5836 if (ztest_opts.zo_verbose >= 3)
5840 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
5881 numloops++ < ztest_opts.zo_maxloops &&
5908 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
5978 (void) spa_destroy(ztest_opts.zo_pool);
5981 zs->zs_mirrors = ztest_opts.zo_mirrors;
5982 nvroot = make_vdev_root(NULL, NULL, NULL, ztest_opts.zo_vdev_size, 0,
5983 0, ztest_opts.zo_raidz, zs->zs_mirrors, 1);
5991 VERIFY3U(0, ==, spa_create(ztest_opts.zo_pool, nvroot, props, NULL));
5995 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
6003 ztest_run_zdb(ztest_opts.zo_pool);
6007 ztest_run_zdb(ztest_opts.zo_pool);
6056 hdr->zh_ds_count = ztest_opts.zo_datasets;
6171 ASSERT(ztest_opts.zo_init != 0);
6181 for (int i = 1; i <= ztest_opts.zo_init; i++) {
6183 if (ztest_opts.zo_verbose >= 3 &&
6184 ztest_opts.zo_init != 1) {
6222 bcopy(&ztest_opts, ztest_shared_opts,
6227 bcopy(ztest_shared_opts, &ztest_opts, sizeof (ztest_opts));
6229 ASSERT3U(ztest_opts.zo_datasets, ==, ztest_shared_hdr->zh_ds_count);
6233 ztest_opts.zo_dir), !=, -1);
6235 ztest_ds = umem_alloc(ztest_opts.zo_datasets * sizeof (ztest_ds_t),
6240 metaslab_gang_bang = ztest_opts.zo_metaslab_gang_bang;
6251 hasalt = (strlen(ztest_opts.zo_alt_ztest) != 0);
6253 if (ztest_opts.zo_verbose >= 1) {
6256 (u_longlong_t)ztest_opts.zo_vdevs,
6257 ztest_opts.zo_datasets,
6258 ztest_opts.zo_threads,
6259 (u_longlong_t)ztest_opts.zo_time);
6266 if (strlen(ztest_opts.zo_alt_ztest) != 0) {
6267 if (ztest_opts.zo_verbose >= 1) {
6269 "initialization: %s\n", ztest_opts.zo_alt_ztest);
6271 VERIFY(!exec_child(ztest_opts.zo_alt_ztest,
6272 ztest_opts.zo_alt_libpath, B_FALSE, NULL));
6279 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC;
6314 if (hasalt && ztest_opts.zo_verbose >= 1) {
6321 if (hasalt && ztest_opts.zo_verbose >= 1) {
6323 ztest_opts.zo_alt_ztest);
6326 killed = exec_child(ztest_opts.zo_alt_ztest,
6327 ztest_opts.zo_alt_libpath, B_TRUE, &status);
6334 if (ztest_opts.zo_verbose >= 1) {
6349 (ztest_opts.zo_time * NANOSEC), timebuf);
6352 if (ztest_opts.zo_verbose >= 2) {
6378 if (spa_open(ztest_opts.zo_pool, &spa, FTAG) == 0) {
6385 ztest_opts.zo_pool);
6386 (void) spa_rename(tmpname, ztest_opts.zo_pool);
6390 ztest_run_zdb(ztest_opts.zo_pool);
6393 if (ztest_opts.zo_verbose >= 1) {
6396 ztest_opts.zo_alt_ztest);