tag:blogger.com,1999:blog-2441850399540300710.post322044793087844269..comments2024-02-17T03:47:06.818-08:00Comments on CraigBlog: Hard Links in Windows Do Not Update ImmediatelyCraig Anderahttp://www.blogger.com/profile/17084199593129216563noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2441850399540300710.post-11835228868996946512011-04-06T13:07:12.000-07:002011-04-06T13:07:12.000-07:00Wonder if it's related to the fact that NTFS s...Wonder if it's related to the fact that NTFS stores very small files in the MFT? Does it also happen with a large file and hard link ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-70903143387781910852009-04-09T02:52:19.000-07:002009-04-09T02:52:19.000-07:00There's a switch /h that controls which one yo...There's a switch /h that controls which one you get, actually. You'll notice I'm specifying it, indicating I want a hard link. Symbolic links don't work for crap under windows.craig-anderanoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-1958218684043773812009-04-09T00:54:57.000-07:002009-04-09T00:54:57.000-07:00mklink creates a Symbolic link, not a Hard link.
...mklink creates a <a href="http://en.wikipedia.org/wiki/Symbolic_link" rel="nofollow">Symbolic</a> link, not a <a href="http://en.wikipedia.org/wiki/Hard_link" rel="nofollow">Hard</a> link. <br /><br />That's an opposite entities.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-63360195612038466502009-02-17T21:55:47.000-08:002009-02-17T21:55:47.000-08:00Weird indeed. It's only more.com that behaves ...Weird indeed. It's only more.com that behaves that way; if you use type or notepad, the correct content is displayed.<br /><br />I tried to understand what more.com does via Process Monitor, but I'm not sure I understand what's going on. According to procmon, more doesn't even read the file? It only does a QueryDirectory, CreateFile, QueryStandardInformationFile, and CloseFile.<br /><br />Type, on the other hand, causes cmd.exe to do a ReadFile (in addition), How does more.com get the file contents without a ReadFile operation? I guess therein lies the answer about why it won't show the most recent data.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-52149604774980419232009-02-13T06:06:02.000-08:002009-02-13T06:06:02.000-08:00Wow, weird. Repro-d on Windows 7 also. Weird thing...Wow, weird. Repro-d on Windows 7 also. Weird thing is that if I use TYPE to print the file instead of MORE, you see the up-to-date content.Anonymousnoreply@blogger.com