From owner-freebsd-questions@FreeBSD.ORG Sun Dec 26 23:08:32 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04C4C106564A for ; Sun, 26 Dec 2010 23:08:32 +0000 (UTC) (envelope-from carlj@peak.org) Received: from redcondor1.peak.org (redcondor1.peak.org [69.59.192.54]) by mx1.freebsd.org (Postfix) with ESMTP id CAF4E8FC08 for ; Sun, 26 Dec 2010 23:08:31 +0000 (UTC) Received: from peak-mail-gateway.peak.org ([69.59.192.41]) by redcondor1.peak.org ({e03e86cd-14ae-47ce-9578-3c080ce9c462}) via TCP (outbound) with ESMTP id 20101226225516920 for ; Sun, 26 Dec 2010 22:55:16 +0000 X-RC-FROM: X-RC-RCPT: Received: from oak.localnet (207.55.91.159.peak.org [207.55.91.159] (may be forged)) by peak-mail-gateway.peak.org (8.12.10/8.12.8) with ESMTP id oBQMtG8j009578 for ; Sun, 26 Dec 2010 14:55:16 -0800 (PST) Received: from oak.localnet (localhost [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id 9C657C25D for ; Sun, 26 Dec 2010 14:55:15 -0800 (PST) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id oBQMswee008443; Sun, 26 Dec 2010 14:54:58 -0800 (PST) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org References: <201012242042.21257.ken@mthelicon.com> <20101226210428.da2114c5.freebsd@edvax.de> Date: Sun, 26 Dec 2010 14:54:58 -0800 In-Reply-To: <20101226210428.da2114c5.freebsd@edvax.de> (Polytropon's message of "Sun, 26 Dec 2010 21:04:28 +0100") Message-ID: <87ipygdu0t.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: cpio misunderstanding? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 23:08:32 -0000 Polytropon writes: > On Sun, 26 Dec 2010 11:30:59 -0800, David Brodbeck wrote: >> On Fri, Dec 24, 2010 at 4:57 PM, Joe Kraft wrot= e: >> > OK, now I know what's going on. =C2=A0I just don't know why. =C2=A0The= immutable flag >> > was set on all these files, if you clear it cpio will happily copy the= m to >> > the new directory. >>=20 >> Does cpio attempt to preserve flags? Since the error is "could not >> create," I'm wondering if it's trying to set the same flags on the >> copy of the file and failing to do so. > > I'm not sure about that - "man cpio" doesn't give a hint > about flags. On the other hand, tar's -p option does keep > the file mode (permissions), flags and maybe ACLs intact. > > I've tried "info cpio" ouch! ouch!, but that's not a > continuous manual that allows easy searching for strings. :-( > > Some search in the /usr/src/bin subtree for the "chflags" > call revealed that it is used by the chflags binary, cp, > mv and rm commands, but no hint it is involved directly > in cpio. I had done some testing for flag support out of curiosity, and found that only cp -p, bsdtar and dump support them. Cpio, afio, gnutar, gnucp and pax do not support them. I also tested extended attributes (used for ACLs?), and only bsdtar and dump worked for them. Those results were for usf, and generally didn't transfer to zfs at all or probably other file systems. --=20 Carl Johnson carlj@peak.org