Skip to content

Commit

Permalink
ztest should randomly change recordsize
Browse files Browse the repository at this point in the history
Improve the large block feature test coverage by extending ztest
to frequently change the recordsize.  This is specificially designed
to catch corner cases which might otherwise go unnoticed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#354
  • Loading branch information
behlendorf authored and dasjoe committed May 24, 2015
1 parent d46841b commit 06056b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/ztest/ztest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4795,6 +4795,9 @@ ztest_dsl_prop_get_set(ztest_ds_t *zd, uint64_t id)
(void) ztest_dsl_prop_set_uint64(zd->zd_name, proplist[p],
ztest_random_dsl_prop(proplist[p]), (int)ztest_random(2));

VERIFY0(ztest_dsl_prop_set_uint64(zd->zd_name, ZFS_PROP_RECORDSIZE,
ztest_random_blocksize(), (int)ztest_random(2)));

(void) rw_unlock(&ztest_name_lock);
}

Expand Down

0 comments on commit 06056b9

Please sign in to comment.