Lines Matching refs:ztest_random

793 ztest_random(uint64_t range)
819 return (SPA_MINBLOCKSHIFT + ztest_random(5));
968 ztest_random(SPA_VERSION_BEFORE_FEATURES - version + 1);
989 block_shift = ztest_random(maxbs - ztest_spa->spa_max_ashift + 1);
997 ztest_random(DN_MAX_INDBLKSHIFT - DN_MIN_INDBLKSHIFT + 1));
1010 top = ztest_random(rvd->vdev_children);
1024 value = zfs_prop_random_value(prop, ztest_random(-1ULL));
1217 #define TXG_MIGHTWAIT (ztest_random(10) == 0 ? TXG_NOWAIT : TXG_WAIT)
1357 itx_wr_state_t write_state = ztest_random(WR_NUM_STATES);
1377 itx->itx_sync = (ztest_random(8) == 0);
1609 if (ztest_random(8) == 0 && length == doi.doi_data_block_size &&
1630 if (ztest_random(4) != 0) {
1631 int prefetch = ztest_random(2) ?
1759 lr->lr_size = (ztest_random(db->db_size / sizeof (*bbt)) + 1) *
2181 io_type = ztest_random(ZTEST_IO_TYPES);
2182 if (ztest_random(2) == 0)
2196 if (ztest_random(2) == 0) {
2299 zil_commit(zilog, ztest_random(ZTEST_OBJECTS));
2520 if (spa_has_slogs(spa) && ztest_random(4) == 0) {
2550 ztest_random(4) == 0, ztest_opts.zo_raidz,
2580 if (ztest_random(2) == 0) {
2592 if (sav->sav_count != 0 && ztest_random(4) == 0) {
2596 guid = sav->sav_vdevs[ztest_random(sav->sav_count)]->vdev_guid;
2637 if (ztest_random(2) == 0)
2777 replacing = ztest_random(2);
2787 leaf = ztest_random(leaves);
2811 oldvd = oldvd->vdev_child[ztest_random(oldvd->vdev_children)];
2824 if (oldvd_has_siblings && ztest_random(2) == 0) {
2838 if (sav->sav_count != 0 && ztest_random(3) == 0) {
2839 newvd = sav->sav_vdevs[ztest_random(sav->sav_count)];
2846 if (ztest_random(2) == 0)
2860 newsize = 10 * oldsize / (9 + ztest_random(3));
3187 uint64_t zilset = ztest_random(100);
3291 if (ztest_random(2) == 0 &&
3339 iters = ztest_random(5);
3342 if (ztest_random(iters) == 0)
3538 while (ztest_random(4 * batchsize) != 0)
3539 ztest_io(zd, od[ztest_random(batchsize)].od_object,
3540 ztest_random(ZTEST_RANGE_LOCKS) << SPA_MAXBLOCKSHIFT);
3556 uint64_t chunksize = (1000 + ztest_random(1000)) * sizeof (uint64_t);
3606 n = ztest_random(regions) * stride + ztest_random(width);
3607 s = 1 + ztest_random(2 * width - 1);
3614 n = ztest_random(regions) * stride + ztest_random(width);
3615 s = 1 + ztest_random(width - 1);
3630 freeit = (ztest_random(100) < free_percent);
3714 pack->bw_data = 1 + ztest_random(-2ULL);
3813 pack->bw_data = 1 + ztest_random(-2ULL);
3879 n = ztest_random(regions) * stride + ztest_random(width);
3880 s = 1 + ztest_random(width - 1);
3959 if (i != 0 || ztest_random(2) != 0) {
4053 uint64_t offset = (1ULL << (ztest_random(20) + 43)) +
4054 (ztest_random(ZTEST_RANGE_LOCKS) << SPA_MAXBLOCKSHIFT);
4066 while (ztest_random(10) != 0)
4074 uint64_t offset = (1ULL << (ztest_random(4) + SPA_MAXBLOCKSHIFT)) +
4075 (ztest_random(ZTEST_RANGE_LOCKS) << SPA_MAXBLOCKSHIFT);
4076 uint64_t count = ztest_random(20) + 1;
4082 if (ztest_object_init(zd, od, sizeof (od), !ztest_random(2)) != 0)
4092 while (ztest_random(count) != 0) {
4093 uint64_t randoff = offset + (ztest_random(count) * blocksize);
4097 while (ztest_random(4) != 0)
4128 if (ztest_object_init(zd, od, sizeof (od), !ztest_random(2)) != 0)
4165 prop = ztest_random(ZTEST_ZAP_MAX_PROPS);
4227 prop = ztest_random(ZTEST_ZAP_MAX_PROPS);
4260 if (ztest_object_init(zd, od, sizeof (od), !ztest_random(2)) != 0)
4300 int micro = ztest_random(2);
4317 namelen = ztest_random(sizeof (name) - 5) + 5 + 1;
4320 name[i] = '!' + ztest_random('~' - '!' + 1);
4342 i = ztest_random(5);
4505 if (ztest_random(100) == 0)
4621 ztest_random_dsl_prop(proplist[p]), (int)ztest_random(2));
4635 ZIO_DEDUPDITTO_MIN + ztest_random(ZIO_DEDUPDITTO_MIN));
4833 if (ztest_random(2) == 0) {
4838 leaf = ztest_random(leaves) + zs->zs_splits;
4877 if (vf != NULL && ztest_random(3) == 0) {
4880 } else if (ztest_random(2) == 0) {
4898 vd0 = sav->sav_vdevs[ztest_random(sav->sav_count)];
4916 if (ztest_random(10) < 6) {
4917 int flags = (ztest_random(2) == 0 ?
4990 offset = ztest_random(fsize / (leaves << bshift)) *
4992 (ztest_random(1ULL << (bshift - 1)) & -8ULL);
5339 if (ztest_random(2) == 0)
5422 if (ztest_random(10) == 0)
5423 zfs_compressed_arc_enabled = ztest_random(2);
5511 rand = ztest_random(ZTEST_FUNCS);
5518 ztest_random(2 * zi->zi_interval[0] + 1)) == call_next) {
5670 if (ztest_random(100) < ztest_opts.zo_killrate) {
5672 ztest_random(ztest_opts.zo_passtime * NANOSEC);
5686 metaslab_preload_limit = ztest_random(20) + 1;
5741 int d = ztest_random(ztest_opts.zo_datasets);
5810 if (ztest_random(2) == 0) {
5879 while (ztest_random(10) != 0 &&
5886 ztest_random(ZTEST_RANGE_LOCKS) << SPA_MAXBLOCKSHIFT);
5952 if (ztest_random(2) == 0)
6283 ztest_random(2 * zi->zi_interval[0] + 1);
6306 ztest_random(zs->zs_metaslab_sz / 4) + 1;
6308 if (!hasalt || ztest_random(2) == 0) {