Lines Matching refs:zs

302 #define	MAXFAULTS(zs) \  argument
303 (MAX((zs)->zs_mirrors, 1) * (ztest_opts.zo_raid_parity + 1) - 1)
1222 ztest_kill(ztest_shared_t *zs) in ztest_kill() argument
1224 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa)); in ztest_kill()
1225 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa)); in ztest_kill()
3326 ztest_shared_t *zs = ztest_shared; in ztest_vdev_add_remove() local
3340 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * raidz_children; in ztest_vdev_add_remove()
3394 "log" : NULL, raidz_children, zs->zs_mirrors, in ztest_vdev_add_remove()
3418 ztest_shared_t *zs = ztest_shared; in ztest_vdev_class_add() local
3439 if (zs->zs_mirrors < 2) { in ztest_vdev_class_add()
3451 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * raidz_children; in ztest_vdev_class_add()
3458 class, raidz_children, zs->zs_mirrors, 1); in ztest_vdev_class_add()
3501 ztest_shared_t *zs = ztest_shared; in ztest_vdev_aux_add_remove() local
3542 zs->zs_vdev_aux = 0; in ztest_vdev_aux_add_remove()
3547 zs->zs_vdev_aux); in ztest_vdev_aux_add_remove()
3555 zs->zs_vdev_aux++; in ztest_vdev_aux_add_remove()
3613 ztest_shared_t *zs = ztest_shared; in ztest_split_pool() local
3626 if (zs->zs_mirrors < 3 || ztest_opts.zo_raid_children > 1) { in ztest_split_pool()
3696 ++zs->zs_splits; in ztest_split_pool()
3697 --zs->zs_mirrors; in ztest_split_pool()
3709 ztest_shared_t *zs = ztest_shared; in ztest_vdev_attach_detach() local
3738 leaves = MAX(zs->zs_mirrors, 1) * raidz_children; in ztest_vdev_attach_detach()
3783 if (zs->zs_mirrors >= 1) { in ztest_vdev_attach_detach()
3785 ASSERT3U(oldvd->vdev_children, >=, zs->zs_mirrors); in ztest_vdev_attach_detach()
4076 ztest_shared_t *zs = ztest_shared; in ztest_vdev_raidz_attach() local
4120 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * raidz_children; in ztest_vdev_raidz_attach()
4121 zs->zs_vdev_next_leaf = spa_num_top_vdevs(spa) * leaves; in ztest_vdev_raidz_attach()
4132 ztest_opts.zo_dir, ztest_opts.zo_pool, zs->zs_vdev_next_leaf); in ztest_vdev_raidz_attach()
6418 ztest_shared_t *zs = ztest_shared; in ztest_fault_inject() local
6462 maxfaults = MAXFAULTS(zs); in ztest_fault_inject()
6464 leaves = MAX(zs->zs_mirrors, 1) * raidz_children; in ztest_fault_inject()
6465 mirror_save = zs->zs_mirrors; in ztest_fault_inject()
6500 leaf = ztest_random(leaves) + zs->zs_splits; in ztest_fault_inject()
6510 top * leaves + zs->zs_splits); in ztest_fault_inject()
6683 if (mirror_save != zs->zs_mirrors) { in ztest_fault_inject()
6791 ztest_shared_t *zs = ztest_shared; in ztest_reguid() local
6801 zs->zs_guid = spa_guid(spa); in ztest_reguid()
7565 ztest_shared_t *zs = arg; in ztest_deadman_thread() local
7569 delay = (zs->zs_thread_stop - zs->zs_thread_start) + in ztest_deadman_thread()
7601 overdue = zs->zs_proc_stop + MSEC2NSEC(zfs_deadman_synctime_ms); in ztest_deadman_thread()
7606 (gethrtime() - zs->zs_proc_start) / NANOSEC); in ztest_deadman_thread()
7610 (gethrtime() - zs->zs_proc_start) / NANOSEC); in ztest_deadman_thread()
7714 ztest_shared_t *zs = ztest_shared; in ztest_thread() local
7720 while ((now = gethrtime()) < zs->zs_thread_stop) { in ztest_thread()
7724 if (now > zs->zs_thread_kill && in ztest_thread()
7726 ztest_kill(zs); in ztest_thread()
7732 if (zs->zs_enospc_count > 10) in ztest_thread()
8034 ztest_import(ztest_shared_t *zs) in ztest_import() argument
8048 zs->zs_metaslab_sz = in ztest_import()
8050 zs->zs_guid = spa_guid(spa); in ztest_import()
8056 ztest_run_zdb(zs->zs_guid); in ztest_import()
8058 ztest_run_zdb(zs->zs_guid); in ztest_import()
8119 ztest_raidz_expand_run(ztest_shared_t *zs, spa_t *spa) in ztest_raidz_expand_run() argument
8198 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(spa)); in ztest_raidz_expand_run()
8199 zs->zs_space = metaslab_class_get_space(spa_normal_class(spa)); in ztest_raidz_expand_run()
8304 ztest_kill(zs); in ztest_raidz_expand_run()
8308 ztest_generic_run(ztest_shared_t *zs, spa_t *spa) in ztest_generic_run() argument
8349 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(spa)); in ztest_generic_run()
8350 zs->zs_space = metaslab_class_get_space(spa_normal_class(spa)); in ztest_generic_run()
8360 ztest_run(ztest_shared_t *zs) in ztest_run() argument
8378 zs->zs_thread_start = gethrtime(); in ztest_run()
8379 zs->zs_thread_stop = in ztest_run()
8380 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC; in ztest_run()
8381 zs->zs_thread_stop = MIN(zs->zs_thread_stop, zs->zs_proc_stop); in ztest_run()
8382 zs->zs_thread_kill = zs->zs_thread_stop; in ztest_run()
8384 zs->zs_thread_kill -= in ztest_run()
8404 zs->zs_metaslab_sz = in ztest_run()
8439 zs, 0, NULL, TS_RUN | TS_JOINABLE, defclsyspri); in ztest_run()
8461 if (zs->zs_enospc_count != 0) { in ztest_run()
8469 zs->zs_enospc_count = 0; in ztest_run()
8508 ztest_raidz_expand_run(zs, spa); in ztest_run()
8512 ztest_generic_run(zs, spa); in ztest_run()
8618 ztest_init(ztest_shared_t *zs) in ztest_init() argument
8636 zs->zs_splits = 0; in ztest_init()
8637 zs->zs_mirrors = ztest_opts.zo_mirrors; in ztest_init()
8639 NULL, ztest_opts.zo_raid_children, zs->zs_mirrors, 1); in ztest_init()
8649 MAXFAULTS(zs) ? ZIO_FAILURE_MODE_PANIC : ZIO_FAILURE_MODE_WAIT); in ztest_init()
8682 zs->zs_metaslab_sz = in ztest_init()
8684 zs->zs_guid = spa_guid(spa); in ztest_init()
8690 ztest_run_zdb(zs->zs_guid); in ztest_init()
8692 ztest_run_zdb(zs->zs_guid); in ztest_init()
8860 ztest_shared_t *zs = ztest_shared; in ztest_run_init() local
8871 ztest_import(zs); in ztest_run_init()
8879 memset(zs, 0, sizeof (*zs)); in ztest_run_init()
8884 ztest_init(zs); in ztest_run_init()
8895 ztest_shared_t *zs; in main() local
8984 zs = ztest_shared; in main()
8989 zs->zs_metaslab_df_alloc_threshold; in main()
8991 if (zs->zs_do_init) in main()
8994 ztest_run(zs); in main()
9015 zs->zs_do_init = B_TRUE; in main()
9026 zs->zs_do_init = B_FALSE; in main()
9028 zs->zs_proc_start = gethrtime(); in main()
9029 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC; in main()
9034 if (zs->zs_proc_start + zi->zi_interval[0] > zs->zs_proc_stop) in main()
9037 zc->zc_next = zs->zs_proc_start + in main()
9046 while (gethrtime() < zs->zs_proc_stop) { in main()
9060 zs->zs_metaslab_df_alloc_threshold = in main()
9061 ztest_random(zs->zs_metaslab_sz / 4) + 1; in main()
9087 now = MIN(now, zs->zs_proc_stop); in main()
9088 print_time(zs->zs_proc_stop - now, timebuf); in main()
9089 nicenum(zs->zs_space, numbuf, sizeof (numbuf)); in main()
9095 zs->zs_enospc_count, in main()
9096 100.0 * zs->zs_alloc / zs->zs_space, in main()
9098 100.0 * (now - zs->zs_proc_start) / in main()
9120 ztest_run_zdb(zs->zs_guid); in main()