]> granicus.if.org Git - zfs/commit
Make zstreamdump -v more greppable
authorTom Caputi <tcaputi@datto.com>
Wed, 13 Mar 2019 18:19:23 +0000 (14:19 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Mar 2019 18:19:23 +0000 (11:19 -0700)
commit5cc9ba5cf070f726fcc9dda311372d5dd6aef1da
tree1513be3d83beaec87e9eb2ff59975799a6483039
parent181424237903cd139df8e63fa6f09ebf2e8cd750
Make zstreamdump -v more greppable

Currently, the verbose output of zstreamdump includes new line
characters within some individual records. Presumably, this was
originally done to keep the output from getting too wide to fit
on a terminal. However, since new flags and struct members have
been added, these rules have not been maintained consistently. In
addition, these newlines can make it hard to grep the output in
some scenarios. This patch simply removes these newlines, making
the output easier to grep and removing the inconsistency.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Allan Jude <allanjude@freebsd.org>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8493
cmd/zstreamdump/zstreamdump.c
tests/zfs-tests/tests/functional/rsend/rsend.kshlib
tests/zfs-tests/tests/functional/rsend/send-c_zstreamdump.ksh