Sorry, the link that you provide in no way contradicts what I said.

What that article refers to is the ability to create hard links on NTFS in Windows 2000 and XP. (But not in the 9x line, or on NT.) But if you know anything about Unix filesystem concepts, hard and symbolic links are very different things.

Hard links work by providing multiple names for the same underlying file. The name links directly to the storage space - moving or deleting one name does nothing to the others. And since it is implemented directly in the filesystem, hard links all have to be on the same partition.

Soft links (also called symbolic links) are a kind of redirect. The filesystem remembers that what is supposed to be here is whatever happens to be there. The lookup is done at access time, by name. Therefore soft links will be messed up if you move or delete the original, but soft links have no problems crossing partitions.

These two things look superficially similar, but their capabilities are very different. For instance many shops use carefully chosen symlinks into a source control directory to allow things to both be managed in one place and also appear where they need to in other places in the filesystem. You can't do that with hard links since the other places might be on other partitions, and you don't want to get bitten if, for instance, a file gets deleted and rewritten from scratch. (With hard links the delete destroys the connection between the two copies. With soft links it does not.)

Therefore what you link to does not show that Windows can do soft links.

But even if it did, I suspect that it would not work for the original question. First of all if you follow your link you will see that, CreateHardLink does not work over the network redirector. I don't have enough Windows programming experience to say for sure, but that looks suspiciously like you cannot pass that argument to mounted filesystems. And if Windows won't communicate it, there is going to be no way that Samba can implement their half.

However we do have a good question that arises. The function you describe is exactly what you need to implement Perl's link function. Can Perl on Windows take advantage of that? If not, then it would be a good thing to add.


In reply to Re: Re: Re: soft links by tilly
in thread soft links by moked

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.