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)."

24 of 565 comments (clear)

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

    ...is a compliment of the highest form.

  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 kd3bj · · Score: 5, Funny

      What's next?

      Forward slashes?

      Text files without ^m's?

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

      all your symbolic links are belong to SCO

  3. 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 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 =)

    2. 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.)

  4. 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.
  5. "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?
  6. 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?"

  7. 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 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)
  8. 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.

  9. 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.
  10. 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
  11. MS Motto by psiekl · · Score: 5, Funny

    We are the leaders, wait for us!

  12. 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.

  13. 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!

  14. 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.
  15. Duplication... by Anonymous Coward · · Score: 5, Funny

    ...is a compliment of the highest form.

  16. 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
  17. 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

  18. 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.)