Date: Thu, 6 Aug 1998 14:45:27 +0100 From: "Greg Quinlan" <gquinlan@qmpgmc.ac.uk> To: "Peter Hawkins" <peter@clari.net.au> Cc: <freebsd-bugs@FreeBSD.ORG> Subject: Re: CPIO -i (into oblivion your archive) Message-ID: <01bdc140$784509a0$380051c2@greg.qmpgmc.ac.uk>
next in thread | raw e-mail | index | archive | help
The original archive was created using the command: find . -print | cpio -ovBO NEW -HNEWC analising the command; 1. find . -print obtains a list of files in the current directory (NEW should not exist yet) 2. cpio -ovBO NEW -HNEWC create a cpio archive, verbose, large block, output to file NEW using SYSV format (which does not truncate inodes for large file systems) It is a very good possibility.... that some how before the archive was created that the file NEW existed in the current directory, but alphabetically NEW would be at the end of the archive, and there were heaps of files that came before it....(look at the size of the archive)... they were not extracted. Nope!! The extraction was broken with a CTRL-C after about 10 seconds purely to include a -v option, to list files. (as previously stated) But I will restore the file from tape backup and do the following: cpio -itBI NEW | grep NEW && echo "yes you're right" || echo "no your wrong" I'll keep you posted! -----Original Message----- From: Peter Hawkins <peter@clari.net.au> To: Greg Quinlan <gquinlan@qmpgmc.ac.uk> Cc: freebsd-bugs@freebsd.org <freebsd-bugs@freebsd.org> Date: 06 August 1998 14:02 Subject: Re: CPIO -i (into oblivion your archive) >>-rw-r--r-- 1 root wheel 138444800 Aug 1 17:44 NEW >> >>-rw-r--r-- 1 root wheel 0 Aug 1 17:41 NEW >> >>Yes I think it is very serious a bug too! > >I don't ;) > >I'd say that the modification time on your archive going backwards after the >extraction is pretty significant. Let me take a guess that the creation of >the archive took 3-4 minutes? :) What's happenned is that you created >your archive in such a way that the file 'NEW' itself is a member of its >own archive so at some point along the extraction phase, you've re-extracted >NEW over the top of itself. > >Peter > >Hilink Internet Peter Hawkins >381 Swan St Richmond, >Vic, Australia Ph: +61-3-9421 2006 Fax: +61-3-9421 2007 >http://www.hilink.com.au Peter@hilink.com.au > >FreeBSD Project: thepish@FreeBSD.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01bdc140$784509a0$380051c2>