• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/cmd/ztest/

Lines Matching defs:zs

276 #define	MAXFAULTS(zs) \
277 (MAX((zs)->zs_mirrors, 1) * (ztest_opts.zo_raid_parity + 1) - 1)
1177 ztest_kill(ztest_shared_t *zs)
1179 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa));
1180 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa));
3213 ztest_shared_t *zs = ztest_shared;
3224 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) *
3279 "log" : NULL, ztest_opts.zo_raid_children, zs->zs_mirrors,
3303 ztest_shared_t *zs = ztest_shared;
3323 if (zs->zs_mirrors < 2) {
3334 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) *
3342 class, ztest_opts.zo_raid_children, zs->zs_mirrors, 1);
3384 ztest_shared_t *zs = ztest_shared;
3425 zs->zs_vdev_aux = 0;
3430 zs->zs_vdev_aux);
3438 zs->zs_vdev_aux++;
3495 ztest_shared_t *zs = ztest_shared;
3508 if (zs->zs_mirrors < 3 || ztest_opts.zo_raid_children > 1) {
3577 ++zs->zs_splits;
3578 --zs->zs_mirrors;
3590 ztest_shared_t *zs = ztest_shared;
3616 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raid_children;
3652 if (zs->zs_mirrors >= 1) {
3654 ASSERT3U(oldvd->vdev_children, >=, zs->zs_mirrors);
6000 ztest_shared_t *zs = ztest_shared;
6034 maxfaults = MAXFAULTS(zs);
6035 leaves = MAX(zs->zs_mirrors, 1) * ztest_opts.zo_raid_children;
6036 mirror_save = zs->zs_mirrors;
6072 leaf = ztest_random(leaves) + zs->zs_splits;
6082 top * leaves + zs->zs_splits);
6259 if (mirror_save != zs->zs_mirrors) {
6992 ztest_shared_t *zs = arg;
6996 delay = (zs->zs_thread_stop - zs->zs_thread_start) +
7027 overdue = zs->zs_proc_stop + MSEC2NSEC(zfs_deadman_synctime_ms);
7031 (gethrtime() - zs->zs_proc_start) / NANOSEC);
7035 (gethrtime() - zs->zs_proc_start) / NANOSEC);
7070 ztest_shared_t *zs = ztest_shared;
7076 while ((now = gethrtime()) < zs->zs_thread_stop) {
7080 if (now > zs->zs_thread_kill)
7081 ztest_kill(zs);
7086 if (zs->zs_enospc_count > 10)
7351 ztest_import_impl(ztest_shared_t *zs)
7374 ztest_import(ztest_shared_t *zs)
7384 ztest_import_impl(zs);
7387 zs->zs_metaslab_sz =
7408 ztest_run(ztest_shared_t *zs)
7427 zs->zs_thread_start = gethrtime();
7428 zs->zs_thread_stop =
7429 zs->zs_thread_start + ztest_opts.zo_passtime * NANOSEC;
7430 zs->zs_thread_stop = MIN(zs->zs_thread_stop, zs->zs_proc_stop);
7431 zs->zs_thread_kill = zs->zs_thread_stop;
7433 zs->zs_thread_kill -=
7450 ztest_import_impl(zs);
7452 zs->zs_metaslab_sz =
7467 zs->zs_guid = dds.dds_guid;
7480 zs, 0, NULL, TS_RUN | TS_JOINABLE, defclsyspri);
7502 if (zs->zs_enospc_count != 0) {
7506 zs->zs_enospc_count = 0;
7577 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(spa));
7578 zs->zs_space = metaslab_class_get_space(spa_normal_class(spa));
7679 ztest_init(ztest_shared_t *zs)
7696 zs->zs_splits = 0;
7697 zs->zs_mirrors = ztest_opts.zo_mirrors;
7699 NULL, ztest_opts.zo_raid_children, zs->zs_mirrors, 1);
7709 MAXFAULTS(zs) ? ZIO_FAILURE_MODE_PANIC : ZIO_FAILURE_MODE_WAIT);
7736 zs->zs_metaslab_sz =
7906 ztest_shared_t *zs = ztest_shared;
7917 ztest_import(zs);
7925 bzero(zs, sizeof (ztest_shared_t));
7930 ztest_init(zs);
7941 ztest_shared_t *zs;
8030 zs = ztest_shared;
8035 zs->zs_metaslab_df_alloc_threshold;
8037 if (zs->zs_do_init)
8040 ztest_run(zs);
8060 zs->zs_do_init = B_TRUE;
8071 zs->zs_do_init = B_FALSE;
8073 zs->zs_proc_start = gethrtime();
8074 zs->zs_proc_stop = zs->zs_proc_start + ztest_opts.zo_time * NANOSEC;
8079 if (zs->zs_proc_start + zi->zi_interval[0] > zs->zs_proc_stop)
8082 zc->zc_next = zs->zs_proc_start +
8091 while (gethrtime() < zs->zs_proc_stop) {
8105 zs->zs_metaslab_df_alloc_threshold =
8106 ztest_random(zs->zs_metaslab_sz / 4) + 1;
8132 now = MIN(now, zs->zs_proc_stop);
8133 print_time(zs->zs_proc_stop - now, timebuf);
8134 nicenum(zs->zs_space, numbuf, sizeof (numbuf));
8140 (u_longlong_t)zs->zs_enospc_count,
8141 100.0 * zs->zs_alloc / zs->zs_space,
8143 100.0 * (now - zs->zs_proc_start) /