From owner-freebsd-current@FreeBSD.ORG Sun Jun 22 22:01:55 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C56711065707; Sun, 22 Jun 2008 22:01:55 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 82B1D8FC13; Sun, 22 Jun 2008 22:01:55 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KAXd3-0004z5-5y; Mon, 23 Jun 2008 00:01:45 +0200 Message-ID: <485ECBC5.3090002@FreeBSD.org> Date: Mon, 23 Jun 2008 00:01:41 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080610) MIME-Version: 1.0 To: Tim Kientzle References: <485A9E7E.6050703@FreeBSD.org> <485B3F08.4010207@freebsd.org> <485B7300.3070405@FreeBSD.org> <485D42C2.2000000@freebsd.org> In-Reply-To: <485D42C2.2000000@freebsd.org> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: Doug Barton , FreeBSD Current Subject: Re: cpio -l fails to revert to copy-mode 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: Sun, 22 Jun 2008 22:01:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Tim Kientzle wrote: |> |> ~> cpio -dumpl /tmp/ |> |> test |> |> cpio: Can't create '/tmp/test': Cross-device link: Cross-device link |> | |> | Try the following patch ... |> |> .... that doesn't seem to work. |> |> The file is created on the target directory, but it's empty... | | I just committed a fix that seems to fully address | this. Hi, the diff looks OK to me. I was hacking something similar, and trying to understand how to get back to the previous state if set_hardlink / clone failed. To clone the entry is a smart solution :) | Let me know if you see anything else. I'll test and let you know, but it seems fine to me. Thanks! | | Tim - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkhey8QACgkQwMJqmJVx944UwACdG5d1bdwITCz8SjknCBaa7swI 3qYAoMlPlqrK67EccS7LbsdtcYmPQZHa =gFvN -----END PGP SIGNATURE-----