Subject: Possible mv race for hardlinks (rhbz #1141368 )
From: Ondrej Vasik <[email-masked]>
To: CoreutilsBugs <[email-masked]>
Date: Thu, 18 Sep 2014 12:52:32 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,
as reported in https://bugzilla.redhat.com/show_bug.cgi?id=1141368 ,
there is a possible race condition in mv in the case of hardlinks.

Bug is reproducible even on ext4 filesystem (I guess it is filesystem
independent), even with the latest coreutils. There was already attempt
to fix the non-atomicity of mv for hardlinks
( http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12985 ), from
the current reproducer it looks like the fix is probably incomplete.

Regards,
       Ondrej Vasik