Lines Matching refs:zs

228 	(MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
875 ztest_kill(ztest_shared_t *zs) in ztest_kill() argument
877 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa)); in ztest_kill()
878 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa)); in ztest_kill()
2850 ztest_shared_t *zs = ztest_shared; in ztest_vdev_add_remove() local
2861 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; in ztest_vdev_add_remove()
2913 "log" : NULL, ztest_opts.zo_raidz, zs->zs_mirrors, 1); in ztest_vdev_add_remove()
2936 ztest_shared_t *zs = ztest_shared; in ztest_vdev_class_add() local
2956 if (zs->zs_mirrors < 2) { in ztest_vdev_class_add()
2967 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; in ztest_vdev_class_add()
2974 class, ztest_opts.zo_raidz, zs->zs_mirrors, 1); in ztest_vdev_class_add()
3016 ztest_shared_t *zs = ztest_shared; in ztest_vdev_aux_add_remove() local
3048 zs->zs_vdev_aux = 0; in ztest_vdev_aux_add_remove()
3054 zs->zs_vdev_aux); in ztest_vdev_aux_add_remove()
3062 zs->zs_vdev_aux++; in ztest_vdev_aux_add_remove()
3115 ztest_shared_t *zs = ztest_shared; in ztest_split_pool() local
3128 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) { in ztest_split_pool()
3200 ++zs->zs_splits; in ztest_split_pool()
3201 --zs->zs_mirrors; in ztest_split_pool()
3213 ztest_shared_t *zs = ztest_shared; in ztest_vdev_attach_detach() local
3235 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz; in ztest_vdev_attach_detach()
3272 if (zs->zs_mirrors >= 1) { in ztest_vdev_attach_detach()
3274 ASSERT(oldvd->vdev_children >= zs->zs_mirrors); in ztest_vdev_attach_detach()
5640 ztest_shared_t *zs = ztest_shared; in ztest_fault_inject() local
5672 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz; in ztest_fault_inject()
5673 mirror_save = zs->zs_mirrors; in ztest_fault_inject()
5696 leaf = ztest_random(leaves) + zs->zs_splits; in ztest_fault_inject()
5706 top * leaves + zs->zs_splits); in ztest_fault_inject()
5881 if (mirror_save != zs->zs_mirrors) { in ztest_fault_inject()
5907 ztest_shared_t *zs = ztest_shared; in ztest_ddt_repair() local
5949 pattern = zs->zs_guid ^ dds.dds_guid; in ztest_ddt_repair()
6414 ztest_shared_t *zs = arg; in ztest_deadman_thread() local
6419 delta = zs->zs_thread_stop - zs->zs_thread_start + in ztest_deadman_thread()
6472 ztest_shared_t *zs = ztest_shared; in ztest_thread() local
6478 while ((now = gethrtime()) < zs->zs_thread_stop) { in ztest_thread()
6482 if (now > zs->zs_thread_kill) in ztest_thread()
6483 ztest_kill(zs); in ztest_thread()
6488 if (zs->zs_enospc_count > 10) in ztest_thread()
6633 ztest_run(ztest_shared_t *zs) in ztest_run() argument
6650 zs->zs_thread_start = gethrtime(); in ztest_run()
6651 zs->zs_thread_stop = in ztest_run()
6652 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC; in ztest_run()
6653 zs->zs_thread_stop = MIN(zs->zs_thread_stop, zs->zs_proc_stop); in ztest_run()
6654 zs->zs_thread_kill = zs->zs_thread_stop; in ztest_run()
6656 zs->zs_thread_kill -= in ztest_run()
6679 zs->zs_guid = dds.dds_guid; in ztest_run()
6703 VERIFY(thr_create(0, 0, ztest_deadman_thread, zs, THR_BOUND, in ztest_run()
6724 if (zs->zs_enospc_count != 0) { in ztest_run()
6728 zs->zs_enospc_count = 0; in ztest_run()
6759 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(spa)); in ztest_run()
6760 zs->zs_space = metaslab_class_get_space(spa_normal_class(spa)); in ztest_run()
6946 ztest_import(ztest_shared_t *zs) in ztest_import() argument
6974 zs->zs_metaslab_sz = in ztest_import()
6995 ztest_init(ztest_shared_t *zs) in ztest_init() argument
7011 zs->zs_splits = 0; in ztest_init()
7012 zs->zs_mirrors = ztest_opts.zo_mirrors; in ztest_init()
7014 NULL, ztest_opts.zo_raidz, zs->zs_mirrors, 1); in ztest_init()
7037 zs->zs_metaslab_sz = in ztest_init()
7206 ztest_shared_t *zs = ztest_shared; in ztest_run_init() local
7217 ztest_import(zs); in ztest_run_init()
7225 bzero(zs, sizeof (ztest_shared_t)); in ztest_run_init()
7230 ztest_init(zs); in ztest_run_init()
7241 ztest_shared_t *zs; in main() local
7292 zs = ztest_shared; in main()
7297 zs->zs_metaslab_df_alloc_threshold; in main()
7299 if (zs->zs_do_init) in main()
7302 ztest_run(zs); in main()
7320 zs->zs_do_init = B_TRUE; in main()
7331 zs->zs_do_init = B_FALSE; in main()
7333 zs->zs_proc_start = gethrtime(); in main()
7334 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC; in main()
7339 if (zs->zs_proc_start + zi->zi_interval[0] > zs->zs_proc_stop) in main()
7342 zc->zc_next = zs->zs_proc_start + in main()
7351 while (gethrtime() < zs->zs_proc_stop) { in main()
7365 zs->zs_metaslab_df_alloc_threshold = in main()
7366 ztest_random(zs->zs_metaslab_sz / 4) + 1; in main()
7392 now = MIN(now, zs->zs_proc_stop); in main()
7393 print_time(zs->zs_proc_stop - now, timebuf); in main()
7394 nicenum(zs->zs_space, numbuf, sizeof (numbuf)); in main()
7400 (u_longlong_t)zs->zs_enospc_count, in main()
7401 100.0 * zs->zs_alloc / zs->zs_space, in main()
7403 100.0 * (now - zs->zs_proc_start) / in main()