On 09/03/09 14:21, dick hoogendijk wrote:
On Wed, 2 Sep 2009 13:06:35 -0500 (CDT)
Bob Friesenhahn <bfrie...@simple.dallas.tx.us> wrote:
Nothing prevents validating the self-verifying archive file via this
"zfs recv -vn " technique.
Does this verify the ZFS format/integrity of the stream?
Or is the only way to do that to zfs recv the stream into ZFS?
The -n option does some verification. It verifies that the record
headers distributed throughout the stream are syntactically valid.
Since each record header contains a length field which allows the next
header to be found, one bad header will cause the processing of the
stream to abort. But it doesn't verify the content of the data
associated with each record.
We might want to implement an option to enhance zfs recv -n to calculate
a checksum of each dataset's records as it's reading the stream and then
verify the checksum when the dataset's "END" record is seen. I'm
looking at integrating a utility which allows the metadata in a stream
to be dumped for debugging purposes (zstreamdump). It also verifies
that the data in the stream agrees with the checksum.
lori
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss