Slashdot Mirror


Vista To Get Symlinks?

TheRealSlimShady writes "According to a post by Ward Ralston on the Windows server team's weblog, Vista server is to get symlinks as part of the SMB2 protocol." From the post: "In Vista/Longhorn server, the file system (NTFS) will start supporting a new filesystem object (examples of existing filesystem objects are files, folders etc.). This new object is a symbolic link. Think of a symbolic link as a pointer to another file system object (it can be a file, folder, shortcut or another symbolic link)."

112 of 565 comments (clear)

  1. Duplication... by Erik_the_Awful · · Score: 5, Insightful

    ...is a compliment of the highest form.

    1. Re:Duplication... by thatshortkid · · Score: 2, Funny

      wow. so the editors must really love every 3rd article, huh?

      --
      The IRS is the one organization that you don't want to fuck with. Remember, these are the guys who took down Al Capone.
    2. Re:Duplication... by jallen02 · · Score: 2

      And to add to the humor you are duplicating a theme that will get at least one hundred and eleventy one mod points today.

    3. Re:Duplication... by Lxy · · Score: 2, Funny

      So Slashdot doesn't post dupes, they post compliments?

      --

      There is no reasonable defense against an idiot with an agenda
      :wq
  2. Yet more great by Skiron · · Score: 5, Funny

    innovation from MS.

    1. Re:Yet more great by Anonymous Coward · · Score: 5, Funny

      Yea, they better hurry up and patent it before those unix hippies copy it.

    2. Re:Yet more great by tpgp · · Score: 2, Informative

      Its too late....

      Five years to late

      --
      My pics.
    3. Re:Yet more great by kd3bj · · Score: 5, Funny

      What's next?

      Forward slashes?

      Text files without ^m's?

    4. Re:Yet more great by Anonymous Coward · · Score: 5, Funny

      all your symbolic links are belong to SCO

    5. Re:Yet more great by trezor · · Score: 2, Funny

      Now that would be demanding a little bit much in so short time, wouldn't it?

      We will have to wait at least until the avarage workstation has 30GHz dualcore CPUs and at least 10GBs of ram.

      --
      Not Buzzword 2.0 compliant. Please speak english.
    6. Re:Yet more great by perdelucena · · Score: 3, Funny

      What else can we expect from MS, maybe tabs on IE? Oh wait...

  3. Symbolic links? by el_womble · · Score: 3, Funny

    What a fantastic idea! Why didn't you UNIX guys think of that whilst you were eating ambrosia up in your ivory tower eh? ... Oh...

    Microsoft 'innovating' once again, and giving the people what the want (10 years after everyone else). Go Redmond!

    --
    Scared of flying, pointy things snce 1979!
    1. Re:Symbolic links? by m4dm4n · · Score: 5, Insightful

      I don't believe that the word innovate was used anywhere except here on slashdot. While it's been a long time coming, the blog entry that originally posted this admits that all these additions are addressing limitations in SMB.

      It's not like Linux never copied an idea from another OS, yet it seems MS is not allowed to add a feature unless they thought of it themselves.

      But then I guess everyone here gets a bit bitter when there is one less thing to complain about MS.

    2. Re:Symbolic links? by ben_rh · · Score: 3, Insightful

      It's actually closer to 40 years.. but yeah :)

    3. Re:Symbolic links? by ben_rh · · Score: 2, Insightful

      I think you're right to an extent, but the innovation comments are intended to be more general.

      The density of the word 'innovation' in things MS say is directly proportional to how scared they are of the thing they're talking about.

    4. Re:Symbolic links? by Anonymous Coward · · Score: 2, Insightful

      Microsoft are the ones always harping on about innovation, we like to take these opportunities to remind people that most things comming out of Redmond (other than the foul stench of bullshit) were copied or acquired. Microsoft couldn't innovate it's way out of a paper bag, they are a bad joke and have even coined their own punchline. Now that's what I call innovation!

    5. Re:Symbolic links? by richie2000 · · Score: 2, Insightful
      Seriously, what are they supposed to do?

      Stop using the slogan "Freedom to innovate". Seriously. They have no right to use it -- they are against freedom and they do not innovate.

      --
      Money for nothing, pix for free
    6. Re:Symbolic links? by b100dian · · Score: 5, Informative

      NTFS already had symlinks. Just that Explorer and cmd.exe didn't used the feature. But if created (with a third party tool) they are properly used.
      Also, FAT had initially a flag indicating that an object is not a file, nor a folder, but a symlink. Unfortunately, the attribute got later used as a "Long Filename Part no. X" flag... talk about bad design..

      --
      gtkaml.org
    7. Re:Symbolic links? by Anonymous Coward · · Score: 3, Informative

      "Microsoft 'innovating' once again" - by el_womble (779715) on Monday October 31, @06:41AM

      And, more "F.U.D." attempts by the 'pro-Unix/Linux/BSD' brothers @ "/.", as-per-usual... or, the usual "partially informed/incomplete data spouting rumor mill" is @ work here again, as-per-usual.

      Take a read, so you are better informed:

      http://www.sysinternals.com/Utilities/Junction.htm l

      -----

      Win2K's version of NTFS supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer.

      For example, if the directory D:\SYMLINK specified C:\WINNT\SYSTEM32 as its target, then an application accessing D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS.

      Directory symbolic links are known as NTFS junctions in Win2K.

      Unfortunately, Win2K comes with no tools for creating junctions - you have to purchase the Win2K Resource Kit, which comes the linkd program for creating junctions.

      I therefore decided to write my own junction-creating tool: Junction.

      Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points.

      Reparse points are the mechanism on which NTFS junctions are based, and they are used by Win2K's Remote Storage Service (RSS), as well as volume mount points.

      If you want to view reparse information, the usage for Junction is the following:

      Usage: junction [-s]
      -s
      Recurse subdirectories.

      If you want to create or delete a junction, use Junction like this:

      Usage: junction [-d] []

      To delete a junction specify the -d switch and the junction name.

      -----

      (NT's been there, & done that, ages ago already for DIRECTORY SYMBOLIC LINKS @ least... + the resource kit tools mentioned above, OR the tools offered by Dr. Russinovich & Bryce Cogswell @ SysInternals do the job in this matter as well as alternate methods of using what's already been in NTFS for ages now)

      APK

      P.S.=> "and giving the people what the want (10 years after everyone else). Go Redmond!" - by el_womble (779715) on Monday October 31, @06:41AM

      They surely have, now, haven't they & for the last 12 years or more @ desktop/laptop levels up to Server OS + backoffice/industrial strength tools to match their Office Suite offerings + development tools?

      So, with that statement of yours, I must agree:

      Plus, 95%++ of the world's computers running Windows NT-based Operating Systems by now (e.g.-> NT/2000/XP/Server 2003), which run tons more hardwares than UNIX of any type does, + with more peripheral surrounding softwares for any imaginable purpose (thus, Win32 Os are far more ubiquitous + flexible) can't be TOO far wrong to second your statement now, can they? apk

    8. Re:Symbolic links? by Trelane · · Score: 2, Informative
      Symlinks or hard links?

      There is a huge difference between the two: a hard link is filesystem-level (simply a second entry in a directory to a file); a symlink is OS-level. One cannot cross filesystem boundaries (being filesystem-level), the other can.

      --

      --
      Given enough personal experience, all stereotypes are shallow.
    9. Re:Symbolic links? by SonicBurst · · Score: 3, Informative

      I don't know where you got your info from, but plugging in a hotswap disk does NOT require a reboot, and hasn't since at least Windows 2000, but probably even NT 4. Open computer management, go to disk configuration, and click "rescan disks". It'll detect the drive just fine.

      --

      Geek used to be a four letter word. Now it's a six-figure one.
    10. Re:Symbolic links? by masklinn · · Score: 3, Informative

      Windows 2k and above have both hardlinks (which are available via standard tools) as well as symlinks, restricted to directories only and not available via the OS' tools.

      Check Juctions for the creation and handling of symlinks.

      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    11. Re:Symbolic links? by aichpvee · · Score: 2, Insightful

      I think they originally meant that slogan to be a comparison to windows. You know, more along the lines of "Freedom to innovate OR use microsoft products."

      --
      The Farewell Tour II
    12. Re:Symbolic links? by masklinn · · Score: 2, Informative
      The one fact you forgot to add that makes MS's current implementation poor is that the link becomes a drive letter, and how many in total can you have with Windows?

      That would be really funny if it was true.

      It is, alas, false, and junctions do not become "a drive letter", they are virtual folders akin to Linux' directory symlinks (since junctions sadly don't handle the file level but only the directory one).

      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    13. Re:Symbolic links? by mallardtheduck · · Score: 2, Informative

      95%++ of the world's computers running Windows NT-based Operating Systems by now

      Actually, 95% of the world's computers are embedded microproccessors, most of which don't even run anything classified as an "operating system", let alone windows. I expect that what you meant was that 95% of PC's are running Windows NT based operating systems. I doubt that, there are still plenty of older, pre-XP home machines in use today, so probably as many as 15-20% of PC's are running Windows 9x-based operating systems. You could have just said 95% of the world's PC's are running Win32-based operating systems, and you probably would have been correct.

  4. Allow me to be the first to say... by Noryungi · · Score: 5, Funny

    Welcome to the 1980s, Microsoft.

    (Who was it who said: 'Those who don't know UNIX are condemned to recreate it. Badly.' ?)

    --
    The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
    1. Re:Allow me to be the first to say... by rolfwind · · Score: 3, Insightful

      I'm sure that's what those Plan9 folks are thinking of the Linux/BSD camp^_^

    2. Re:Allow me to be the first to say... by WWWWolf · · Score: 5, Informative
      (Who was it who said: 'Those who don't know UNIX are condemned to recreate it. Badly.' ?)

      $ fortune -m 'condemned'
      ...

      Those who do not understand Unix are condemned to reinvent it, poorly. -- Henry Spencer

      And those who don't understand fortune(1) are condemned to ask about quotes =)

    3. Re:Allow me to be the first to say... by mrogers · · Score: 5, Insightful
      That after all those years Microsoft still has drive letters with a dirty hack (my desktop / my computer /whatever) to 'unify' them, has only broken symlink functionality (shortcuts), and only now mentiones symlinks is quite pathetic, if you ask me.

      Backward compatibility is absolutely indispensable for Microsoft - the only reason it's still the market leader after all the lawsuits, bad publicity and downright talented competition of the last few years is because nobody wants to break compatibility with their existing software, documents, networks and hardware. Microsoft understands this, and while I'm sure it drives a lot of MS developers insane, backward compatibility is always given top priority, even if it makes the architecture horribly ugly and illogical.

      (If you want to see the Unix equivalent, read the chapter on terminal I/O in Stevens' Advanced Programming for the UNIX Environment. There are backward compatibility hacks in there that are so ugly you'll wish you'd been born blind.)

  5. OMG by Mateito · · Score: 2, Funny

    This is a joke, right?

  6. Obligatory quote by OscarBlock · · Score: 3, Funny

    Those who don't understand UNIX are doomed to reinvent it, poorly." --Henry Spencer

  7. Different than shortcuts by 246o1 · · Score: 5, Informative
    From TFA, before it gets slashdotted and someone asks:
    Well, a shortcut will only work when used from within the Windows shell, it is a construct of the shell, and other apps don't understand short-cuts. To other apps, short-cuts look just like a file. With symbolic links, this concept is taken and is implemented within the file system. Apps when they open a symbolic link will now open the target by default (i.e. what the link points to), unless they explicitly ask for the symbolic link itself to be opened.
    --
    Although the moon is smaller than the earth, it is farther away.
    1. Re:Different than shortcuts by quantum+bit · · Score: 2, Informative

      OPEN(2) FreeBSD System Calls Manual OPEN(2)

      NAME
                open -- open or create a file for reading or writing

      LIBRARY
                Standard C Library (libc, -lc)

      SYNOPSIS
                #include <fcntl.h>

                int
                open(const char *path, int flags, ...);

                The flags specified are formed by or'ing the following values
                            O_NOFOLLOW do not follow symlinks

    2. Re:Different than shortcuts by interiot · · Score: 2, Insightful
      Say you have a 1000-byte file called MyDocument1.doc.vistalnk on your desktop. It points to the real MyDocument1.doc somewhere else on your system.

      If you open the file up in XP, Word will be very confused, and if anything, display the 1000-byte gibberish. In Vista, Word (and Outlook, and everything else) will automatically do the right thing, and read the contents of MyDocument1.doc without having to change any code in Word/Outlook/etc.

      Since it's aan automatic part of the operating system, all previous and all future programs will support it. Whereas in XP, only a few small things like the executable launcher try to undrestand .lnk files.

  8. "Virtual folders", I believe it's used for by Sockatume · · Score: 5, Informative

    Some of the Vista previews have shown off things dubbed "virtual folders" which work in a similar way to browsing by artist or album in the current version of Media Player. You can manipulate the files like it's a normal folder window, yet the actual files may be scattered over different folders and drives. Presumably it's an effort to make managing large amounts of music/video outside of Media Player easier. They almost certainly use these symbolic links. They're a bit different from shortcuts.

    --
    No kidding!!! What do you say at this point?
    1. Re:"Virtual folders", I believe it's used for by Hakubi_Washu · · Score: 4, Informative

      Nope, those virtual folders are actually search-parameters saved in a xml-format, which is known already. Paul gets them wrong or at least gives a shitty explanation (he says these xml files store the results, but that wouldn't be dynamic as he claims as well), instead you click 'em and the search is fired up using the stored parameters, e.g. *.mp3

  9. Security risk? by fm2503 · · Score: 5, Interesting

    From TFA:

    "Now why is this relevant to the SMB2 protocol? This is because, for symbolic links to behave correctly, they should be interpreted on the client side of a file sharing protocol (otherwise this can lead to security holes). "

    Is it not rather:

    "If the client does not interpret symbolic links then nothing will work?"

    1. Re:Security risk? by IWannaBeAnAC · · Score: 4, Interesting
      Presumably the security problem has something to do with symlinks that point to a file that the client does not have permission to read. If the server handles symlinks in a naive way, then on a request to open() a symlink it would open the target file (which is the usual behaviour of opening a symlink), but potentially with the wrong permissions.

      If the server did no special behaviour for symlinks then they would appear to the client as a duplicate of the symlink target, an ordinary file.

  10. NTFS already does it since Win2K ! by Anonymous Coward · · Score: 5, Informative

    See here :

    http://www.sysinternals.com/Utilities/Junction.htm l

    Any feature new in Vista but the look and feel ? ;-)

    What about booting the OS with less than about 20 services started and 256MB of memory used ? :(

    1. Re:NTFS already does it since Win2K ! by soikoban · · Score: 3, Informative

      This was even posted on slashdot five years ago:
      http://slashdot.org/article.pl?sid=00/03/02/083321 1&tid=109
      The links in the summary are broken though.

    2. Re:NTFS already does it since Win2K ! by RoverDaddy · · Score: 3, Insightful

      Doesn't really matter if Win2K could do it if the feature was buried and the user had no way to use it. Also, Sys Internals seems to imply that only directories may be linked, not specific files. Not quite the same thing.
      I've been wishing Windows would support this elemental feature for a long time now. I would have used it to create a directory tree with the structure I wanted to burn on CD, without having to move all the actual files around. The CD burning software I've tried doesn't understand shortcuts either. Of course you can usually create the tree you want within the burning app. But then, you have to save it in their proprietary format, and some programs I've used manage to trash that info too.

      --
      RETURN without GOSUB in line 1050
    3. Re:NTFS already does it since Win2K ! by DarkEdgeX · · Score: 2, Informative

      If junctions only work on directories then you'd want to look at the CreateHardLink API (available in Win2K/XP/2003) which works only on files. You can create up to 1023 links to a single file using this API.

      --
      All I know about Bush is I had a good job when Clinton was president.
    4. Re:NTFS already does it since Win2K ! by TeXMaster · · Score: 5, Informative
      Junction points on NTFS are neither symlinks nor hardlinks: they are mountpoints for system volumes (partitions). Basically, they are the way NT deals with the Unix way of doing things (instead of the DOS way of assigning letters to volumes).

      NTFS does support hardlinks and, as the developers of the NTFS driver for Linux recently discovered (see details in this thread), it also supports symlinks, provided Microsoft Services For Unix are installed.

      The important part of all this, is, I think, that open source tools ranging from the linux fs drivers (ntfs and cifs/smb) to the cygwin stuff should get updated and start managing the thing the way MS does it (on MS filesystems, of course).

      --
      "I'm never quite so stupid as when I'm being smart" (Linus van Pelt)
    5. Re:NTFS already does it since Win2K ! by astrosmash · · Score: 4, Insightful

      Rumors about real symbolic links in Windows have been swirling since before Win2000.

      The problem with Junction.exe is that the Explorer shell and all other applications do not differentiate between links and real folders. That is, applications never expect two different paths to point to the same object, which makes Junctions much less useful in practice. For example, file search results take much longer to complete and display duplicate results. I believe that is why they initially limited Junctions to just directories.

      Now, if Vista got persistent file handles, that would be interesting.

      --
      ENDUT! HOCH HECH!
    6. Re:NTFS already does it since Win2K ! by IWannaBeAnAC · · Score: 2, Informative
      Hard links are different to soft links (symlinks). Hard links are two (or more) files that refer to exactly the same physical storage; rather than one file being a link to the other file, both links are precisely equivalent. This is completely transparent - multiply-linked files are indistinguishable from singly-linked files.

      Soft links are represented as a special text file that contains the name of the linked file. The default behavior on opening a soft link is to redirect and open the target file instead. Alternatively, you can use readlink() to get the contents of the soft link directly.

      Unix has had both kinds of link for aeons.

    7. Re:NTFS already does it since Win2K ! by cuyler · · Score: 2, Insightful

      They aren't just mount points for volumes. You can mount a volume to multiple places with junctions. You can also use a junction to link C:\temp\directory to X:\anotherplace\asubdir\destination.

      The pain (or feature) with junctions is the source directory doesn't have to be empty. As a System Administrator in the Managed Storage group this can be an incredible pain. If the destination points to another drive you don't want to include it in the backups since things will get backed up twice (since the os would see C:\temp\directory as on the C:\ drive and on the X:\ drive) so the best way to handle that is exclude it from the C:\ drive backup. The problem with junctions is if there were files in C:\temp\directory before you linked it to the directory on the X:\ drive you will see a bunch of files - some on C:\ and some on the mount point.

    8. Re:NTFS already does it since Win2K ! by Nurgled · · Score: 3, Interesting

      Even more annoyingly, if you "delete" a junction point directory through the shell it will do a recursive delete just as it would for a folder, thus deleting all of the contents of the junction's target directory. If you set up the junction point then this is expected, but if it's someone else who isn't familiar with the concept they can easily mistake it for a bunch of duplicate files (since the shell displays them identically, and gives misleading disk usage information) and delete both copies.

    9. Re:NTFS already does it since Win2K ! by RhettLivingston · · Score: 2, Informative

      Junction points, at least the ones created by the utility referred to, are in fact hard directory links. You can mount any directory from any NTFS volume as a directory at any point in any NTFS volume's tree, not just whole partitions.

      I have used junction.exe many times to save a lot of reorganization by mounting a directory from one volume onto another when the other is full and there is no unallocated space to add. For example, you can move directories from "c:\Program Files" to "d:\Program Files" and then create junctions under "c:\program files" to the ones on d:. This will result in the associated programs running as if they had never been moved without any reinstallation.

  11. No. by Virak · · Score: 5, Informative

    Shortcuts are just ordinary files that, when opened, open the location it points to. A symlink, however, allows you transparently access it as though it were the actual file/folder; "C:\Shortcut to porn\hot lesbian action.jpg" won't work, whereas "C:\Symlink to porn\hot lesbian action.jpg" will. See the Wikipedia entry, for more info.

    1. Re:No. by nick8325 · · Score: 2, Informative

      Well, there are reparse points (http://msdn.microsoft.com/library/en-us/fileio/fs /reparse_points.asp), which can act like symbolic links, but they only work on directories. There seems to be a program called Junction Link Magic here to make them.

  12. Re:Ah yes by strider44 · · Score: 4, Interesting

    Perhaps you should of read the article, especially the bit "how is this different from a shortcut?"

    The basis of it is that a shortcut is just a file - the exact same thing as a shortcut can be achieved by having a file with the target path just written in ascii inside, and assuming that the reader can tell it's a shortcut then it could get the target path sure, but if the reader is not equiped to specifically handle those shortcuts then it'll get muck.

    A symlink masquerades as the actual file or folder, and the app doesn't need any specific handling to read the file. You can for example go into bash and write "cd symlink/" and it'll go to that folder. A shortcut is just a file, a symlink is an attribute of the filesystem.

  13. Fantastic! by Anonymous Coward · · Score: 4, Funny

    Symbolic Link and SMB2 - should I also be waiting for ZeldaFS and MegaMon?

  14. I had to check.... by kg4czo · · Score: 2, Funny

    the date to see if it was April 1st.

  15. NTFS already has symlinks, has done for years by Anonymous Coward · · Score: 4, Informative

    They are just not accesible from the shell. You need 3rd party utils to use them.. http://www.sysinternals.com/Utilities/Junction.htm l

  16. New strapline? by seanellis · · Score: 3, Funny

    Vista - 1980's technology today^H^H^H^H^Hsometime next year.

  17. Funny thing is... by WindBourne · · Score: 5, Insightful

    that in about 2 years time, everybody will be running around saying that MS developed it, and that *nix copied it. Just the way it works.

    --
    I prefer the "u" in honour as it seems to be missing these days.
    1. Re:Funny thing is... by Keeper · · Score: 3, Funny

      No, in two years time everyone will be running around saying that MS copied it from Apple. Then someone else will jump in and say that Apple stole it from Unix. After that, someone else will claim that Apple stole it from Xerox. And I'm sure after further debate someone else will mention that it was originally an idea first postulated by the ancient greeks, before computers were even invented.

    2. Re:Funny thing is... by ozmanjusri · · Score: 2, Funny

      And I'm sure after further debate someone else will mention that it was originally an idea first postulated by the ancient greeks, before computers were even invented.

      Actually, I think you'll find the differential gear of the Antikythera mechanism http://en.wikipedia.org/wiki/Antikythera_mechanism could easily be construed as a symbolic link...

      --
      "I've got more toys than Teruhisa Kitahara."
    3. Re:Funny thing is... by linguae · · Score: 3, Funny

      Dennis Thompson? I didn't know that Dennis Ritchie and Ken Thompson fused and merged together back in the 60s to become ... Dennis Thompson.

  18. Great... but by Anonymous Coward · · Score: 3, Interesting

    Now that NTFS has UNIX filesystem semantics, when will UNIX/Linux filesystems get some NTFS features like multiple streams and reparse points.

    These features are incredibly useful (arguably more so than symlinks), and the only Linux fs that comes close to implementing them is reiser4, which is not even part of the kernel.

    1. Re:Great... but by gargleblast · · Score: 4, Funny

      Multiple streams are an absurdity. "Ok contestants, repeat after me: 'A file is a variable-length array of bytes.'" Steve Jobs: "A file is two variable-length arrays of bytes." BZZT. "Sorry Steve, thanks for playing." Bill Gates: "A file is N variable-length arrays of bytes." BZZT. "Whoops Bill, that's a directory. Looks like you're out too! Join us next week on 'Who wants to be an architect!'"

      Reparse points are more commonly known in the UNIX community as 'mount points.'

    2. Re:Great... but by LLuthor · · Score: 3, Interesting

      MS does not inconvenience its users to defrag. I have been running several Windows machines for many years (still running Win2K on some of them), and I have honestly never defragged them.

      Two are running Battlefield 2 servers 24x7, one is running a web server and a database server to aggregate statistics on players. All have been in service doing this kind of thing for over two years.

      Never defragged, still running as good as new.

      --
      LL
  19. Lol, symlinks by DrSkwid · · Score: 5, Informative

    The inventors of Unix scrapped symlinks when they did their next OS

    Symbolic links make the Unix file system non-hierarchical, resulting in multiple valid path names for a given file. This ambiguity is a source of confusion, especially since some shells work overtime to present a consistent view from programs such as pwd, while other programs and the kernel itself do nothing about the problem.

    http://plan9.bell-labs.com/sys/doc/lexnames.html

    NT *was* going to have executables that pretended to be files, i.e. when you opened the executable to get the contents it would run and return the output rather than the by bytes of the executable, with a special NT syscall to read the *real* contents. Kind of like a named pipe. I was looking forward to this but it didn't work out.

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    1. Re:Lol, symlinks by HawkingMattress · · Score: 2, Interesting

      Well one could argue that scrapping symlinks was a really bad idea. Yes they can lead to messy filesystems if they are used in a bad way, but they are also the only way to solve a myriad of problems.
      For example, i have dozens of webapps deployed in their own directories, and they all need a configuration file in a their own directory. Since this config file is the same for each webapp, it certaily makes a lot of sense to have the file be a symlink to a real file somewhere else, in a kind of meta directory. Then I can just edit this file instead of having to edit each copies. There is no way around this type of problem without symlinks. You have to make the thing less maintenable, more error prone, and futhermore you'll need to do more work, like maybe creating a script to copy the file in each directory.

    2. Re:Lol, symlinks by DrSkwid · · Score: 3, Informative

      I can and will argue that

      or rather, I'll just provide a link to this

      The Use of Name Spaces in Plan 9

              Rob Pike
              Dave Presotto
              Ken Thompson
              Howard Trickey
              Phil Winterbottom
              Bell Laboratories, Murray Hill, NJ, 07974 USA

      http://plan9.bell-labs.com/sys/doc/names.html

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    3. Re:Lol, symlinks by Paul+Jakma · · Score: 3, Informative

      Symbolic links make the Unix file system non-hierarchical, resulting in multiple valid path names for a given file.

      You're confused. Files in Unix filesystems have no hierarchy, with or without symbolic links. Files are quite independent of file names. Multiple directories may contain entries for the same file, the names need not even be the same. The same directory may reference the same file with multiple names. Note for examples that renaming a file changes the modification time of the /directory/, but not of the file.

      Symbolic links are a bit of a hack though, yes. But mostly because they must expose the limitations of "files are not the same as filenames" - not because they allow multiple paths to the same file.

      --paulj

      --
      I use Friend/Foe + mod-point modifiers as a karma/reputation system.
    4. Re:Lol, symlinks by Paul+Jakma · · Score: 2, Insightful

      Then either he is confused, or it's a deliberate oversimplification. The former is impossible obviously ;), however the latter is a trap to the uninformed reader.

      He never mentions hard-links at all, with which the namespace remains quite hierarchical and cycle-free. Symbolic links suck not because of the multiple-name thing, but because they're an implementation hack that both can turn the namespace into spaghetti and produce inconsistent results across applications due to how exposed their guts are to applications.

      Plan9 has lots of interesting ideas here, obviously.

      --
      I use Friend/Foe + mod-point modifiers as a karma/reputation system.
  20. So, will they also get hard links? by WindBourne · · Score: 2, Interesting

    My understanding is that NTFS does not use hard links (and the associated counts). If they are allowing symblics, why not allow hard links?

    --
    I prefer the "u" in honour as it seems to be missing these days.
  21. MS Motto by psiekl · · Score: 5, Funny

    We are the leaders, wait for us!

  22. How sad by photon317 · · Score: 2, Insightful


    The Unix guys finally figure out how to move past symlinks to something better (private per-process inherited namespaces and bind() overlay mounts ala Plan 9 - coming to a Linux box near you soon), and now Windows starts implementing it for the first time (well .lnk links were kinda like half-baked symlinks, so they were halfway there before this announcement anyways).

    --
    11*43+456^2
  23. ..and about time, too! by unfunk · · Score: 2, Insightful
    ...now how about they get rid of this god-awful heirarchy thing they have happening here?
    In Windows Explorer, the topmost level is the desktop, while in the CLI, there's as many 'topmost' levels as there are drives in the machine.
    I never thought I'd say this, but I think they should adopt a *nix-like heirarchy, so that anything can be 'mounted' anywhere. Of course, they'd have to change the structure significantly, and have a built-in translator for "C:\things\stuff" type commands and whatnot.

    But then, it'd probably be so hard to change all that, that they'd be better off doing an Apple OSX trick, and we all know how likely that would be...

  24. Re:Ah yes by MichaelSmith · · Score: 4, Insightful
    The basis of it is that a shortcut is just a file

    When shortcuts were invented for Win95 the Win32 API should have been built to treat a shortcut as the object it pointed to. That way they would have had real working links up front. Now they are going to be stuck with two types of link which work in different ways.

  25. It's worse by Anonymous Coward · · Score: 3, Funny

    "Those who do not understand UNIX are doomed to buy Windows." --Anonymous Coward

  26. CYGWIN? by the_instigator · · Score: 2, Interesting

    When i create links in CYGWIN on my win32/NTFS box they appear in MS explorer as shortcuts and work like MS shortcuts but they act like symlinks, this lead me to belive that symlinks were possible under ntfs but not exposed to the user.

  27. FOUR, er FIVE symlink styles, all kinda *wrong* by Ancient_Hacker · · Score: 5, Interesting
    So there's going to be FOUR ways to alias files and folders and volumes:
    • (1) Mapping a directory to a drive letter.
    • (2) Shortcuts.
    • (3) NTFS mount drive as folder.
    • (4) The new symlink thingy.

    oops, isnt there still:

    • the old DOS "subst" command too?

    Make that FIVE ways. All of them looking somewhat alike, but all with subtly different syntax, semantics, overhead, and security implications. Sweet!

  28. Re:useful? really? by xtracto · · Score: 2, Informative

    does the average user *really* need them? I certainly can't remember ever having said 'Damn, I wish this piece-of-crap-OS would support symlinks' during my Windows days.

    Man, you need to use symlinks to see how useful they are. As someone pointed before, symlinks are great to create compilations of files on a directory. Also, they are very useful if you want to use different types of libraries (DLLs) on different programs (in different directoires).

    As for the "average user", as someone else said also, this symlink will surely help the file system Virtual folders or whatever is named. It is the same as the SQL oriented file system, you could ask, will the average user make use of SQL queries?, and the answer is that, they will, indirectley through the applications that are make use of that technology.

    Remember, this symlink will be a feature of the FILESYSTEM, which will be used by the programs. I for one would preffer to have multiple symlinks to DLLS than to have to copy the libraries through all the hard disk (or maybe not DLLS but other files).

    --
    Ubuntu is an African word meaning 'I can't configure Debian'
  29. Re:We can only hope by countach · · Score: 4, Informative

    Bullshit. Most unix software is not aware of symlinks because it doesn't have to be. Generally, only system utilities care about the existance of symlinks. The OS will detect an attempt to open an infinitely recursive symlink.

  30. Improve on symlinks? by mcrbids · · Score: 5, Informative

    There can be some improvement, particularly with managing symlinks.

    1) When you move a destination object, symlinks don't follow the target . This leaves "broken" symlinks that refer to nothing. Why doesn't the mv command move these too?

    2) When you symlink a symlinked folder, the root symlink is ignored. Let's say you symlink /usr/tunes to /usr/local/tunes. Later, you symlink /usr/local/tunes/YMCA.mp3 => ~/my_favorite_song.mp3. Now, you have a symlink that relies on both the existence of "/usr/tunes/" AND symlink "/usr/local/tunes >> /usr/tunes". Thus, while deleting 1st ("/usr/local/tunes => /usr/tunes") symlink doesn't actually delete anything, it does cause ~/my_favorite_song.mp3 to become unworkable.

    3) Symlinks cause all kinds of weirds around chrooted file systems , especially ones on a different underlying filesystem. If you're not very careful, nothing is as it seems! Files go nowhere, files are accessable only sometimes, etc. It's logical when you understand and appreciate a symlink for what it is, just a referral, but it can be maddening when security contexts get distorted around a chroot...

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
  31. Duplication... by Anonymous Coward · · Score: 5, Funny

    ...is a compliment of the highest form.

  32. MS did it to themselves by dustmite · · Score: 2, Insightful

    Microsoft brought this on themselves by running around calling themselves "innovative" pretty much several times per sentence during the anti-trust trial, and then continuing with an ongoing PR campaign that still today tries to paint them as being a truly "innovative" company. If you go call yourself innovative, and then proceed to produce a new "modern" operating system for 2006/7 whose primary advancements are all features that were commonplace in many other products anywhere from five up to nearly thirty years ago, you are asking to be lambasted, and you are going to be. You claim to be something that strongly, then you better be able to properly back up that claim or people will call you out on it.

    It's kind of like what Google did to themselves with their "do no evil" 'motto'. By having such a motto, they've created a whole crowd of people (and a whole sub-genre of "journalism") which specifically look for evidence that they are 'evil'.

  33. Re:We can only hope by countach · · Score: 2, Informative

    >Any de1cent OS will detect an attempt to infinitely traverse a symlink, but what's it
    >supposed to do?
    >It can:
    >
    > * Close the program (= Possible data loss)
    > * Slow the speed at which the program is allowed to access certain files (= Increase
    >the chance of race conditions, sometimes by a lot. It doesn't really solve anything
    >either)
    > * Make the symlinks "disappear" after a certain level of recursion (= Inconsistent data)
    > * Do nothing (= Solves nothing)

    WTF.....

    The answer is "none of the above". The open() call returns -1 with an error code of EMLINK, which if the program is any good will be passed onto the user as "Error opening file: Too many links", for the user to do with as he pleases.

    >None of these options are as good as the software actually detecting the symlinks itself.
    >When I say "most" UNIX software checks for symlinks, I am only referring to software
    >which would otherwise be at risk of infinite recursion.

    And what pray tell is the software supposed to do if it detects a symlink and/or a recursive one with special symlink handling code? All it can do is do report it to the user right? So why put in special code to do that? Just checking the return of open() and reporting the code to the user does the exact same thing.

  34. More Dupe than you think by TrentL · · Score: 3, Informative

    I recall this Slashdot story from several years ago (damn, I can't believe a Slashdot headline has stayed with me that long). Sadly, the links referenced in the article are broken, so I don't recall exactly what it was about.

    1. Re:More Dupe than you think by Firehawke · · Score: 2, Informative

      It's there, but they really didn't make much noise about it. I didn't even realize the tools were there until I found a webpage about it a few years back.

      is one place to start.

      Still, it'll be very nice to have real symlinks instead of shortcuts. It's what the shortcuts should have been all along.

  35. Re:We can only hope by Florian+Weimer · · Score: 2, Insightful

    Bullshit. Most unix software is not aware of symlinks because it doesn't have to be. Generally, only system utilities care about the existance of symlinks.

    I wonder if this attitude leads to all those race conditions when creating files in /tmp, which can be exploited by planting symlinks at the right time.

  36. only way to improve on slinks is to get rid of FSs by master_p · · Score: 2, Interesting

    The only way to really improve on symlinks is to get rid of file systems, and use a database instead. Symlinks are useful for simulating database views anyway.

    The purpose of using a computer is to manage information, and not binary data. Files are relics of the past. Operating systems should have databases for managing persistence. Benefits whould be tremendous:

    1. files are strongly typed.
    2. user can have views of data.
    3. improved searching.
    4. improved indexing.
    5. transactional logic available to any application.
    6. huge model-view-controller over all data; monolithic applications no longer needed; better distributed environments.
    7. better security.
  37. Not the first time by basilpronoun · · Score: 3, Interesting

    MS have invented symbolic links before.
    http://slashdot.org/article.pl?sid=00/03/02/083321 1&tid=109
    The evidence is no longer on MS's website put you can find it here http://www.spinnwebe.com/contests/innovate/8.php

  38. Already has this by coolsva · · Score: 2, Informative
    NTFS already has this and more
    Reparse points (like links) http://msdn.microsoft.com/library/default.asp?url= /library/en-us/fileio/fs/reparse_points.asp
    Junctions (to mount file systems) http://msdn.microsoft.com/library/default.asp?url= /library/en-us/fileio/fs/hard_links_and_junctions. asp
    Sparse files (highly underutilized) http://msdn.microsoft.com/library/default.asp?url= /library/en-us/fileio/fs/sparse_files.asp
    and of course the plain old short cuts that are really symbolic links in the traditional unix world.

    I remember architecting a product to implement all unix based functionality in NT (IPC, memory mapped files, etc) and found NT40 to have that and more. Thats the time I really appreciated windows as a OS more mature than Unix.

    The unfortunate part is people still think of DOS/Win95 code base when they think of windows. As a OS, W2K is much more mature in terms of the facilities they offer and as a filesystem, NTFS is way ahead.

    Give me a feature in Unix and Im sure there is an equivalent in NT. Thousands of smart people working at Redmond are not idiots and millions of corporate architects proposing NT based solutions are not stupid either. They propose windows based technologies not just for looks (though end users do appreciate that).

    1. Re:Already has this by trezor · · Score: 3, Insightful

      and of course the plain old short cuts that are really symbolic links in the traditional unix world.

      Try sharing that shortcut over Samba. Didn't work you say? Then, absolutely nothing UNIX-like about it.

      The unfortunate part is people still think of DOS/Win95

      I use Windows XP and it still has lots of shortcomings. However it's multimedia support is waay ahead of Linux, and I use my machine mainly for multimedia. So whatever criticism I may serve, that's based on WinXP and modern Redmond-OSes.

      Give me a feature in Unix and Im sure there is an equivalent in NT.

      • Kernel and network support loading before the GUI?
        You'd think any serious server-OS would implement this...
      • Possible to recover the system without a GUI if needed?
        A reinstall with the textmode interface doesn't count.
      • Modular kernel which can be stripped of unneccesary features?
        For whatever reason, increased security, lightweight editions, added native FS support...

      Just to list a few. I do however have a job to do :-D

      --
      Not Buzzword 2.0 compliant. Please speak english.
    2. Re:Already has this by Anonymous Coward · · Score: 2, Informative

      The drive letters are an alias and exist only for the purposes of legacy. Betas of WinFS have shown to completely disable drive letters as they are becoming less and less necessary. What you call C: is really \\.\HardDisk0\Partition0. Sometimes a dialog in Windows 2000 or XP slips up and actually displays the long full name instead of the aliased drive.

      Now, with Windows 2000 and XP you might not be able to escape having a C: drive, as the OS expects it. But anything other drive that you add, including optical drives, can be mounted within that file system. I currently have three partitions and two optical drives. They are mounted as follows:

      C:\
      C:\Swap
      C:\Documents and Settings\
      C:\DVD
      C:\CD-RW

  39. Symlinks were a BSD invention by Per+Abrahamsen · · Score: 3, Informative

    That the Research Unix guys didn't add it to Plan9 doesn't have to mean anything else than they suffer from the NIH syndrome. I don't believe symbolic links were ever a part of Research Unix.

    The commercial product, SysV, got symbolic links, but they had to compete in the real world.

  40. The Fix: Aliases by Rosyna · · Score: 3, Informative

    Yes, the Mac OS had none of those problems with Aliases. I guess that's what happens when you design an OS from the ground up that doesn't use paths to reference everything. In fact, for a very long time there was no way to get a path in the Mac OS. OS X changed all that and now many programs are very fragile (like Preview).

  41. FAT does it too... by spiff42 · · Score: 5, Funny
    NTFS does support hardlinks

    Well. So does FAT, except it is called a crosslink, and aparently scandisk and various disk defragmentation tools do not handle it correctly ;-)

    /Spiff

  42. Wonder if this is a new avenue? by brennz · · Score: 2, Interesting

    I know the UNIX security record relating to symlinks is not unblemished.

    I can't help but be curious - Will this be a new avenue by which to exploit Windows systems? I'm not saying this to troll, or to jump on the "MS security sux fanboi wagon" but rather as a concern.

    This new development has definitely piqued my interest.

  43. This is rich by linforcer · · Score: 3, Funny

    First Microsoft Shell and now this? Looks like MS Linux is nearly becoming a reality!

  44. Not suprising - any idea what NTFS 5 is capable by soul_hk · · Score: 2, Informative

    It seems people are forgetting about the "almost there" aspects of NTFS 5 ..

    NTFS junction points are useful for alternate mounting.
    The point of some key Windows Services are built for exactly this purpose .. Distributed Link Tracking and Object Identifiers
    Reparse points are handy too ... http://support.microsoft.com/default.aspx?scid=kb; EN-US;q205524

    NTFS is a great file system, you just need to read the documentation..

  45. Re:Nevermind by bcat24 · · Score: 5, Insightful

    The whole point of symbolic links is that they're transparent. That way, an application doesn't have to parse a .lnk file. The OS handles reading/writing from the correct file. Real file symlinks have been missing from Windows for too long, I think it's about time they were added. (Whether or not anybody actually uses them instead of shortcuts is another story.)

  46. Re:I think we have a new kind of troll... by DrSkwid · · Score: 4, Informative

    I try and keep them relevant.
    This story is a case in point. Symlinks are a hack that hides the fact that disk drive based namespaces are a crock. And a crock that's easily solved.

    Unix is 30 years old, Linux copies it. Windows is not in the picture.

    Linux / BSD et. al. offers very little innovation any more. Instead anything new is coming in through the user space and we end up with stuff like GnomeVFS and smb:// handlers.

    The only real place where any real Unix like innovation has occured in recent times was in Bell Labs and the expresssions of that are Plan 9 and Inferno.

    You can try some of the concepts out in user space through http://swtch.com/plan9port/

    "Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems.
    supported systems : Linux (x86 and PowerPC), FreeBSD (x86), Mac OS X (Power PC), NetBSD (x86), OpenBSD (x86 and PowerPC), SunOS (Sparc)."

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  47. Vista Will Probably Be BSD-Based by Anonymous Coward · · Score: 4, Interesting

    This is just one more clue that Microsoft has given up on the Windows code base, and that Vista will be based on BSD code.

    To review the previous clues:

    First, there was Microsoft's announcement that Vista (Longhorn) will use UNIX-like User Permissions:

    See Longhorn to use UNIX-like User Permissions

    Why would Microsoft do that, when even many Linux supporters agree that Windows permissions are finer grained? But if the new Windows is BSD-based, Microsoft would be forced to do that, or face rewriting a lot of the underlying BSD code.

    Second, there was Microsoft's announcement that Unix compatibility will be "built in" to Vista:

    See: Microsoft to Stop Releasing Services for Unix

    Third, there is the fact that Microsoft ported .Net to BSD, as well as pushing for other software to be released under a BSD license ("All the better to steal it, my dear.").

    Fourth, there was Steve Ballmer talking about the Vista "reset" which started around 18 months ago.

    See: Ballmer Pushes Microsoft Innovation, Talks Vista Reset

    Does anyone really think that Microsoft could succeed in doing a major rearchitecturing of the Windows code now, in only 18 months, after they had tried and failed to do so many times over the last decade?

    Besides, when has Microsoft ever shown the confidence or ability to succeed on their own? DOS, Windows NT, Internet Explorer, and .Net, were all based on other companies' products, or were developed by teams hired from outside.

    And now we have this new report that another basic feature of Unix, symbolic links, will be part of Vista.

    Given all this evidence, I am fairly convinced that Vista will be based on one of the Open Source BSD distributions. Unlike Apple, however, Microsoft will probably try to keep it a secret, and claim it as their own innovation.

    What will be the result?

    On one hand, a BSD-based Vista might be a good thing, since it will result in a more stable, and less virus-prone Windows.

    On the other hand, if Microsoft remains true to their history, they'll just screw it up with all the lock-in features they'll add on top. Like the VMS-and-OS/2-based Windows NT, which started out strong (version 3.51) then gradually degraded, I expect the benefits of a BSD-based Vista to be temporary.

    Then again, Microsoft is just playing for time, as they continue their strategy of locking in the Internet. Thus, they only need Windows to be better for long eneough to fool their customers, again, while they tie them up with a new set of decommoditized protocols (.Net, Palladium, DRM, Windows Media, Office 12, and so on).

    1. Re:Vista Will Probably Be BSD-Based by LO0G · · Score: 3, Insightful

      Man, I LOVE /. posters.

      So you have three reports on /. One of them describes a feature that's been in Windows since NT 3.1 (and exposed as a public API since Windows 2000) (symlinks). The other describes an existing feature that's been available for Windows since NT 4 and is now apparently being included in the OS base (SFU). And the third that describes a feature that's been available for Windows since NT 3.1 (and made really usable in XP) (limited rights user accounts).

      From these three technologies, all of which are over 10 years old, the poster decides that Microsoft rewrote the Vista OS based on BSD.

      I love this forum :)

    2. Re:Vista Will Probably Be BSD-Based by Poltras · · Score: 2, Interesting

      May I remind you that vistas betas (i like the sound) just are contradicting with the bsd theory? For another note, see previous replier which has a point: everything you said was released thousands of years ago by hebrew microsoft employees.

    3. Re:Vista Will Probably Be BSD-Based by Anonymous Coward · · Score: 2, Interesting

      Man, I LOVE /. posters.

      And I love how deceptive posts like yours get modded up as "insightful."

      > So you have three reports on /.

      No. There are _four_ report -- one each from PCWorld, EWeek, WindowsITPro, and the current one from Ward Ralston (three of these just happen to be linked on Slashdot). Plus, there was my fifth point about Microsoft porting .Net to BSD.

      So right off you start trying to deceive your readers.

      And you can't count.

      > One of them describes a feature that's been in Windows since NT 3.1 (and exposed as a public API since Windows 2000) (symlinks).

      First of all, the Windows NT "symlinks" have never been the same as Unix symlinks.

      Second, in the current article, Ward Ralston is talking about symlinks (Unix-style, from the description) as a NEW capability of Vista. Why we he be doing that, if he was talking about the old NT-style symlinks?

      By the way, Ward Ralston is a member of the Windows server team, so I suspect he knows more about it than you.

      > The other describes an existing feature that's been available for Windows since NT 4 and is now apparently being included in the OS base (SFU).

      Again, then why did Microsoft announce that they were SHUTTING DOWN SFU, because the new Unix capabilities would be BUILTIN to Windows?

      As stated by Samm DiStasio, director of product management with Microsoft's Windows Server division, "Having Unix interoperability functionality integrated in to the OS (operating system) helps customers to programmatically access Windows and Unix resources at the same time, which is super important and something that couldn't be done with the previous architecture."

      What new architecture would that be? Could it be... BSD?

      I'll give you one thing, you're more capable than the average astroturfer. Your attempts to deflect the issue sounded very believable. If Microsoft had more posters like you, their reputation as an innovator would be secure.

    4. Re:Vista Will Probably Be BSD-Based by moosesocks · · Score: 2, Funny

      does this mean that we can finally say that Windows is dying?

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
  48. Re:Nevermind by avdp · · Score: 3, Informative

    Yes, you could essentially re-implement Explorer in every app written by having them handle the *.lnk files the way Explorer does. It sort of is counterproductive. It is much cleaner to have that in the filesystem (or at least the MS APIs to open files) so that it is transparent to apps. Frankly the way the shortcut thing was implemented is a ugly hack. I figured what happened is that they wanted the symlink concept, but didn't want to (or couldn't) change the filesystem. Looks like they're finally (10 years later) decided to do it right.

    As far as users are concerned, I suspect they won't know/see the difference. Creating symlinks will just work like creating shortcuts.

  49. Only on BSD and Linux... you want readlink. by Ayanami+Rei · · Score: 2, Informative
    readlink (2)
    NAME
    readlink - read the contents of a symbolic link
    SYNOPSIS

    #include <unistd.h>

    ssize_t readlink(const char *restrict
    path , char *restrict buf ,
    size_t
    bufsize );

    DESCRIPTION

    The readlink() function shall place the contents of the symbolic link referred to by path in the buffer buf which has size bufsize. If the number of bytes in the symbolic link is less than bufsize, the contents of the remainder of buf are unspecified. If the buf argument is not large enough to contain the link content, the first bufsize bytes shall be placed in buf.

    If the value of bufsize is greater than {SSIZE_MAX}, the result is implementation-defined.

    RETURN VALUE

    Upon successful completion, readlink() shall return the count of bytes placed in the buffer. Otherwise, it shall return a value of -1, leave the buffer unchanged, and set errno to indicate the error.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  50. I hope they do it the RIGHT way. by Caspian · · Score: 2, Insightful

    I hate how Mac OS X handles symlinks. Symlinks work perfectly, both within the shell and within the Finder, but the Finder doesn't create symlinks... it creates Aliases (think "Shortcuts").

    "Aliases" don't work in the shell. They're files. Trying to "cd" to one of them is like trying to "cd" to a .lnk file in Windows.

    I wish the Finder created symlinks (or, at least, that you can make it do so) instead of Aliases.

    And I hope that, if and when Windows starts to support symlinks, explorer.exe will create symlinks instead of Shortcuts.

    --
    With spending like this, exactly what are "conservatives" conserving?
  51. Vista escapes the Matrix by moojin · · Score: 2, Funny

    Later on, Vista wakes up. He sees his code-base pierced with dozens of acupuncture-like needles wired to a strange device insert new lines of source code.

    *nix Developer 1: He still needs a lot of work.

    Vista: What are you doing?

    *nix Developer 2: Your source code has atrophied, we're rebuilding them.

    Vista: Why do the symbolic links in my file system hurt?

    Vista blinks

    *nix Developer 2 : You've never used them before.

    Vista looks confused

    *nix Developer 2 : Rest, Vista, the answers are coming.

    Vista passes out again.

    --
    Why did I lurk so long before registering for a Slashdot account? I could have had a Slashdot ID of less than 100000.
  52. Mac OS X already does it the RIGHT way. by diamondsw · · Score: 2, Informative
    A symlink is a hack (as many others have mentioned) that relies on pathnames to find a file. This is almost criminally STUPID, since if the file is moved or renamed, the link will break. If any of the intervening folders change, it will break. All sorts of fragility has resulted ever since where things cannot be moved or else links will break.

    Mac OS X (and all the way back to System 7 in 1990) did it right by creating aliases which use a two-factor plan to locate its target:
    1. Check the file-id. This is roughly the same as the inode, and will remain the same if the file is moved or renamed. If it's been moved or renamed, then update the path (see step 2).
    2. Check the full pathname. Similar to a symlink. If the original file is deleted, but a different file is located where it was last seen, update the file-id.


    Aliases also store sufficient information about the volume they were located on that the Finder can mount the volume automatically (if it's on the network) or inform the user of exactly why it didn't work. This also allows aliases to cross filesystems, which symlinks can but hard links cannot.

    This is why symlinks are such a stupid solution on UNIX, since that OS has no excuse - aliases could have been trivially implemented due to the dual-layer nature of the filesystem (inodes separate from hierarchy).

    (Now, I agree completely with how sucky it is that the shell does not support them, and that aspect has been sucky since day 1. However, that has nothing to do with alias technology and everything to do with shell implementation.)
    --
    I don't know what kind of crack I was on, but I suspect it was decaf.
  53. Re:NTFS already had symlinks? by Anonymous Coward · · Score: 2, Informative

    NTFS has had hard links since the first version in 1993. Reparse points were added to NTFS in Windows 2000. These work like symbolic links, but can only point at directories, not files.

  54. Re:NTFS already had symlinks? by Richard+Steiner · · Score: 3, Insightful

    FAT filesystems have had hard links since the beginning, but CHKDSK doesn't like 'em... :-)

    --
    Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
    The Theorem Theorem: If If, Then Then.
  55. Good grief! by cortana · · Score: 2, Funny

    Are Plan 9 users the new Ubuntu users (who were previously the new Gentoo users)? ;)

  56. Re:We can only hope by cortana · · Score: 2, Informative
    Hmm...
    $ ln -s argh argh

    strace -e open cat argh
    open("argh", O_RDONLY|O_LARGEFILE) = -1 ELOOP (Too many levels of symbolic links)
    Honestly, there should be some kind of exam users should have to pass before they are allowed to post here.
  57. Ah, the "backwards comptibility" card... by Richard+Steiner · · Score: 2, Insightful

    Sorry, but that dog don't hunt this time. It's trivial to write a filesystem driver to create a virtual drive letter for legacy applications that would need such while at the same time making useful things available like true loing filenames, symbolic links, etc.

    That's the same excuse that they used for using FAT32 in Win9x, but OS/2 proved them wrong even before the first Win9x release when OS/2 2.0 allowed DOS and Windows programs to install and run on an HPFS partition. Even Windows 3.1 itself could be installed under OS/2 on HPFS!

    Besides, I think

    --
    Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
    The Theorem Theorem: If If, Then Then.