Hard Link Oddity

General discussion related to "Everything".
Post Reply
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Hard Link Oddity

Post by therube »

Hard Link Oddity

just throwing it out here

created a hard link of a file
renamed (the dropped link) from "name" to "xxx"
performed a test on xxx
completed
went to delete the link, xxx, & it would not, in use or something or the other
- unexpected, it should have deleted
did some other stuff
... not exactly sure ...
came back to it, this time the link deleted, xxx
orig file then showed a shortcut icon
- unexpected

deleted original file, file
file is gone (in Windows Explorer)
still seen in Everything ?
a new Everything window also sees it, but without the shortcut icon

?

Win7
794b x86
Link Shell Extension (LSE) 3.8.6.7


(I've never been comfortable with hard links in Windows, & might have something screwy with my LSE install...?)
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Hard Link Oddity

Post by void »

You are probably hitting the current hard link monitoring limitation with Everything.

Everything will only pick up changes to the first hard link file name in the Master File Table.

Forcing a rebuild should rescan all hard links.
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Hard Link Oddity

Post by therube »

went to delete the link, xxx, & it would not, in use or something or the other
- unexpected, it should have deleted
Maybe not unexpected.
Maybe what is unexpected is the way Windows deals with links (compared to say, UNIX).

Yep, that's it.
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Hard Link Oddity

Post by therube »

You are probably hitting the current hard link monitoring limitation with Everything.
OK, that must be it.
When I search for "xxx", I can find the file, but when I search for "file", it is not found.

That can be messy, potentially.


Rarely use hardlinks in Windows, but now messing with some long file names, sometimes easier to make a link of the "file" rename it something short, "xxx", then do my work with xxx, deleting xxx when done, expecting "file" to persist - which it may or may not - in a way.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Hard Link Oddity

Post by void »

I will probably have to monitor the FRN for each file in Everything, or re-read the MFT for all the effected filenames for a USN Journal change (which is basically free as it's cached if it's recent).
Post Reply