Lines Matching defs:zs

208 	(MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
780 ztest_kill(ztest_shared_t *zs)
782 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa));
783 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa));
2507 ztest_shared_t *zs = ztest_shared;
2515 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz;
2555 zs->zs_mirrors, 1);
2576 ztest_shared_t *zs = ztest_shared;
2605 zs->zs_vdev_aux = 0;
2611 zs->zs_vdev_aux);
2619 zs->zs_vdev_aux++;
2659 ztest_shared_t *zs = ztest_shared;
2669 if (zs->zs_mirrors < 3 || ztest_opts.zo_raidz > 1) {
2741 ++zs->zs_splits;
2742 --zs->zs_mirrors;
2755 ztest_shared_t *zs = ztest_shared;
2774 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
2797 if (zs->zs_mirrors >= 1) {
2799 ASSERT(oldvd->vdev_children >= zs->zs_mirrors);
4794 ztest_shared_t *zs = ztest_shared;
4814 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raidz;
4815 mirror_save = zs->zs_mirrors;
4838 leaf = ztest_random(leaves) + zs->zs_splits;
4848 top * leaves + zs->zs_splits);
5020 if (mirror_save != zs->zs_mirrors) {
5046 ztest_shared_t *zs = ztest_shared;
5087 pattern = zs->zs_guid ^ dds.dds_guid;
5432 ztest_shared_t *zs = arg;
5437 delta = zs->zs_thread_stop - zs->zs_thread_start +
5490 ztest_shared_t *zs = ztest_shared;
5496 while ((now = gethrtime()) < zs->zs_thread_stop) {
5500 if (now > zs->zs_thread_kill)
5501 ztest_kill(zs);
5506 if (zs->zs_enospc_count > 10)
5650 ztest_run(ztest_shared_t *zs)
5666 zs->zs_thread_start = gethrtime();
5667 zs->zs_thread_stop =
5668 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC;
5669 zs->zs_thread_stop = MIN(zs->zs_thread_stop, zs->zs_proc_stop);
5670 zs->zs_thread_kill = zs->zs_thread_stop;
5672 zs->zs_thread_kill -=
5696 zs->zs_guid = dds.dds_guid;
5720 VERIFY(thr_create(0, 0, ztest_deadman_thread, zs, THR_BOUND,
5741 if (zs->zs_enospc_count != 0) {
5745 zs->zs_enospc_count = 0;
5776 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(spa));
5777 zs->zs_space = metaslab_class_get_space(spa_normal_class(spa));
5965 ztest_init(ztest_shared_t *zs)
5980 zs->zs_splits = 0;
5981 zs->zs_mirrors = ztest_opts.zo_mirrors;
5983 0, ztest_opts.zo_raidz, zs->zs_mirrors, 1);
5996 zs->zs_metaslab_sz =
6169 ztest_shared_t *zs = ztest_shared;
6182 bzero(zs, sizeof (ztest_shared_t));
6187 ztest_init(zs);
6198 ztest_shared_t *zs;
6237 zs = ztest_shared;
6242 zs->zs_metaslab_df_alloc_threshold;
6244 if (zs->zs_do_init)
6247 ztest_run(zs);
6265 zs->zs_do_init = B_TRUE;
6276 zs->zs_do_init = B_FALSE;
6278 zs->zs_proc_start = gethrtime();
6279 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC;
6284 if (zs->zs_proc_start + zi->zi_interval[0] > zs->zs_proc_stop)
6287 zc->zc_next = zs->zs_proc_start +
6296 while (gethrtime() < zs->zs_proc_stop) {
6310 zs->zs_metaslab_df_alloc_threshold =
6311 ztest_random(zs->zs_metaslab_sz / 4) + 1;
6337 now = MIN(now, zs->zs_proc_stop);
6338 print_time(zs->zs_proc_stop - now, timebuf);
6339 nicenum(zs->zs_space, numbuf, sizeof (numbuf));
6345 (u_longlong_t)zs->zs_enospc_count,
6346 100.0 * zs->zs_alloc / zs->zs_space,
6348 100.0 * (now - zs->zs_proc_start) /