Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site aphasia.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!cybvax0!frog!aphasia!gww From: gww@aphasia.UUCP (George Williams) Newsgroups: net.unix-wizards Subject: Re: Re: dump(8) verification? Message-ID: <324@aphasia.UUCP> Date: Sun, 13-Oct-85 17:09:17 EDT Article-I.D.: aphasia.324 Posted: Sun Oct 13 17:09:17 1985 Date-Received: Wed, 16-Oct-85 05:29:43 EDT References: <2054@brl-tgr.ARPA> Organization: Green Hills Software, Pasadena, CA Lines: 21 > > has anyone hacked dump to perform a verify pass on the data dumped? > > There are several levels of "verify" that one might want: > > [1] Read the tape end-to-end just to see if read() returns any errors. > > [2] Record the checksum of each block written, read the tape, compute > the checksums of the blocks read, and compare. > > [3] After each tape, repeat pass IV with the tape write() replaced > with a read(), and compare with the disk data. Under VMS the magtape driver has a write with verify operation that its backup uses, this could easily be implemented in user code by doing a write, backing up, doing a read, and then comparing the written buffer with the read one. Simple, no need to worry about changing filesystems. Unfortunately slow too. It will at least double the tape IO time (and make a streaming tape drive stop streaming). I think this might fit in as 2.5 above.