diff options
author | Brian Behlendorf <[email protected]> | 2015-01-29 12:45:40 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-05-11 12:23:16 -0700 |
commit | 76d520675e8ba0f7760fb5eefe2492fabf7a2335 (patch) | |
tree | 5afd357b23b55f7a4a2a9a04e9b126039b9e6580 /cmd/ztest | |
parent | f1512ee61e2f22186ac16481a09d86112b2d6788 (diff) |
ztest should randomly change recordsize
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 <[email protected]>
Issue #354
Diffstat (limited to 'cmd/ztest')
-rw-r--r-- | cmd/ztest/ztest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 6b939bdb6..1dfc25b6a 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -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); } |