Jason
2009-10-21 22:17:01 UTC
Hello,
It seems to me Hard Links are broken in a very basic way. A Hard link is a
entry to an exist file on the same disk. It is just a pointer. One should be
able to delete a link even if the file is open via another link. Current this
does not happen. For example.
1) Make a text file
2) create a number of Hard link to it from different places.
3) Then open that file and keep it open. I did this with python shell using
open(), however any other way should work. a simple C program, whatever. You
just have to make sure the file handle is open
4) try to rename or delete any of the other Hard links you made
When doing 4) it will fail saying the file is being used by another process.
Technically it should allow the removal of the file or renaming of the link
as this is a independent action.
Is this a known issue. Would it ever be fixed?
Thanks
Jason
It seems to me Hard Links are broken in a very basic way. A Hard link is a
entry to an exist file on the same disk. It is just a pointer. One should be
able to delete a link even if the file is open via another link. Current this
does not happen. For example.
1) Make a text file
2) create a number of Hard link to it from different places.
3) Then open that file and keep it open. I did this with python shell using
open(), however any other way should work. a simple C program, whatever. You
just have to make sure the file handle is open
4) try to rename or delete any of the other Hard links you made
When doing 4) it will fail saying the file is being used by another process.
Technically it should allow the removal of the file or renaming of the link
as this is a independent action.
Is this a known issue. Would it ever be fixed?
Thanks
Jason