Lines Matching refs:ztest_opts

195 static ztest_shared_opts_t ztest_opts;
206 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
380 &ztest_opts.zo_vdevtime },
382 &ztest_opts.zo_vdevtime },
610 ztest_shared_opts_t *zo = &ztest_opts;
814 if (ztest_opts.zo_ashift == 0)
816 return (ztest_opts.zo_ashift);
835 ztest_aux_template, ztest_opts.zo_dir,
836 pool == NULL ? ztest_opts.zo_pool : pool,
841 ztest_dev_template, ztest_opts.zo_dir,
842 pool == NULL ? ztest_opts.zo_pool : pool, vdev);
881 ztest_opts.zo_raidz_parity) == 0);
1047 if (ztest_opts.zo_verbose >= 6) {
2348 ztest_shared_opts_t *zo = &ztest_opts;
2394 name = kmem_asprintf("%s_upgrade", ztest_opts.zo_pool);
2401 nvroot = make_vdev_root(NULL, NULL, name, ztest_opts.zo_vdev_size, 0,
2402 0, ztest_opts.zo_raidz, ztest_opts.zo_mirrors, 1);
2408 switch (ztest_opts.zo_raidz_parity) {
2440 if (ztest_opts.zo_verbose >= 4) {
2506 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz;
2544 ztest_opts.zo_vdev_size, 0,
2545 ztest_random(4) == 0, ztest_opts.zo_raidz,
2601 ztest_opts.zo_dir, ztest_opts.zo_pool, aux,
2621 (ztest_opts.zo_vdev_size * 5) / 4, 0, 0, 0, 0, 1);
2660 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) {
2765 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
2791 oldvd = oldvd->vdev_child[leaf / ztest_opts.zo_raidz];
2793 if (ztest_opts.zo_raidz > 1) {
2795 ASSERT(oldvd->vdev_children == ztest_opts.zo_raidz);
2796 oldvd = oldvd->vdev_child[leaf % ztest_opts.zo_raidz];
2839 ztest_opts.zo_dir, ztest_opts.zo_pool,
2942 if (ztest_opts.zo_verbose >= 6) {
2978 if (ztest_opts.zo_verbose >= 5) {
2993 if (ztest_opts.zo_verbose >= 5) {
3073 psize == 0 || psize >= 4 * ztest_opts.zo_vdev_size) {
3082 if (ztest_opts.zo_verbose >= 6) {
3095 if (ztest_opts.zo_verbose >= 5) {
3129 if (ztest_opts.zo_verbose >= 5) {
3152 if (ztest_opts.zo_verbose >= 5) {
3189 if (ztest_opts.zo_verbose >= 6)
3276 ztest_opts.zo_pool, (u_longlong_t)id);
3719 if (ztest_opts.zo_verbose >= 7) {
3728 if (ztest_opts.zo_verbose >= 7) {
3966 if (ztest_opts.zo_verbose >= 7) {
4630 if (ztest_opts.zo_verbose >= 6)
4805 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
4838 ztest_opts.zo_dir, ztest_opts.zo_pool,
4841 ztest_opts.zo_dir, ztest_opts.zo_pool,
5023 if (ztest_opts.zo_verbose >= 7)
5172 if (ztest_opts.zo_verbose >= 4) {
5193 oldname = ztest_opts.zo_pool;
5262 ztest_opts.zo_verbose >= 3 ? "s" : "",
5263 ztest_opts.zo_verbose >= 4 ? "v" : "",
5268 if (ztest_opts.zo_verbose >= 5)
5275 if (ztest_opts.zo_verbose >= 3)
5295 if (ztest_opts.zo_verbose >= 6)
5300 if (ztest_opts.zo_verbose >= 6)
5313 if (ztest_opts.zo_verbose >= 4) {
5393 if (spa_suspended(spa) && ztest_opts.zo_verbose >= 6)
5456 ztest_ds_t *zd = &ztest_ds[id % ztest_opts.zo_datasets];
5468 if (ztest_opts.zo_verbose >= 4) {
5529 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5531 if (ztest_opts.zo_verbose >= 3)
5539 for (int t = d; t < ztest_opts.zo_threads;
5540 t += ztest_opts.zo_datasets) {
5579 ztest_dataset_name(name, ztest_opts.zo_pool, d);
5609 if (ztest_opts.zo_verbose >= 6)
5659 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC;
5662 if (ztest_random(100) < ztest_opts.zo_killrate) {
5664 ztest_random(ztest_opts.zo_passtime * NANOSEC);
5676 VERIFY0(spa_open(ztest_opts.zo_pool, &spa, FTAG));
5682 VERIFY0(dmu_objset_own(ztest_opts.zo_pool,
5733 int d = ztest_random(ztest_opts.zo_datasets);
5738 tid = umem_zalloc(ztest_opts.zo_threads * sizeof (thread_t),
5741 if (ztest_opts.zo_verbose >= 4)
5747 for (int t = 0; t < ztest_opts.zo_threads; t++) {
5748 if (t < ztest_opts.zo_datasets &&
5759 for (int t = ztest_opts.zo_threads - 1; t >= 0; t--) {
5761 if (t < ztest_opts.zo_datasets)
5771 umem_free(tid, ztest_opts.zo_threads * sizeof (thread_t));
5794 if (ztest_opts.zo_verbose > 3)
5805 ztest_opts.zo_pool);
5806 ztest_spa_import_export(ztest_opts.zo_pool, name);
5807 ztest_spa_import_export(name, ztest_opts.zo_pool);
5827 if (ztest_opts.zo_verbose >= 3)
5831 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
5872 numloops++ < ztest_opts.zo_maxloops &&
5899 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
5969 (void) spa_destroy(ztest_opts.zo_pool);
5972 zs->zs_mirrors = ztest_opts.zo_mirrors;
5973 nvroot = make_vdev_root(NULL, NULL, NULL, ztest_opts.zo_vdev_size, 0,
5974 0, ztest_opts.zo_raidz, zs->zs_mirrors, 1);
5982 VERIFY3U(0, ==, spa_create(ztest_opts.zo_pool, nvroot, props, NULL));
5986 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
5994 ztest_run_zdb(ztest_opts.zo_pool);
5998 ztest_run_zdb(ztest_opts.zo_pool);
6047 hdr->zh_ds_count = ztest_opts.zo_datasets;
6162 ASSERT(ztest_opts.zo_init != 0);
6172 for (int i = 1; i <= ztest_opts.zo_init; i++) {
6174 if (ztest_opts.zo_verbose >= 3 &&
6175 ztest_opts.zo_init != 1) {
6213 bcopy(&ztest_opts, ztest_shared_opts,
6218 bcopy(ztest_shared_opts, &ztest_opts, sizeof (ztest_opts));
6220 ASSERT3U(ztest_opts.zo_datasets, ==, ztest_shared_hdr->zh_ds_count);
6224 ztest_opts.zo_dir), !=, -1);
6226 ztest_ds = umem_alloc(ztest_opts.zo_datasets * sizeof (ztest_ds_t),
6231 metaslab_gang_bang = ztest_opts.zo_metaslab_gang_bang;
6242 hasalt = (strlen(ztest_opts.zo_alt_ztest) != 0);
6244 if (ztest_opts.zo_verbose >= 1) {
6247 (u_longlong_t)ztest_opts.zo_vdevs,
6248 ztest_opts.zo_datasets,
6249 ztest_opts.zo_threads,
6250 (u_longlong_t)ztest_opts.zo_time);
6257 if (strlen(ztest_opts.zo_alt_ztest) != 0) {
6258 if (ztest_opts.zo_verbose >= 1) {
6260 "initialization: %s\n", ztest_opts.zo_alt_ztest);
6262 VERIFY(!exec_child(ztest_opts.zo_alt_ztest,
6263 ztest_opts.zo_alt_libpath, B_FALSE, NULL));
6270 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC;
6305 if (hasalt && ztest_opts.zo_verbose >= 1) {
6312 if (hasalt && ztest_opts.zo_verbose >= 1) {
6314 ztest_opts.zo_alt_ztest);
6317 killed = exec_child(ztest_opts.zo_alt_ztest,
6318 ztest_opts.zo_alt_libpath, B_TRUE, &status);
6325 if (ztest_opts.zo_verbose >= 1) {
6340 (ztest_opts.zo_time * NANOSEC), timebuf);
6343 if (ztest_opts.zo_verbose >= 2) {
6369 if (spa_open(ztest_opts.zo_pool, &spa, FTAG) == 0) {
6376 ztest_opts.zo_pool);
6377 (void) spa_rename(tmpname, ztest_opts.zo_pool);
6381 ztest_run_zdb(ztest_opts.zo_pool);
6384 if (ztest_opts.zo_verbose >= 1) {
6387 ztest_opts.zo_alt_ztest);