From owner-freebsd-current@FreeBSD.ORG Wed Jul 2 06:52:05 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DBC11065671; Wed, 2 Jul 2008 06:52:05 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id A4F4D8FC1A; Wed, 2 Jul 2008 06:52:01 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.24.21.170]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m626pwWP021003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jul 2008 10:52:00 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KDwC6-0008y3-5d; Wed, 02 Jul 2008 10:51:58 +0400 From: Vladimir Grebenschikov To: Tim Kientzle In-Reply-To: <486AF561.70201@freebsd.org> References: <20080626110521.GA68764@wep4017.physik.uni-wuerzburg.de> <1214815958.3581.67.camel@localhost> <486901FB.5080308@freebsd.org> <1214842042.8768.12.camel@localhost> <4869C4C4.1050806@freebsd.org> <1214900266.1947.13.camel@localhost> <486A53AD.9090904@freebsd.org> <1214930730.1898.3.camel@localhost> <486AF561.70201@freebsd.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Wed, 02 Jul 2008 10:51:57 +0400 Message-Id: <1214981517.2513.11.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-current@freebsd.org Subject: Re: cpio -dumpl damages the files? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2008 06:52:05 -0000 On Tue, 2008-07-01 at 20:26 -0700, Tim Kientzle wrote: > Vladimir Grebenschikov wrote: > > On Tue, 2008-07-01 at 08:56 -0700, Tim Kientzle wrote: > > > >>Try adding the following to the above condition: > >> > >> && archive_entry_filetype(entry) != AE_IFLNK > > > > I guess it will work. I just wander about other AE_IF* that may not pass > > link(2). > > Perhaps cpio -dumpl should only try to hardlink regular files? I think, one need to check original cpio behaviour and do exactly as was done here. Probably some software expect, for example, same inode number after cpio -dump on, say, copied devices or like. IMHO, It is more compatibility issue. > That would be an easy change. > > Tim -- Vladimir B. Grebenschikov vova@fbsd.ru