[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0701032003120.6871@artax.karlin.mff.cuni.cz>
Date: Wed, 3 Jan 2007 20:04:41 +0100 (CET)
From: Mikulas Patocka <mikulas@...ax.karlin.mff.cuni.cz>
To: Miklos Szeredi <miklos@...redi.hu>
Cc: matthew@....cx, pavel@....cz, bhalevy@...asas.com,
arjan@...radead.org, jaharkes@...cmu.edu,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
nfsv4@...f.org
Subject: Re: Finding hardlinks
On Wed, 3 Jan 2007, Miklos Szeredi wrote:
>>> High probability is all you have. Cosmic radiation hitting your
>>> computer will more likly cause problems, than colliding 64bit inode
>>> numbers ;)
>>
>> Some of us have machines designed to cope with cosmic rays, and would be
>> unimpressed with a decrease in reliability.
>
> With the suggested samefile() interface you'd get a failure with just
> about 100% reliability for any application which needs to compare a
> more than a few files. The fact is open files are _very_ expensive,
> no wonder they are limited in various ways.
>
> What should 'tar' do when it runs out of open files, while searching
> for hardlinks? Should it just give up? Then the samefile() interface
> would be _less_ reliable than the st_ino one by a significant margin.
You could do samefile() for paths --- as for races --- it doesn't matter
in this scenario, it is no more racy than stat or lstat.
Mikulas
> Miklos
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists