]> git.proxmox.com Git - mirror_zfs.git/commitdiff
ztest should randomly change recordsize
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 29 Jan 2015 20:45:40 +0000 (12:45 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 May 2015 19:23:16 +0000 (12:23 -0700)
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 #354

cmd/ztest/ztest.c

index 6b939bdb656b7f0aca0ba1efa7367dfae52ee2ca..1dfc25b6a5115396bd8e582e5ffd746c31d43939 100644 (file)
@@ -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);
 }