From owner-freebsd-bugs  Fri Aug  7 00:58:47 1998
Return-Path: <owner-freebsd-bugs@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id AAA21428
          for freebsd-bugs-outgoing; Fri, 7 Aug 1998 00:58:47 -0700 (PDT)
          (envelope-from owner-freebsd-bugs@FreeBSD.ORG)
Received: from amanda.qmpgmc.ac.uk ([194.81.5.1])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA21396
          for <bugs@freebsd.org>; Fri, 7 Aug 1998 00:58:30 -0700 (PDT)
          (envelope-from gquinlan@qmpgmc.ac.uk)
Received:  from dns0.qmpgmc.ac.uk by amanda.qmpgmc.ac.uk (UUNET Amanda using sendmail V8.9.1)
	id IAA01701; Fri, 7 Aug 1998 08:56:04 +0100 (BST)
Received:  from greg.qmpgmc.ac.uk (haem_pc) by dns0.qmpgmc.ac.uk (5.x/QMPGMC simple 1.27)
	id AA10113; Fri, 7 Aug 1998 09:07:57 +0100
Reply-To: "Greg Quinlan" <gquinlan@qmpgmc.ac.uk>
From: "Greg Quinlan" <gquinlan@qmpgmc.ac.uk>
To: "John Polstra" <jdp@polstra.com>
Cc: <bugs@FreeBSD.ORG>
Subject: Re: CPIO -i (into oblivion your archive)
Date: Fri, 7 Aug 1998 08:57:34 +0100
Message-Id: <01bdc1d9$098950e0$380051c2@greg.qmpgmc.ac.uk>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-Msmail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-Mimeole: Produced By Microsoft MimeOLE V4.71.1712.3
Sender: owner-freebsd-bugs@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org


-----Original Message-----
From: John Polstra <jdp@polstra.com>
To: gquinlan@qmpgmc.ac.uk <gquinlan@qmpgmc.ac.uk>
Cc: bugs@freebsd.org <bugs@freebsd.org>
Date: 06 August 1998 22:48
Subject: Re: CPIO -i (into oblivion your archive)


>In article <01bdc140$784509a0$380051c2@greg.qmpgmc.ac.uk>,
>Greg Quinlan <gquinlan@qmpgmc.ac.uk> wrote:
>> 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)
>
>Not true.  The find command and the cpio command run simultaneously,
>not in sequence left to right.  Cpio easily could have created NEW
>before find had finished (or even started) scanning the current
>working directory.  And that's what it did, in this case.
>
>>     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,
>
>The find command does not work alphabetically.
>
>Also, unrelated to this problem: it is best to use "find -d" as
>recommended in the cpio manual page.

Are you talking about this original command!

# cpio -idumBI NEW

Or the non existent -d option in the cpio -i command!

:)

>--
>   John Polstra                                       jdp@polstra.com
>   John D. Polstra & Co., Inc.                Seattle, Washington USA
>   "Self-knowledge is always bad news."                 -- John Barth
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message