Neke bolj hard-core računalniške reči: del 2

In pa še drugi in tudi zadnji del v seriji dveh zaporednih objav o recimo temu bolj “hard-core” računalniških zadevščinah. Torej konkretno, v tej čisto zadnji objavi, katero ravnokar berete, pa bom pisal o razlikah med navadnimi linki oz. shortcuti v Windows-ih (torej fajli z .lnk extensionom), ki v bistvu vsebujejo nekaj “meta” podatkov in t.i. “junctions”, kateri pa so v bistvu nekakšne dejanske kopije fajlov oz. direktorijev (so pa tudi nekako bolj “low-level”, pač v smislu, da delujejo na FS nivoju), o čemer sem na dolgo in široko pisal tudi v nekem topicu (aja saj res, glej tudi spodaj za link in tekst uvodnega posta) na “Ars OpenForum” forumu. No in še čisto tako kot mimogrede: v Unix OS-jih pa se tem v osnovi/principu istem rečem reče “soft” in “hard” links.

To razliko sem, kot rečeno, podrobno opisal (tudi grafično s screenshoti) v topic-u/thread-u “An interesting difference between NTFS junctions and normal links“: http://episteme.arstechnica.com/…/474002511831, ki sem ga odprl na “Ars OpenForum” forumu.

… that I’ve discovered today; you see, it’s that junctions behave more like directories of some sort compare to common Windows shortcuts/links.

As I have written in the “THE CONTEXT-MENU PRINCIPLE” entry on my website’s “[URL=http://tadej-ivan.50webs.com/principles.html]principles.html[/URL]” page, I so far used common links, for instance “[=Batch.lnk” (and “[=Cmds.lnk”, “[=Setup.lnk”) to point to the “B:\Pointers\Desktop\[=Batch.lnk” etc. directory on my RAM disk.

So when I double-clicked on one of these links when being in “\\Desktop\” virtual directory (i.e. combined All Users and “current user” desktops) I was therefore redirected to for instance “B:\Pointers\Desktop\[=Batch.lnk” directory, however, when I went “one directory up” to the directory-tree structure, I came to “B:\Pointers\Desktop\” directory on my RAM disk.

But now that I replaced those common Windows shortcuts with NTFS junctions, i.e. I tried and created a junction point under “D:\Settings\user_name\Desktop\” directory, which is, same as common shortcuts before, pointing to the directory-structure on my B:\ drive (which is as mentioned mounted as a RAM disk), in particlar to respective sub-directories of the “B:\Pointers\Desktop\” directory, and when I go one “directory up to” after first browsing into where junction leads ne, I am now directed from, for example “D:\Settings\ivanek\Desktop\[=Batch\” directory to its actual parent directory “D:\Settings\ivanek\Desktop\” (and not anymore to the “equivalent” directory on RAM disk as before)

The screenshot of “\Desktop\” with junctions:

http://img101.imageshack.us/img101/5541/junction1nd4.gif

The screenshot of “\\Desktop\” with junctions:

http://img178.imageshack.us/img178/9831/junction2dg4.gif

/IMPORTANT: Note that in the original, or should I rather say as it was before (i.e. with common Windows shortcuts/links), in the first screenshot it would be “B:\Pointers\Desktop\” directory with “[=Cmds” etc. being normal folders, while in the second screenshot it would be “\\Desktop\” virtual directory with links (i.e. files with .lnk extension) visible, rather than directories as it looks now when junctions are used instead.

shirker

Morda naj ob tej priložnosti omenim še “THE CONTEXT-MENU PRINCIPLE” sekcijo na “principles1.html“: http://tadej-ivan.50webs.com/principles1.html page-u na moji PC domači strani, katera je zelo povezana s to temo in vam resnično toplo priporočam, da si jo preberete. Ne prav dolgo nazaj pa sem sodeloval v še enem podobnem zanimivem topic-u naslovljenem “Junctions, Shortcuts, and Hard Links?“: http://episteme.arstechnica.com/…/201000534831 na “Ars OpenForum” forumu.

Tadej

Leave a Reply