On 09/15/09 18:08, Nicolas Williams wrote: > On Tue, Sep 15, 2009 at 06:06:13PM -0600, Tim Haley wrote: > >> NAME >> zstreamdump - dump the metadata in a ZFS send stream >> >> SYNOPSIS >> zstreamdump [-vC] >> >> DESCRIPTION >> The zstreamdump command reads a ZFS send stream from stdin and >> prints out selected fields from the metadata to stdout. By >> default, it also validates the checksums for each of the dataset >> streams embedded in the overall send stream. A summary of the >> stream contents is printed at the end. >> >> OPTIONS >> The following options are supported: >> >> -v Verbose mode. All records are dumped. Default is to >> only dump the metadata from the BEGIN and END records. >> >> -C Suppress the validation of checksums. Causes the tool to >> run faster. >> > > It'd be nice if zfs recv could do this too, no? Alternatively, it'd be > nice if there was a way to slot zstreamdump into a zfs send | ... | zfs > recv pipe. E.g., an option to zstreamdump to send its output to a file > or to stderr, passing the stream through to stdout for piping elsewhere. > > This is a good idea, but I'd rather leave it as is. This is just a rather simple and crude dumping tool. I don't want anyone assuming that this is more of a 'stream verification' tool than it really is.
lori