darcs

Issue 1173 support hard links on Windows

Title support hard links on Windows
Priority feature Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, eivuokko, jaredj, kirby, kowey, thorkilnaur, twb, wglozer
Assigned To kirby
Topics Windows

Created on 2008-10-26.07:43:11 by kowey, last changed 2009-08-27.14:20:12 by admin.

Messages
msg6464 (view) Author: kowey Date: 2008-10-26.07:43:07
Note that Simon Marlow had submitted a patch around 2004 that added hard link
support, but it turned out to be a bit overzealous.  The patch in question
modified the code which is used by darcs optimize --relink (I think) and was
overly optimistic about determining if two files really were the same and could
be replaced by a hard link.

On the other hand, there are cases where darcs /knows/ it wants a hardlink, and
if the underlying filesystem supports them -- apparently NTFS does -- we should
have them
msg7526 (view) Author: twb Date: 2009-03-28.12:21:40
I guess this should be assigned to Salvatore?
msg7529 (view) Author: kowey Date: 2009-03-28.13:05:51
Salvatore, would you be interested in taking this on?  I hope finding the patch
won't be too difficult.
msg7801 (view) Author: kirby Date: 2009-05-13.01:12:51
The following patch updated the status of issue1173 to be resolved:

* Resolve issue1173: support hard links on NTFS. 
Ignore-this: 1180c0031c5e689c431ab7b0ac29d344

There are some limitations:
- I didn't modify maybe_relink.c, so it doesn't work in darcs optimize --relink.
- It works breaks compatibility on Windows versions before Windows 2000.
- It works only on NTFS, but fails gracefully.
History
Date User Action Args
2008-10-26 07:43:11koweycreate
2009-03-28 12:21:42twbsetstatus: unread -> unknown
nosy: + twb
messages: + msg7526
2009-03-28 13:05:54koweysetnosy: + kirby
messages: + msg7529
assignedto: kirby
2009-05-13 01:12:55kirbysetstatus: unknown -> resolved
nosy: kowey, wglozer, eivuokko, dagit, simon, twb, thorkilnaur, jaredj, dmitry.kurochkin, kirby
messages: + msg7801
2009-08-10 23:49:27adminsetnosy: - dagit
2009-08-25 17:32:37adminsetnosy: + darcs-devel, - simon
2009-08-27 14:20:12adminsetnosy: kowey, wglozer, darcs-devel, eivuokko, twb, thorkilnaur, jaredj, dmitry.kurochkin, kirby