[Req] Hardlinks & compare by content

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

[Req] Hardlinks & compare by content

Post by *XPEHOPE3KA »

Why does it take too much time to compare by content two hard links to the same data on disk? Can't it be checked before comparison whether compared files are hardlinks to each other?
If this check is implemented there would be an easy way to check whether the two files are hardlinks pointing to the same data. And no other programs would be needed.
What do you think? Is that easy to check?
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I don't think. I know. It is easy.

Also, this is special case. If I was the author, I wouldn't handle it also.

[EDIT]
But if I think a little bit more about this, I must say I am wrong.
Hard links are file system feature. As such it must be handled along with all other features, like alternate streams and such... TC apperently doesn't handle them all.
Last edited by majkinetor ! on 2006-07-04, 11:12 UTC, edited 1 time in total.
Habemus majkam!
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Why wouldn't you handle it?
BTW, it's not such a special case.

Code: Select all

Begin {Edit}
Ah, those editing race conditions :) ;
End; {Edit}
An addition to request: if compared files are actually hardlinks pointing to the same data, then TC should say they are such hardlinks, not just say they are equal to each other.
Post Reply