Lines Matching refs:zs

205 	(MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
771 ztest_kill(ztest_shared_t *zs) in ztest_kill() argument
773 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa)); in ztest_kill()
774 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa)); in ztest_kill()
2499 ztest_shared_t *zs = ztest_shared; in ztest_vdev_add_remove() local
2507 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; in ztest_vdev_add_remove()
2547 zs->zs_mirrors, 1); in ztest_vdev_add_remove()
2568 ztest_shared_t *zs = ztest_shared; in ztest_vdev_aux_add_remove() local
2597 zs->zs_vdev_aux = 0; in ztest_vdev_aux_add_remove()
2603 zs->zs_vdev_aux); in ztest_vdev_aux_add_remove()
2611 zs->zs_vdev_aux++; in ztest_vdev_aux_add_remove()
2651 ztest_shared_t *zs = ztest_shared; in ztest_split_pool() local
2661 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) { in ztest_split_pool()
2733 ++zs->zs_splits; in ztest_split_pool()
2734 --zs->zs_mirrors; in ztest_split_pool()
2747 ztest_shared_t *zs = ztest_shared; in ztest_vdev_attach_detach() local
2766 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz; in ztest_vdev_attach_detach()
2789 if (zs->zs_mirrors >= 1) { in ztest_vdev_attach_detach()
2791 ASSERT(oldvd->vdev_children >= zs->zs_mirrors); in ztest_vdev_attach_detach()
4787 ztest_shared_t *zs = ztest_shared; in ztest_fault_inject() local
4807 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz; in ztest_fault_inject()
4808 mirror_save = zs->zs_mirrors; in ztest_fault_inject()
4831 leaf = ztest_random(leaves) + zs->zs_splits; in ztest_fault_inject()
4841 top * leaves + zs->zs_splits); in ztest_fault_inject()
4991 if (mirror_save != zs->zs_mirrors) { in ztest_fault_inject()
5017 ztest_shared_t *zs = ztest_shared; in ztest_ddt_repair() local
5053 pattern = zs->zs_guid ^ dmu_objset_fsid_guid(os); in ztest_ddt_repair()
5391 ztest_shared_t *zs = arg; in ztest_deadman_thread() local
5396 delta = zs->zs_thread_stop - zs->zs_thread_start + in ztest_deadman_thread()
5449 ztest_shared_t *zs = ztest_shared; in ztest_thread() local
5455 while ((now = gethrtime()) < zs->zs_thread_stop) { in ztest_thread()
5459 if (now > zs->zs_thread_kill) in ztest_thread()
5460 ztest_kill(zs); in ztest_thread()
5465 if (zs->zs_enospc_count > 10) in ztest_thread()
5609 ztest_run(ztest_shared_t *zs) in ztest_run() argument
5625 zs->zs_thread_start = gethrtime(); in ztest_run()
5626 zs->zs_thread_stop = in ztest_run()
5627 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC; in ztest_run()
5628 zs->zs_thread_stop = MIN(zs->zs_thread_stop, zs->zs_proc_stop); in ztest_run()
5629 zs->zs_thread_kill = zs->zs_thread_stop; in ztest_run()
5631 zs->zs_thread_kill -= in ztest_run()
5651 zs->zs_guid = dmu_objset_fsid_guid(os); in ztest_run()
5675 VERIFY(thr_create(0, 0, ztest_deadman_thread, zs, THR_BOUND, in ztest_run()
5696 if (zs->zs_enospc_count != 0) { in ztest_run()
5700 zs->zs_enospc_count = 0; in ztest_run()
5731 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(spa)); in ztest_run()
5732 zs->zs_space = metaslab_class_get_space(spa_normal_class(spa)); in ztest_run()
5920 ztest_init(ztest_shared_t *zs) in ztest_init() argument
5935 zs->zs_splits = 0; in ztest_init()
5936 zs->zs_mirrors = ztest_opts.zo_mirrors; in ztest_init()
5938 0, ztest_opts.zo_raidz, zs->zs_mirrors, 1); in ztest_init()
5951 zs->zs_metaslab_sz = in ztest_init()
6120 ztest_shared_t *zs = ztest_shared; in ztest_run_init() local
6133 bzero(zs, sizeof (ztest_shared_t)); in ztest_run_init()
6138 ztest_init(zs); in ztest_run_init()
6149 ztest_shared_t *zs; in main() local
6188 zs = ztest_shared; in main()
6193 zs->zs_metaslab_df_alloc_threshold; in main()
6195 if (zs->zs_do_init) in main()
6198 ztest_run(zs); in main()
6216 zs->zs_do_init = B_TRUE; in main()
6227 zs->zs_do_init = B_FALSE; in main()
6229 zs->zs_proc_start = gethrtime(); in main()
6230 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC; in main()
6235 if (zs->zs_proc_start + zi->zi_interval[0] > zs->zs_proc_stop) in main()
6238 zc->zc_next = zs->zs_proc_start + in main()
6247 while (gethrtime() < zs->zs_proc_stop) { in main()
6261 zs->zs_metaslab_df_alloc_threshold = in main()
6262 ztest_random(zs->zs_metaslab_sz / 4) + 1; in main()
6288 now = MIN(now, zs->zs_proc_stop); in main()
6289 print_time(zs->zs_proc_stop - now, timebuf); in main()
6290 nicenum(zs->zs_space, numbuf, sizeof (numbuf)); in main()
6296 (u_longlong_t)zs->zs_enospc_count, in main()
6297 100.0 * zs->zs_alloc / zs->zs_space, in main()
6299 100.0 * (now - zs->zs_proc_start) / in main()