Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.unix.questions Subject: Re: How to archive several files with tar? Message-ID: <1991Jun20.091305.29642@thunder.mcrcim.mcgill.edu> Date: 20 Jun 91 09:13:05 GMT References: <626E0BEE3F3F601CC4@lure.latrobe.edu.au> <2742@root44.co.uk> Organization: McGill Research Centre for Intelligent Machines Lines: 26 In article <2742@root44.co.uk>, gwc@root.co.uk (Geoff Clare) writes: > Once tar has written out the size of the file in a header block, it > must write exactly that many bytes of data as the file's contents, > even if the file changes size. Otherwise the output tar archive will > be corrupt and unusable. Not quite. Note that the tar canister will still be usable provided only that the expected number of data blocks are present. It would not generate broken canisters - though I must agree it would be bad practice - for a tar to silently ignore file size changes which don't change the number of data blocks occupied by the file. ("data blocks" here refers to tar blocks (of 512 bytes), not anything to do with filesystem blocks.) >> I was talking about the "worst case," i.e. a poor version of tar. > I claim categorically that such a tar is broken. I agree. But *I* have certainly come up against plenty of broken software; haven't *you*? der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu