Lines Matching defs:ztest_opts

193 static ztest_shared_opts_t ztest_opts;
204 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
378 &ztest_opts.zo_vdevtime },
380 &ztest_opts.zo_vdevtime },
610 ztest_shared_opts_t *zo = &ztest_opts;
818 if (ztest_opts.zo_ashift == 0)
820 return (ztest_opts.zo_ashift);
839 ztest_aux_template, ztest_opts.zo_dir,
840 pool == NULL ? ztest_opts.zo_pool : pool,
845 ztest_dev_template, ztest_opts.zo_dir,
846 pool == NULL ? ztest_opts.zo_pool : pool, vdev);
885 ztest_opts.zo_raidz_parity) == 0);
1051 if (ztest_opts.zo_verbose >= 6) {
2353 ztest_shared_opts_t *zo = &ztest_opts;
2399 name = kmem_asprintf("%s_upgrade", ztest_opts.zo_pool);
2406 nvroot = make_vdev_root(NULL, NULL, name, ztest_opts.zo_vdev_size, 0,
2407 0, ztest_opts.zo_raidz, ztest_opts.zo_mirrors, 1);
2413 switch (ztest_opts.zo_raidz_parity) {
2445 if (ztest_opts.zo_verbose >= 4) {
2511 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz;
2549 ztest_opts.zo_vdev_size, 0,
2550 ztest_random(4) == 0, ztest_opts.zo_raidz,
2606 ztest_opts.zo_dir, ztest_opts.zo_pool, aux,
2626 (ztest_opts.zo_vdev_size * 5) / 4, 0, 0, 0, 0, 1);
2665 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) {
2770 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
2796 oldvd = oldvd->vdev_child[leaf / ztest_opts.zo_raidz];
2798 if (ztest_opts.zo_raidz > 1) {
2800 ASSERT(oldvd->vdev_children == ztest_opts.zo_raidz);
2801 oldvd = oldvd->vdev_child[leaf % ztest_opts.zo_raidz];
2844 ztest_opts.zo_dir, ztest_opts.zo_pool,
2947 if (ztest_opts.zo_verbose >= 6) {
2983 if (ztest_opts.zo_verbose >= 5) {
2998 if (ztest_opts.zo_verbose >= 5) {
3078 psize == 0 || psize >= 4 * ztest_opts.zo_vdev_size) {
3087 if (ztest_opts.zo_verbose >= 6) {
3100 if (ztest_opts.zo_verbose >= 5) {
3134 if (ztest_opts.zo_verbose >= 5) {
3157 if (ztest_opts.zo_verbose >= 5) {
3194 if (ztest_opts.zo_verbose >= 6)
3284 ztest_opts.zo_pool, (u_longlong_t)id);
3727 if (ztest_opts.zo_verbose >= 7) {
3736 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)
5283 if (ztest_opts.zo_verbose >= 3)
5303 if (ztest_opts.zo_verbose >= 6)
5308 if (ztest_opts.zo_verbose >= 6)
5321 if (ztest_opts.zo_verbose >= 4) {
5401 if (spa_suspended(spa) && ztest_opts.zo_verbose >= 6)
5464 ztest_ds_t *zd = &ztest_ds[id % ztest_opts.zo_datasets];
5476 if (ztest_opts.zo_verbose >= 4) {
5537 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5539 if (ztest_opts.zo_verbose >= 3)
5547 for (int t = d; t < ztest_opts.zo_threads;
5548 t += ztest_opts.zo_datasets) {
5587 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5617 if (ztest_opts.zo_verbose >= 6)
5667 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC;
5670 if (ztest_random(100) < ztest_opts.zo_killrate) {
5672 ztest_random(ztest_opts.zo_passtime * NANOSEC);
5684 VERIFY0(spa_open(ztest_opts.zo_pool, &spa, FTAG));
5690 VERIFY0(dmu_objset_own(ztest_opts.zo_pool,
5741 int d = ztest_random(ztest_opts.zo_datasets);
5746 tid = umem_zalloc(ztest_opts.zo_threads * sizeof (thread_t),
5749 if (ztest_opts.zo_verbose >= 4)
5755 for (int t = 0; t < ztest_opts.zo_threads; t++) {
5756 if (t < ztest_opts.zo_datasets &&
5767 for (int t = ztest_opts.zo_threads - 1; t >= 0; t--) {
5769 if (t < ztest_opts.zo_datasets)
5779 umem_free(tid, ztest_opts.zo_threads * sizeof (thread_t));
5802 if (ztest_opts.zo_verbose > 3)
5813 ztest_opts.zo_pool);
5814 ztest_spa_import_export(ztest_opts.zo_pool, name);
5815 ztest_spa_import_export(name, ztest_opts.zo_pool);
5835 if (ztest_opts.zo_verbose >= 3)
5839 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
5880 numloops++ < ztest_opts.zo_maxloops &&
5907 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
5977 (void) spa_destroy(ztest_opts.zo_pool);
5980 zs->zs_mirrors = ztest_opts.zo_mirrors;
5981 nvroot = make_vdev_root(NULL, NULL, NULL, ztest_opts.zo_vdev_size, 0,
5982 0, ztest_opts.zo_raidz, zs->zs_mirrors, 1);
5990 VERIFY3U(0, ==, spa_create(ztest_opts.zo_pool, nvroot, props, NULL));
5994 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
6002 ztest_run_zdb(ztest_opts.zo_pool);
6006 ztest_run_zdb(ztest_opts.zo_pool);
6055 hdr->zh_ds_count = ztest_opts.zo_datasets;
6166 ASSERT(ztest_opts.zo_init != 0);
6176 for (int i = 1; i <= ztest_opts.zo_init; i++) {
6178 if (ztest_opts.zo_verbose >= 3 &&
6179 ztest_opts.zo_init != 1) {
6217 bcopy(&ztest_opts, ztest_shared_opts,
6222 bcopy(ztest_shared_opts, &ztest_opts, sizeof (ztest_opts));
6224 ASSERT3U(ztest_opts.zo_datasets, ==, ztest_shared_hdr->zh_ds_count);
6228 ztest_opts.zo_dir), !=, -1);
6230 ztest_ds = umem_alloc(ztest_opts.zo_datasets * sizeof (ztest_ds_t),
6235 metaslab_gang_bang = ztest_opts.zo_metaslab_gang_bang;
6246 hasalt = (strlen(ztest_opts.zo_alt_ztest) != 0);
6248 if (ztest_opts.zo_verbose >= 1) {
6251 (u_longlong_t)ztest_opts.zo_vdevs,
6252 ztest_opts.zo_datasets,
6253 ztest_opts.zo_threads,
6254 (u_longlong_t)ztest_opts.zo_time);
6261 if (strlen(ztest_opts.zo_alt_ztest) != 0) {
6262 if (ztest_opts.zo_verbose >= 1) {
6264 "initialization: %s\n", ztest_opts.zo_alt_ztest);
6266 VERIFY(!exec_child(ztest_opts.zo_alt_ztest,
6267 ztest_opts.zo_alt_libpath, B_FALSE, NULL));
6274 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC;
6309 if (hasalt && ztest_opts.zo_verbose >= 1) {
6316 if (hasalt && ztest_opts.zo_verbose >= 1) {
6318 ztest_opts.zo_alt_ztest);
6321 killed = exec_child(ztest_opts.zo_alt_ztest,
6322 ztest_opts.zo_alt_libpath, B_TRUE, &status);
6329 if (ztest_opts.zo_verbose >= 1) {
6344 (ztest_opts.zo_time * NANOSEC), timebuf);
6347 if (ztest_opts.zo_verbose >= 2) {
6373 if (spa_open(ztest_opts.zo_pool, &spa, FTAG) == 0) {
6380 ztest_opts.zo_pool);
6381 (void) spa_rename(tmpname, ztest_opts.zo_pool);
6385 ztest_run_zdb(ztest_opts.zo_pool);
6388 if (ztest_opts.zo_verbose >= 1) {
6391 ztest_opts.zo_alt_ztest);