mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
1814242379
commit
5cc9ba5cf0
@@ -523,8 +523,8 @@ main(int argc, char *argv[])
|
||||
ZIO_DATA_MAC_LEN);
|
||||
|
||||
(void) printf("WRITE object = %llu type = %u "
|
||||
"checksum type = %u compression type = %u\n"
|
||||
" flags = %u offset = %llu "
|
||||
"checksum type = %u compression type = %u "
|
||||
"flags = %u offset = %llu "
|
||||
"logical_size = %llu "
|
||||
"compressed_size = %llu "
|
||||
"payload_size = %llu props = %llx "
|
||||
@@ -578,10 +578,10 @@ main(int argc, char *argv[])
|
||||
}
|
||||
if (verbose) {
|
||||
(void) printf("WRITE_BYREF object = %llu "
|
||||
"checksum type = %u props = %llx\n"
|
||||
" offset = %llu length = %llu\n"
|
||||
"toguid = %llx refguid = %llx\n"
|
||||
" refobject = %llu refoffset = %llu\n",
|
||||
"checksum type = %u props = %llx "
|
||||
"offset = %llu length = %llu "
|
||||
"toguid = %llx refguid = %llx "
|
||||
"refobject = %llu refoffset = %llu\n",
|
||||
(u_longlong_t)drrwbr->drr_object,
|
||||
drrwbr->drr_checksumtype,
|
||||
(u_longlong_t)drrwbr->drr_key.ddk_prop,
|
||||
@@ -665,8 +665,8 @@ main(int argc, char *argv[])
|
||||
}
|
||||
if (verbose) {
|
||||
(void) printf("WRITE_EMBEDDED object = %llu "
|
||||
"offset = %llu length = %llu\n"
|
||||
" toguid = %llx comp = %u etype = %u "
|
||||
"offset = %llu length = %llu "
|
||||
"toguid = %llx comp = %u etype = %u "
|
||||
"lsize = %u psize = %u\n",
|
||||
(u_longlong_t)drrwe->drr_object,
|
||||
(u_longlong_t)drrwe->drr_offset,
|
||||
|
||||
Reference in New Issue
Block a user