]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/ztest/ztest.c
ztest: display non-index properties properly at verbose level 6
authorTim Chase <tim@chase2k.com>
Thu, 30 Jul 2015 04:11:32 +0000 (23:11 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 30 Jul 2015 21:34:09 +0000 (14:34 -0700)
commit6bec4351f5877f3f20dc9d7730aba7b1df983ecd
tree7100d0e6c56a11e1ac6b5e3cbac8bc73038a7a33
parent69520d6855d962885e9ec4e2614575bb39c6326b
ztest: display non-index properties properly at verbose level 6

At verbosity levels of 6 or greater, ztest_dsl_prop_set_uint64() attempts
to display the value of all properties as indexed values regardless of
whether the property is an indexed value or simply an un-indexed integer.
This patch causes the numeric value of the property to be displayed if
zfs_prop_index_to_string() fails.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3649
cmd/ztest/ztest.c