Lines Matching refs:ztest_opts
194 static ztest_shared_opts_t ztest_opts; variable
205 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
379 &ztest_opts.zo_vdevtime },
381 &ztest_opts.zo_vdevtime },
610 ztest_shared_opts_t *zo = &ztest_opts; in process_options()
814 if (ztest_opts.zo_ashift == 0) in ztest_get_ashift()
816 return (ztest_opts.zo_ashift); in ztest_get_ashift()
835 ztest_aux_template, ztest_opts.zo_dir, in make_vdev_file()
836 pool == NULL ? ztest_opts.zo_pool : pool, in make_vdev_file()
841 ztest_dev_template, ztest_opts.zo_dir, in make_vdev_file()
842 pool == NULL ? ztest_opts.zo_pool : pool, vdev); in make_vdev_file()
881 ztest_opts.zo_raidz_parity) == 0); in make_vdev_raidz()
1047 if (ztest_opts.zo_verbose >= 6) { in ztest_dsl_prop_set_uint64()
2349 ztest_shared_opts_t *zo = &ztest_opts; in ztest_spa_create_destroy()
2395 name = kmem_asprintf("%s_upgrade", ztest_opts.zo_pool); in ztest_spa_upgrade()
2402 nvroot = make_vdev_root(NULL, NULL, name, ztest_opts.zo_vdev_size, 0, in ztest_spa_upgrade()
2403 0, ztest_opts.zo_raidz, ztest_opts.zo_mirrors, 1); in ztest_spa_upgrade()
2409 switch (ztest_opts.zo_raidz_parity) { in ztest_spa_upgrade()
2441 if (ztest_opts.zo_verbose >= 4) { in ztest_spa_upgrade()
2507 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; in ztest_vdev_add_remove()
2545 ztest_opts.zo_vdev_size, 0, in ztest_vdev_add_remove()
2546 ztest_random(4) == 0, ztest_opts.zo_raidz, in ztest_vdev_add_remove()
2602 ztest_opts.zo_dir, ztest_opts.zo_pool, aux, in ztest_vdev_aux_add_remove()
2622 (ztest_opts.zo_vdev_size * 5) / 4, 0, 0, 0, 0, 1); in ztest_vdev_aux_add_remove()
2661 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) { in ztest_split_pool()
2766 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz; in ztest_vdev_attach_detach()
2792 oldvd = oldvd->vdev_child[leaf / ztest_opts.zo_raidz]; in ztest_vdev_attach_detach()
2794 if (ztest_opts.zo_raidz > 1) { in ztest_vdev_attach_detach()
2796 ASSERT(oldvd->vdev_children == ztest_opts.zo_raidz); in ztest_vdev_attach_detach()
2797 oldvd = oldvd->vdev_child[leaf % ztest_opts.zo_raidz]; in ztest_vdev_attach_detach()
2840 ztest_opts.zo_dir, ztest_opts.zo_pool, in ztest_vdev_attach_detach()
2943 if (ztest_opts.zo_verbose >= 6) { in grow_vdev()
2979 if (ztest_opts.zo_verbose >= 5) { in online_vdev()
2994 if (ztest_opts.zo_verbose >= 5) { in online_vdev()
3074 psize == 0 || psize >= 4 * ztest_opts.zo_vdev_size) { in ztest_vdev_LUN_growth()
3083 if (ztest_opts.zo_verbose >= 6) { in ztest_vdev_LUN_growth()
3096 if (ztest_opts.zo_verbose >= 5) { in ztest_vdev_LUN_growth()
3130 if (ztest_opts.zo_verbose >= 5) { in ztest_vdev_LUN_growth()
3153 if (ztest_opts.zo_verbose >= 5) { in ztest_vdev_LUN_growth()
3190 if (ztest_opts.zo_verbose >= 6) in ztest_dataset_create()
3277 ztest_opts.zo_pool, (u_longlong_t)id); in ztest_dmu_objset_create_destroy()
3720 if (ztest_opts.zo_verbose >= 7) { in ztest_dmu_read_write()
3729 if (ztest_opts.zo_verbose >= 7) { in ztest_dmu_read_write()
3968 if (ztest_opts.zo_verbose >= 7) { in ztest_dmu_read_write_zcopy()
4632 if (ztest_opts.zo_verbose >= 6) in ztest_spa_prop_get_set()
4807 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz; in ztest_fault_inject()
4840 ztest_opts.zo_dir, ztest_opts.zo_pool, in ztest_fault_inject()
4843 ztest_opts.zo_dir, ztest_opts.zo_pool, in ztest_fault_inject()
5003 if (ztest_opts.zo_verbose >= 7) in ztest_fault_inject()
5147 if (ztest_opts.zo_verbose >= 4) { in ztest_reguid()
5168 oldname = ztest_opts.zo_pool; in ztest_spa_rename()
5237 ztest_opts.zo_verbose >= 3 ? "s" : "", in ztest_run_zdb()
5238 ztest_opts.zo_verbose >= 4 ? "v" : "", in ztest_run_zdb()
5243 if (ztest_opts.zo_verbose >= 5) in ztest_run_zdb()
5249 if (ztest_opts.zo_verbose >= 3) in ztest_run_zdb()
5269 if (ztest_opts.zo_verbose >= 6) in ztest_walk_pool_directory()
5274 if (ztest_opts.zo_verbose >= 6) in ztest_walk_pool_directory()
5287 if (ztest_opts.zo_verbose >= 4) { in ztest_spa_import_export()
5367 if (spa_suspended(spa) && ztest_opts.zo_verbose >= 6) in ztest_resume()
5424 ztest_ds_t *zd = &ztest_ds[id % ztest_opts.zo_datasets]; in ztest_execute()
5436 if (ztest_opts.zo_verbose >= 4) { in ztest_execute()
5497 ztest_dataset_name(name, ztest_opts.zo_pool, d); in ztest_dataset_destroy()
5499 if (ztest_opts.zo_verbose >= 3) in ztest_dataset_destroy()
5507 for (int t = d; t < ztest_opts.zo_threads; in ztest_dataset_destroy()
5508 t += ztest_opts.zo_datasets) { in ztest_dataset_destroy()
5547 ztest_dataset_name(name, ztest_opts.zo_pool, d); in ztest_dataset_open()
5577 if (ztest_opts.zo_verbose >= 6) in ztest_dataset_open()
5627 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC; in ztest_run()
5630 if (ztest_random(100) < ztest_opts.zo_killrate) { in ztest_run()
5632 ztest_random(ztest_opts.zo_passtime * NANOSEC); in ztest_run()
5644 VERIFY0(spa_open(ztest_opts.zo_pool, &spa, FTAG)); in ztest_run()
5649 VERIFY0(dmu_objset_own(ztest_opts.zo_pool, in ztest_run()
5697 int d = ztest_random(ztest_opts.zo_datasets); in ztest_run()
5702 tid = umem_zalloc(ztest_opts.zo_threads * sizeof (thread_t), in ztest_run()
5705 if (ztest_opts.zo_verbose >= 4) in ztest_run()
5711 for (int t = 0; t < ztest_opts.zo_threads; t++) { in ztest_run()
5712 if (t < ztest_opts.zo_datasets && in ztest_run()
5723 for (int t = ztest_opts.zo_threads - 1; t >= 0; t--) { in ztest_run()
5725 if (t < ztest_opts.zo_datasets) in ztest_run()
5735 umem_free(tid, ztest_opts.zo_threads * sizeof (thread_t)); in ztest_run()
5758 if (ztest_opts.zo_verbose > 3) in ztest_run()
5769 ztest_opts.zo_pool); in ztest_run()
5770 ztest_spa_import_export(ztest_opts.zo_pool, name); in ztest_run()
5771 ztest_spa_import_export(name, ztest_opts.zo_pool); in ztest_run()
5791 if (ztest_opts.zo_verbose >= 3) in ztest_freeze()
5795 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG)); in ztest_freeze()
5836 numloops++ < ztest_opts.zo_maxloops && in ztest_freeze()
5863 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG)); in ztest_freeze()
5933 (void) spa_destroy(ztest_opts.zo_pool); in ztest_init()
5936 zs->zs_mirrors = ztest_opts.zo_mirrors; in ztest_init()
5937 nvroot = make_vdev_root(NULL, NULL, NULL, ztest_opts.zo_vdev_size, 0, in ztest_init()
5938 0, ztest_opts.zo_raidz, zs->zs_mirrors, 1); in ztest_init()
5946 VERIFY3U(0, ==, spa_create(ztest_opts.zo_pool, nvroot, props, NULL)); in ztest_init()
5950 VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG)); in ztest_init()
5958 ztest_run_zdb(ztest_opts.zo_pool); in ztest_init()
5962 ztest_run_zdb(ztest_opts.zo_pool); in ztest_init()
6011 hdr->zh_ds_count = ztest_opts.zo_datasets; in setup_hdr()
6122 ASSERT(ztest_opts.zo_init != 0); in ztest_run_init()
6132 for (int i = 1; i <= ztest_opts.zo_init; i++) { in ztest_run_init()
6134 if (ztest_opts.zo_verbose >= 3 && in ztest_run_init()
6135 ztest_opts.zo_init != 1) { in ztest_run_init()
6173 bcopy(&ztest_opts, ztest_shared_opts, in main()
6178 bcopy(ztest_shared_opts, &ztest_opts, sizeof (ztest_opts)); in main()
6180 ASSERT3U(ztest_opts.zo_datasets, ==, ztest_shared_hdr->zh_ds_count); in main()
6184 ztest_opts.zo_dir), !=, -1); in main()
6186 ztest_ds = umem_alloc(ztest_opts.zo_datasets * sizeof (ztest_ds_t), in main()
6191 metaslab_gang_bang = ztest_opts.zo_metaslab_gang_bang; in main()
6202 hasalt = (strlen(ztest_opts.zo_alt_ztest) != 0); in main()
6204 if (ztest_opts.zo_verbose >= 1) { in main()
6207 (u_longlong_t)ztest_opts.zo_vdevs, in main()
6208 ztest_opts.zo_datasets, in main()
6209 ztest_opts.zo_threads, in main()
6210 (u_longlong_t)ztest_opts.zo_time); in main()
6217 if (strlen(ztest_opts.zo_alt_ztest) != 0) { in main()
6218 if (ztest_opts.zo_verbose >= 1) { in main()
6220 "initialization: %s\n", ztest_opts.zo_alt_ztest); in main()
6222 VERIFY(!exec_child(ztest_opts.zo_alt_ztest, in main()
6223 ztest_opts.zo_alt_libpath, B_FALSE, NULL)); in main()
6230 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC; in main()
6265 if (hasalt && ztest_opts.zo_verbose >= 1) { in main()
6272 if (hasalt && ztest_opts.zo_verbose >= 1) { in main()
6274 ztest_opts.zo_alt_ztest); in main()
6277 killed = exec_child(ztest_opts.zo_alt_ztest, in main()
6278 ztest_opts.zo_alt_libpath, B_TRUE, &status); in main()
6285 if (ztest_opts.zo_verbose >= 1) { in main()
6300 (ztest_opts.zo_time * NANOSEC), timebuf); in main()
6303 if (ztest_opts.zo_verbose >= 2) { in main()
6329 if (spa_open(ztest_opts.zo_pool, &spa, FTAG) == 0) { in main()
6336 ztest_opts.zo_pool); in main()
6337 (void) spa_rename(tmpname, ztest_opts.zo_pool); in main()
6341 ztest_run_zdb(ztest_opts.zo_pool); in main()
6344 if (ztest_opts.zo_verbose >= 1) { in main()
6347 ztest_opts.zo_alt_ztest); in main()