From owner-freebsd-current@FreeBSD.ORG Sat Aug 27 10:31:42 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03AC416A41F for ; Sat, 27 Aug 2005 10:31:42 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id AD1CA43D46 for ; Sat, 27 Aug 2005 10:31:40 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 27 Aug 2005 10:31:39 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp022) with SMTP; 27 Aug 2005 12:31:39 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: Matthew Dillon Date: Sat, 27 Aug 2005 12:31:11 +0200 User-Agent: KMail/1.8.1 References: <200508262004.54637@harrymail> <200508270523.50609@harrymail> <200508270458.j7R4wI5f076140@apollo.backplane.com> In-Reply-To: <200508270458.j7R4wI5f076140@apollo.backplane.com> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1588043.I67yfi4mi7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508271231.34470@harrymail> X-Y-GMX-Trusted: 0 Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Subject: Re: cpio and tar are loosing flags (and a panic message without trace) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 10:31:42 -0000 --nextPart1588043.I67yfi4mi7 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Samstag, 27. August 2005 06:58 CEST schrieb Matthew Dillon: > :Thank you, I know cpdup but I haven't known that it's flags aware! > :Unfortunately I need to write to a raw device, I guess there's no way > : for=3D20 cpdup without a filesystem... > : > :I guess cpio and tar really should take care about flags. Am I wrong? > : > :Thanks, > : > :=3D2DHarry > > cpio won't do it, tar won't do it, dump only does whole partitions, > cpdup is not an archiver. Hmm. > > I can think of two possibilities. First, use a MFS or VN block > device, create a filesystem, and use cpdup, then gzip the file > representing the backing store. Since the extra space in the filesystem > will contain zeros (you should make sure it does, that is), it should > compress pretty well. Second, use cpio and then do a separate 'find' or > 'ls' or something to get the chflags info and write a script that > restores the flags after unpacking. > > They are both pretty narley solutions. > > Hmm.. wait a sec... I just thought up of another possibility... take > the tar or cpio source code and modify it to also save and restore > the chflags data. It won't be a 'standard' utility any more, but it > WILL work for your needs. Call it by another name so there's no > confusion. That might be your best bet, actually. Right, and you can be sure, I had that done already if I spoke c. But if I understand you correctly, it is intended that cpio doesn't hanlde= =20 file flags? And (bsb)tar too? Then what are flags good for if no=20 application makes use of them? =46or now I think I have to be happy with my script solution, at least it=20 works. Thanks, =2Dharry > > -Matt --nextPart1588043.I67yfi4mi7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDEEEGBylq0S4AzzwRAk9jAJ9BtF55VtpB39Ac3Z0fTkzq9Nv8HwCeKxZY tIuf0zf92rpNIyaZYgUlV4A= =QCBs -----END PGP SIGNATURE----- --nextPart1588043.I67yfi4mi7--