diff options
author | Etienne Dechamps <[email protected]> | 2012-09-10 16:23:21 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-09-10 10:55:44 -0700 |
commit | b815ff9a8f3ed0b87fc24517fd01a867ec07b424 (patch) | |
tree | 65708b1c416363e19a5453805017f2b3e9362b1c /cmd | |
parent | 4ca9a43644cf651ed3bb533d183cf33525a9fc4a (diff) |
Silence "setting dataset to sync always" message in ztest.
ztest outputs a message when testing sync=always no matter what the
verbosity level is. There is no point outputting this message for low
verbosity levels.
With this patch the message is only displayed at verbosity level 5 or
above. The result is less output pollution.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #951
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ztest/ztest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 0f0ab60dd..15f170d43 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -2923,7 +2923,8 @@ ztest_dataset_create(char *dsname) if (err || zilset < 80) return (err); - (void) printf("Setting dataset %s to sync always\n", dsname); + if (zopt_verbose >= 5) + (void) printf("Setting dataset %s to sync always\n", dsname); return (ztest_dsl_prop_set_uint64(dsname, ZFS_PROP_SYNC, ZFS_SYNC_ALWAYS, B_FALSE)); } |