]> granicus.if.org Git - zfs/commit
Replay logs before starting ztest workers
authorTom Caputi <tcaputi@datto.com>
Wed, 7 Nov 2018 23:40:24 +0000 (18:40 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Nov 2018 23:40:24 +0000 (15:40 -0800)
commitf44ad9297da6e638482232636e9d63302b96f7e9
tree2f1c1417ec38b3b54a0f977fd864c9005ad57c67
parentac53e50f799b39d9cd04e5ecc0a6552c9490c84a
Replay logs before starting ztest workers

This patch ensures that logs are replayed on all datasets prior
to starting ztest workers. This ensures that the call to
vdev_offline() a log device in ztest_fault_inject() will not fail
due to the log device being required for replay.

This patch also fixes a small issue found during testing where
spa_keystore_load_wkey() does not check that the dataset specified
is an encryption root. This check was present in libzfs, however.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8084
cmd/ztest/ztest.c
module/zfs/dsl_crypt.c