Re: [PATCH] Add an option not to use link(src, dest) && unlink(src) when that is unreliable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/4/23 Johannes Schindelin <Johannes.Schindelin@xxxxxx>:
> Hi,
>
> On Thu, 23 Apr 2009, Alex Riesen wrote:
>
>> 2009/4/23 Johannes Schindelin <Johannes.Schindelin@xxxxxx>:
>> > -       if (link(tmpfile, filename))
>> > +       if (unreliable_hardlinks)
>> > +               ret = ~EEXIST;
>>
>> It is more like "broken_hardlinks" or even "no_hardlinks"!
>
> Wrong.  As I wrote, single-stepping (i.e. leaving enough time between
> link() and unlink()) works as expected.  So it is not even that the
> hardlinks are broken.  Just the serialization between the operations.
>

Since when does link(2) involve file _data_?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]