Date: Thu, 6 Aug 1998 15:18:41 +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: <01bdc145$1cbb8f00$380051c2@greg.qmpgmc.ac.uk>
next in thread | raw e-mail | index | archive | help
you're right I should have realised. # ls -l total 4440 -rw-r--r-- 1 root wheel 0 Aug 1 17:41 NEW drwxr-xr-x 8 root wheel 512 Aug 6 14:57 apache_1.3.0 drwxr-xr-x 14 root wheel 512 May 11 05:19 bind-4.9.7 drwxr-xr-x 6 root wheel 7168 Aug 6 14:59 gcc-2.8.1 drwxr-xr-x 2 root wheel 512 Aug 6 15:05 patches drwxr-sr-x 20 root wheel 3584 Aug 6 15:02 perl5.004_04 drwxr-xr-x 15 root wheel 4096 Aug 6 15:02 php-3.0.1 drwxr-xr-x 6 root wheel 512 Aug 6 14:58 samba-1.9.18p8 drwxr-xr-x 14 root wheel 512 Aug 6 15:06 sendmail-8.9.1 drwxr-xr-x 9 root wheel 512 Aug 6 14:58 squid-1.1.21 drwxr-xr-x 4 root wheel 4096 Aug 6 15:00 ssh-1.2.26 drwxr-xr-x 2 root wheel 512 Aug 6 15:01 stalbsd-2.0.0 drwxr-xr-x 2 root wheel 512 Aug 6 15:06 telprox-plus.0.7 # -----Original Message----- From: Greg Quinlan <gquinlan@qmpgmc.ac.uk> To: Peter Hawkins <peter@clari.net.au> Cc: freebsd-bugs@freebsd.org <freebsd-bugs@freebsd.org> Date: 06 August 1998 14:45 Subject: Re: CPIO -i (into oblivion your archive) >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?01bdc145$1cbb8f00$380051c2>
