4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
26 * Portions Copyright 2012 Martin Matuska <martin@matuska.org>
30 * Copyright (c) 2013, 2015 by Delphix. All rights reserved.
34 #include <libnvpair.h>
42 #include <sys/zfs_ioctl.h>
44 #include <zfs_fletcher.h>
47 * If dump mode is enabled, the number of bytes to print per line
49 #define BYTES_PER_LINE 16
51 * If dump mode is enabled, the number of bytes to group together, separated
52 * by newlines or spaces
54 #define DUMP_GROUPING 4
56 uint64_t total_write_size
= 0;
57 uint64_t total_stream_len
= 0;
58 FILE *send_stream
= 0;
59 boolean_t do_byteswap
= B_FALSE
;
60 boolean_t do_cksum
= B_TRUE
;
65 (void) fprintf(stderr
, "usage: zstreamdump [-v] [-C] [-d] < file\n");
66 (void) fprintf(stderr
, "\t -v -- verbose\n");
67 (void) fprintf(stderr
, "\t -C -- suppress checksum verification\n");
68 (void) fprintf(stderr
, "\t -d -- dump contents of blocks modified, "
74 safe_malloc(size_t size
)
76 void *rv
= malloc(size
);
78 (void) fprintf(stderr
, "ERROR; failed to allocate %zu bytes\n",
86 * ssread - send stream read.
88 * Read while computing incremental checksum
91 ssread(void *buf
, size_t len
, zio_cksum_t
*cksum
)
95 if ((outlen
= fread(buf
, len
, 1, send_stream
)) == 0)
100 fletcher_4_incremental_byteswap(buf
, len
, cksum
);
102 fletcher_4_incremental_native(buf
, len
, cksum
);
104 total_stream_len
+= len
;
109 read_hdr(dmu_replay_record_t
*drr
, zio_cksum_t
*cksum
)
111 ASSERT3U(offsetof(dmu_replay_record_t
, drr_u
.drr_checksum
.drr_checksum
),
112 ==, sizeof (dmu_replay_record_t
) - sizeof (zio_cksum_t
));
113 size_t r
= ssread(drr
, sizeof (*drr
) - sizeof (zio_cksum_t
), cksum
);
116 zio_cksum_t saved_cksum
= *cksum
;
117 r
= ssread(&drr
->drr_u
.drr_checksum
.drr_checksum
,
118 sizeof (zio_cksum_t
), cksum
);
121 if (!ZIO_CHECKSUM_IS_ZERO(&drr
->drr_u
.drr_checksum
.drr_checksum
) &&
122 !ZIO_CHECKSUM_EQUAL(saved_cksum
,
123 drr
->drr_u
.drr_checksum
.drr_checksum
)) {
124 fprintf(stderr
, "invalid checksum\n");
125 (void) printf("Incorrect checksum in record header.\n");
126 (void) printf("Expected checksum = %llx/%llx/%llx/%llx\n",
127 (longlong_t
)saved_cksum
.zc_word
[0],
128 (longlong_t
)saved_cksum
.zc_word
[1],
129 (longlong_t
)saved_cksum
.zc_word
[2],
130 (longlong_t
)saved_cksum
.zc_word
[3]);
133 return (sizeof (*drr
));
137 * Print part of a block in ASCII characters
140 print_ascii_block(char *subbuf
, int length
)
144 for (i
= 0; i
< length
; i
++) {
145 char char_print
= isprint(subbuf
[i
]) ? subbuf
[i
] : '.';
146 if (i
!= 0 && i
% DUMP_GROUPING
== 0) {
149 (void) printf("%c", char_print
);
155 * print_block - Dump the contents of a modified block to STDOUT
157 * Assume that buf has capacity evenly divisible by BYTES_PER_LINE
160 print_block(char *buf
, int length
)
164 * Start printing ASCII characters at a constant offset, after
165 * the hex prints. Leave 3 characters per byte on a line (2 digit
166 * hex number plus 1 space) plus spaces between characters and
169 int ascii_start
= BYTES_PER_LINE
* 3 +
170 BYTES_PER_LINE
/ DUMP_GROUPING
+ 2;
172 for (i
= 0; i
< length
; i
+= BYTES_PER_LINE
) {
174 int this_line_length
= MIN(BYTES_PER_LINE
, length
- i
);
175 int print_offset
= 0;
177 for (j
= 0; j
< this_line_length
; j
++) {
178 int buf_offset
= i
+ j
;
181 * Separate every DUMP_GROUPING bytes by a space.
183 if (buf_offset
% DUMP_GROUPING
== 0) {
184 print_offset
+= printf(" ");
188 * Print the two-digit hex value for this byte.
190 unsigned char hex_print
= buf
[buf_offset
];
191 print_offset
+= printf("%02x ", hex_print
);
194 (void) printf("%*s", ascii_start
- print_offset
, " ");
196 print_ascii_block(buf
+ i
, this_line_length
);
201 * Print an array of bytes to stdout as hexidecimal characters. str must
202 * have buf_len * 2 + 1 bytes of space.
205 sprintf_bytes(char *str
, uint8_t *buf
, uint_t buf_len
)
209 for (i
= 0; i
< buf_len
; i
++) {
210 n
= sprintf(str
, "%02x", buf
[i
] & 0xff);
218 main(int argc
, char *argv
[])
220 char *buf
= safe_malloc(SPA_MAXBLOCKSIZE
);
221 uint64_t drr_record_count
[DRR_NUMTYPES
] = { 0 };
222 char salt
[ZIO_DATA_SALT_LEN
* 2 + 1];
223 char iv
[ZIO_DATA_IV_LEN
* 2 + 1];
224 char mac
[ZIO_DATA_MAC_LEN
* 2 + 1];
225 uint64_t total_records
= 0;
226 uint64_t payload_size
;
227 dmu_replay_record_t thedrr
;
228 dmu_replay_record_t
*drr
= &thedrr
;
229 struct drr_begin
*drrb
= &thedrr
.drr_u
.drr_begin
;
230 struct drr_end
*drre
= &thedrr
.drr_u
.drr_end
;
231 struct drr_object
*drro
= &thedrr
.drr_u
.drr_object
;
232 struct drr_freeobjects
*drrfo
= &thedrr
.drr_u
.drr_freeobjects
;
233 struct drr_write
*drrw
= &thedrr
.drr_u
.drr_write
;
234 struct drr_write_byref
*drrwbr
= &thedrr
.drr_u
.drr_write_byref
;
235 struct drr_free
*drrf
= &thedrr
.drr_u
.drr_free
;
236 struct drr_spill
*drrs
= &thedrr
.drr_u
.drr_spill
;
237 struct drr_write_embedded
*drrwe
= &thedrr
.drr_u
.drr_write_embedded
;
238 struct drr_object_range
*drror
= &thedrr
.drr_u
.drr_object_range
;
239 struct drr_checksum
*drrc
= &thedrr
.drr_u
.drr_checksum
;
241 boolean_t verbose
= B_FALSE
;
242 boolean_t very_verbose
= B_FALSE
;
243 boolean_t first
= B_TRUE
;
245 * dump flag controls whether the contents of any modified data blocks
246 * are printed to the console during processing of the stream. Warning:
247 * for large streams, this can obviously lead to massive prints.
249 boolean_t dump
= B_FALSE
;
251 zio_cksum_t zc
= { { 0 } };
252 zio_cksum_t pcksum
= { { 0 } };
254 while ((c
= getopt(argc
, argv
, ":vCd")) != -1) {
261 very_verbose
= B_TRUE
;
267 very_verbose
= B_TRUE
;
270 (void) fprintf(stderr
,
271 "missing argument for '%c' option\n", optopt
);
275 (void) fprintf(stderr
, "invalid option '%c'\n",
282 if (isatty(STDIN_FILENO
)) {
283 (void) fprintf(stderr
,
284 "Error: Backup stream can not be read "
286 "You must redirect standard input.\n");
292 while (read_hdr(drr
, &zc
)) {
295 * If this is the first DMU record being processed, check for
296 * the magic bytes and figure out the endian-ness based on them.
299 if (drrb
->drr_magic
== BSWAP_64(DMU_BACKUP_MAGIC
)) {
300 do_byteswap
= B_TRUE
;
302 ZIO_SET_CHECKSUM(&zc
, 0, 0, 0, 0);
304 * recalculate header checksum now
305 * that we know it needs to be
308 fletcher_4_incremental_byteswap(drr
,
309 sizeof (dmu_replay_record_t
), &zc
);
311 } else if (drrb
->drr_magic
!= DMU_BACKUP_MAGIC
) {
312 (void) fprintf(stderr
, "Invalid stream "
313 "(bad magic number)\n");
319 drr
->drr_type
= BSWAP_32(drr
->drr_type
);
320 drr
->drr_payloadlen
=
321 BSWAP_32(drr
->drr_payloadlen
);
325 * At this point, the leading fields of the replay record
326 * (drr_type and drr_payloadlen) have been byte-swapped if
327 * necessary, but the rest of the data structure (the
328 * union of type-specific structures) is still in its
331 if (drr
->drr_type
>= DRR_NUMTYPES
) {
332 (void) printf("INVALID record found: type 0x%x\n",
334 (void) printf("Aborting.\n");
338 drr_record_count
[drr
->drr_type
]++;
341 switch (drr
->drr_type
) {
344 drrb
->drr_magic
= BSWAP_64(drrb
->drr_magic
);
345 drrb
->drr_versioninfo
=
346 BSWAP_64(drrb
->drr_versioninfo
);
347 drrb
->drr_creation_time
=
348 BSWAP_64(drrb
->drr_creation_time
);
349 drrb
->drr_type
= BSWAP_32(drrb
->drr_type
);
350 drrb
->drr_flags
= BSWAP_32(drrb
->drr_flags
);
351 drrb
->drr_toguid
= BSWAP_64(drrb
->drr_toguid
);
353 BSWAP_64(drrb
->drr_fromguid
);
356 (void) printf("BEGIN record\n");
357 (void) printf("\thdrtype = %lld\n",
358 DMU_GET_STREAM_HDRTYPE(drrb
->drr_versioninfo
));
359 (void) printf("\tfeatures = %llx\n",
360 DMU_GET_FEATUREFLAGS(drrb
->drr_versioninfo
));
361 (void) printf("\tmagic = %llx\n",
362 (u_longlong_t
)drrb
->drr_magic
);
363 (void) printf("\tcreation_time = %llx\n",
364 (u_longlong_t
)drrb
->drr_creation_time
);
365 (void) printf("\ttype = %u\n", drrb
->drr_type
);
366 (void) printf("\tflags = 0x%x\n", drrb
->drr_flags
);
367 (void) printf("\ttoguid = %llx\n",
368 (u_longlong_t
)drrb
->drr_toguid
);
369 (void) printf("\tfromguid = %llx\n",
370 (u_longlong_t
)drrb
->drr_fromguid
);
371 (void) printf("\ttoname = %s\n", drrb
->drr_toname
);
375 if (drr
->drr_payloadlen
!= 0) {
377 int sz
= drr
->drr_payloadlen
;
379 if (sz
> SPA_MAXBLOCKSIZE
) {
381 buf
= safe_malloc(sz
);
383 (void) ssread(buf
, sz
, &zc
);
384 if (ferror(send_stream
))
386 err
= nvlist_unpack(buf
, sz
, &nv
, 0);
388 perror(strerror(err
));
390 nvlist_print(stdout
, nv
);
398 drre
->drr_checksum
.zc_word
[0] =
399 BSWAP_64(drre
->drr_checksum
.zc_word
[0]);
400 drre
->drr_checksum
.zc_word
[1] =
401 BSWAP_64(drre
->drr_checksum
.zc_word
[1]);
402 drre
->drr_checksum
.zc_word
[2] =
403 BSWAP_64(drre
->drr_checksum
.zc_word
[2]);
404 drre
->drr_checksum
.zc_word
[3] =
405 BSWAP_64(drre
->drr_checksum
.zc_word
[3]);
408 * We compare against the *previous* checksum
409 * value, because the stored checksum is of
410 * everything before the DRR_END record.
412 if (do_cksum
&& !ZIO_CHECKSUM_EQUAL(drre
->drr_checksum
,
414 (void) printf("Expected checksum differs from "
415 "checksum in stream.\n");
416 (void) printf("Expected checksum = "
417 "%llx/%llx/%llx/%llx\n",
418 (long long unsigned int)pcksum
.zc_word
[0],
419 (long long unsigned int)pcksum
.zc_word
[1],
420 (long long unsigned int)pcksum
.zc_word
[2],
421 (long long unsigned int)pcksum
.zc_word
[3]);
423 (void) printf("END checksum = %llx/%llx/%llx/%llx\n",
424 (long long unsigned int)
425 drre
->drr_checksum
.zc_word
[0],
426 (long long unsigned int)
427 drre
->drr_checksum
.zc_word
[1],
428 (long long unsigned int)
429 drre
->drr_checksum
.zc_word
[2],
430 (long long unsigned int)
431 drre
->drr_checksum
.zc_word
[3]);
433 ZIO_SET_CHECKSUM(&zc
, 0, 0, 0, 0);
438 drro
->drr_object
= BSWAP_64(drro
->drr_object
);
439 drro
->drr_type
= BSWAP_32(drro
->drr_type
);
440 drro
->drr_bonustype
=
441 BSWAP_32(drro
->drr_bonustype
);
442 drro
->drr_blksz
= BSWAP_32(drro
->drr_blksz
);
444 BSWAP_32(drro
->drr_bonuslen
);
445 drro
->drr_raw_bonuslen
=
446 BSWAP_32(drro
->drr_raw_bonuslen
);
447 drro
->drr_toguid
= BSWAP_64(drro
->drr_toguid
);
449 BSWAP_64(drro
->drr_maxblkid
);
452 payload_size
= DRR_OBJECT_PAYLOAD_SIZE(drro
);
455 (void) printf("OBJECT object = %llu type = %u "
456 "bonustype = %u blksz = %u bonuslen = %u "
457 "dn_slots = %u raw_bonuslen = %u "
458 "flags = %u maxblkid = %llu "
459 "indblkshift = %u nlevels = %u "
461 (u_longlong_t
)drro
->drr_object
,
467 drro
->drr_raw_bonuslen
,
469 (u_longlong_t
)drro
->drr_maxblkid
,
470 drro
->drr_indblkshift
,
474 if (drro
->drr_bonuslen
> 0) {
475 (void) ssread(buf
, payload_size
, &zc
);
477 print_block(buf
, payload_size
);
481 case DRR_FREEOBJECTS
:
483 drrfo
->drr_firstobj
=
484 BSWAP_64(drrfo
->drr_firstobj
);
486 BSWAP_64(drrfo
->drr_numobjs
);
487 drrfo
->drr_toguid
= BSWAP_64(drrfo
->drr_toguid
);
490 (void) printf("FREEOBJECTS firstobj = %llu "
492 (u_longlong_t
)drrfo
->drr_firstobj
,
493 (u_longlong_t
)drrfo
->drr_numobjs
);
499 drrw
->drr_object
= BSWAP_64(drrw
->drr_object
);
500 drrw
->drr_type
= BSWAP_32(drrw
->drr_type
);
501 drrw
->drr_offset
= BSWAP_64(drrw
->drr_offset
);
502 drrw
->drr_logical_size
=
503 BSWAP_64(drrw
->drr_logical_size
);
504 drrw
->drr_toguid
= BSWAP_64(drrw
->drr_toguid
);
505 drrw
->drr_key
.ddk_prop
=
506 BSWAP_64(drrw
->drr_key
.ddk_prop
);
507 drrw
->drr_compressed_size
=
508 BSWAP_64(drrw
->drr_compressed_size
);
511 payload_size
= DRR_WRITE_PAYLOAD_SIZE(drrw
);
514 * If this is verbose and/or dump output,
515 * print info on the modified block
518 sprintf_bytes(salt
, drrw
->drr_salt
,
520 sprintf_bytes(iv
, drrw
->drr_iv
,
522 sprintf_bytes(mac
, drrw
->drr_mac
,
525 (void) printf("WRITE object = %llu type = %u "
526 "checksum type = %u compression type = %u\n"
527 " flags = %u offset = %llu "
528 "logical_size = %llu "
529 "compressed_size = %llu "
530 "payload_size = %llu props = %llx "
531 "salt = %s iv = %s mac = %s\n",
532 (u_longlong_t
)drrw
->drr_object
,
534 drrw
->drr_checksumtype
,
535 drrw
->drr_compressiontype
,
537 (u_longlong_t
)drrw
->drr_offset
,
538 (u_longlong_t
)drrw
->drr_logical_size
,
539 (u_longlong_t
)drrw
->drr_compressed_size
,
540 (u_longlong_t
)payload_size
,
541 (u_longlong_t
)drrw
->drr_key
.ddk_prop
,
548 * Read the contents of the block in from STDIN to buf
550 (void) ssread(buf
, payload_size
, &zc
);
555 print_block(buf
, payload_size
);
557 total_write_size
+= payload_size
;
560 case DRR_WRITE_BYREF
:
563 BSWAP_64(drrwbr
->drr_object
);
565 BSWAP_64(drrwbr
->drr_offset
);
567 BSWAP_64(drrwbr
->drr_length
);
569 BSWAP_64(drrwbr
->drr_toguid
);
570 drrwbr
->drr_refguid
=
571 BSWAP_64(drrwbr
->drr_refguid
);
572 drrwbr
->drr_refobject
=
573 BSWAP_64(drrwbr
->drr_refobject
);
574 drrwbr
->drr_refoffset
=
575 BSWAP_64(drrwbr
->drr_refoffset
);
576 drrwbr
->drr_key
.ddk_prop
=
577 BSWAP_64(drrwbr
->drr_key
.ddk_prop
);
580 (void) printf("WRITE_BYREF object = %llu "
581 "checksum type = %u props = %llx\n"
582 " offset = %llu length = %llu\n"
583 "toguid = %llx refguid = %llx\n"
584 " refobject = %llu refoffset = %llu\n",
585 (u_longlong_t
)drrwbr
->drr_object
,
586 drrwbr
->drr_checksumtype
,
587 (u_longlong_t
)drrwbr
->drr_key
.ddk_prop
,
588 (u_longlong_t
)drrwbr
->drr_offset
,
589 (u_longlong_t
)drrwbr
->drr_length
,
590 (u_longlong_t
)drrwbr
->drr_toguid
,
591 (u_longlong_t
)drrwbr
->drr_refguid
,
592 (u_longlong_t
)drrwbr
->drr_refobject
,
593 (u_longlong_t
)drrwbr
->drr_refoffset
);
599 drrf
->drr_object
= BSWAP_64(drrf
->drr_object
);
600 drrf
->drr_offset
= BSWAP_64(drrf
->drr_offset
);
601 drrf
->drr_length
= BSWAP_64(drrf
->drr_length
);
604 (void) printf("FREE object = %llu "
605 "offset = %llu length = %lld\n",
606 (u_longlong_t
)drrf
->drr_object
,
607 (u_longlong_t
)drrf
->drr_offset
,
608 (longlong_t
)drrf
->drr_length
);
613 drrs
->drr_object
= BSWAP_64(drrs
->drr_object
);
614 drrs
->drr_length
= BSWAP_64(drrs
->drr_length
);
615 drrs
->drr_compressed_size
=
616 BSWAP_64(drrs
->drr_compressed_size
);
617 drrs
->drr_type
= BSWAP_32(drrs
->drr_type
);
620 payload_size
= DRR_SPILL_PAYLOAD_SIZE(drrs
);
623 sprintf_bytes(salt
, drrs
->drr_salt
,
625 sprintf_bytes(iv
, drrs
->drr_iv
,
627 sprintf_bytes(mac
, drrs
->drr_mac
,
630 (void) printf("SPILL block for object = %llu "
631 "length = %llu flags = %u "
632 "compression type = %u "
633 "compressed_size = %llu "
634 "payload_size = %llu "
635 "salt = %s iv = %s mac = %s\n",
636 (u_longlong_t
)drrs
->drr_object
,
637 (u_longlong_t
)drrs
->drr_length
,
639 drrs
->drr_compressiontype
,
640 (u_longlong_t
)drrs
->drr_compressed_size
,
641 (u_longlong_t
)payload_size
,
646 (void) ssread(buf
, payload_size
, &zc
);
648 print_block(buf
, payload_size
);
651 case DRR_WRITE_EMBEDDED
:
654 BSWAP_64(drrwe
->drr_object
);
656 BSWAP_64(drrwe
->drr_offset
);
658 BSWAP_64(drrwe
->drr_length
);
660 BSWAP_64(drrwe
->drr_toguid
);
662 BSWAP_32(drrwe
->drr_lsize
);
664 BSWAP_32(drrwe
->drr_psize
);
667 (void) printf("WRITE_EMBEDDED object = %llu "
668 "offset = %llu length = %llu\n"
669 " toguid = %llx comp = %u etype = %u "
670 "lsize = %u psize = %u\n",
671 (u_longlong_t
)drrwe
->drr_object
,
672 (u_longlong_t
)drrwe
->drr_offset
,
673 (u_longlong_t
)drrwe
->drr_length
,
674 (u_longlong_t
)drrwe
->drr_toguid
,
675 drrwe
->drr_compression
,
681 P2ROUNDUP(drrwe
->drr_psize
, 8), &zc
);
683 case DRR_OBJECT_RANGE
:
685 drror
->drr_firstobj
=
686 BSWAP_64(drror
->drr_firstobj
);
687 drror
->drr_numslots
=
688 BSWAP_64(drror
->drr_numslots
);
689 drror
->drr_toguid
= BSWAP_64(drror
->drr_toguid
);
692 sprintf_bytes(salt
, drror
->drr_salt
,
694 sprintf_bytes(iv
, drror
->drr_iv
,
696 sprintf_bytes(mac
, drror
->drr_mac
,
699 (void) printf("OBJECT_RANGE firstobj = %llu "
700 "numslots = %llu flags = %u "
701 "salt = %s iv = %s mac = %s\n",
702 (u_longlong_t
)drror
->drr_firstobj
,
703 (u_longlong_t
)drror
->drr_numslots
,
711 /* should never be reached */
714 if (drr
->drr_type
!= DRR_BEGIN
&& very_verbose
) {
715 (void) printf(" checksum = %llx/%llx/%llx/%llx\n",
716 (longlong_t
)drrc
->drr_checksum
.zc_word
[0],
717 (longlong_t
)drrc
->drr_checksum
.zc_word
[1],
718 (longlong_t
)drrc
->drr_checksum
.zc_word
[2],
719 (longlong_t
)drrc
->drr_checksum
.zc_word
[3]);
726 /* Print final summary */
728 (void) printf("SUMMARY:\n");
729 (void) printf("\tTotal DRR_BEGIN records = %lld\n",
730 (u_longlong_t
)drr_record_count
[DRR_BEGIN
]);
731 (void) printf("\tTotal DRR_END records = %lld\n",
732 (u_longlong_t
)drr_record_count
[DRR_END
]);
733 (void) printf("\tTotal DRR_OBJECT records = %lld\n",
734 (u_longlong_t
)drr_record_count
[DRR_OBJECT
]);
735 (void) printf("\tTotal DRR_FREEOBJECTS records = %lld\n",
736 (u_longlong_t
)drr_record_count
[DRR_FREEOBJECTS
]);
737 (void) printf("\tTotal DRR_WRITE records = %lld\n",
738 (u_longlong_t
)drr_record_count
[DRR_WRITE
]);
739 (void) printf("\tTotal DRR_WRITE_BYREF records = %lld\n",
740 (u_longlong_t
)drr_record_count
[DRR_WRITE_BYREF
]);
741 (void) printf("\tTotal DRR_WRITE_EMBEDDED records = %lld\n",
742 (u_longlong_t
)drr_record_count
[DRR_WRITE_EMBEDDED
]);
743 (void) printf("\tTotal DRR_FREE records = %lld\n",
744 (u_longlong_t
)drr_record_count
[DRR_FREE
]);
745 (void) printf("\tTotal DRR_SPILL records = %lld\n",
746 (u_longlong_t
)drr_record_count
[DRR_SPILL
]);
747 (void) printf("\tTotal records = %lld\n",
748 (u_longlong_t
)total_records
);
749 (void) printf("\tTotal write size = %lld (0x%llx)\n",
750 (u_longlong_t
)total_write_size
, (u_longlong_t
)total_write_size
);
751 (void) printf("\tTotal stream length = %lld (0x%llx)\n",
752 (u_longlong_t
)total_stream_len
, (u_longlong_t
)total_stream_len
);