GNU bug report logs - #8419
cp -au : New hard links in source becomes new files at destination when using cp -au

Previous Next

Package: coreutils;

Reported by: Odd.Harry.Mannsverk <at> benteler-alu.com

Date: Mon, 4 Apr 2011 10:49:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #49 received at 8419 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: 8419 <at> debbugs.gnu.org
Subject: Re: bug#8419: cp -au : New hard links in source becomes new files
	at	destination when using cp -au
Date: Wed, 27 Jul 2011 10:35:14 +0100
[Message part 1 (text/plain, inline)]
On 26/07/11 14:23, Jim Meyering wrote:
> Pádraig Brady wrote:
> ...
> 
>> Note also your original test didn't fail for me on ext4 on F15.
> 

> I suspect you'll see that it's processing those two files in the reverse
> order on your system.  In case it's kernel-related, I'm using this:
>   2.6.38.8-32.fc15.x86_64
> and the disk is an SSD.

My guess here is there is inode sorting going on,
which is unstable and returning matching inodes in
a non deterministic order?

Anyway I've updated the test (attached) to try both ways.

cheers,
Pádraig.
[cp-preserve-link.diff (text/x-patch, attachment)]

This bug report was last modified 13 years and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.