public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Warren Young <wyml@etr-usa.com>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Error accessing mapped drive >2TB?
Date: Sat, 24 Oct 2015 00:50:00 -0000	[thread overview]
Message-ID: <30B1BBD5-E147-4020-B31D-37475AEE9B7B@etr-usa.com> (raw)
In-Reply-To: <562A4495.5010705@secure-endpoints.com>

On Oct 23, 2015, at 8:30 AM, Jeffrey Altman <jaltman@secure-endpoints.com> wrote:
> 
> In this thread there appears to be a small amount of misunderstanding of
> what a reparse point is and how it should be used.

Thank you for clearing all of this up.  It was a fascinating read.

> the Apple SMB server does expose the existence of the mount point via
> the use of the RP file attribute.

Which is legal so far as it goes, right?

> Note that the size of the reparse data is zero.  There is no reparse
> data to read.  This is a UNIX mount point not an NTFS junction.

So is that wrong, or is it a valid way of shoehorning Unix filesystem behavior (mount points and such) into the SMB framework?

> Apple should have registered with Microsoft their own reparse point tag.
> Instead they broke the rules and used Microsoft's
> IO_REPARSE_TAG_MOUNT_POINT

If Apple uses their own tags, wouldn’t that cause the Windows SMB client to be unable to understand Unix mount points, when if it comes across them?

I don’t see that the Apple SMB server really needs to report Unix mount points at the root of a share, but they could also appear in the middle of a share, at which point I assume there are important implications to SMB, equivalent to the inode uniqueness problem on Unix.

Therefore, I can see that Apple’s SMB server needs a way to tell the client that it is crossing a filesystem boundary.  The question is, is the way Apple chose  a sensible one?

> applications cannot rely on the serial numbers to distinguish
> between devices.  Instead, the applications must do as the Explorer
> Shell does and track the locations of the RP attributes in paths as they
> are encountered.

Isn’t the Explorer behavior more robust, anyway?  Are device serial numbers GUID-like, so that there is no need for central coordination to avoid collisions?  If not, I don’t see that a robust application should rely on them, anyway.

I’m not including things like the udev rules on Linux, where you can use a serial number to work out where to automount a removable volume regardless of which bus it appears on.  In that case, you’re dealing with a small number of serial numbers, so the chances of collision are small.

I don’t think Explorer has the luxury of making such assumptions because it has to work in all possible combinations of hardware and software, by its nature.  It is not possible to fix collisions by configuration, as with udev.

> While Apple's design choices do not fit with the expectations of Cygwin
> they are not necessarily wrong.

So, should I send Apple this code, or not?

  http://pastebin.com/uZdDZPgi
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2015-10-23 22:15 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-12 17:14 Nem W Schlecht
2015-09-14 20:34 ` Warren Young
2015-09-15  3:50   ` Andrey Repin
2015-09-15 15:14     ` Nem W Schlecht
2015-09-15 23:21       ` Warren Young
2015-09-16  0:35         ` Andrey Repin
2015-09-16 13:39         ` Nem W Schlecht
2015-09-17  0:25           ` Warren Young
2015-09-21  5:23             ` Brian Inglis
2015-09-21  6:05               ` Andrey Repin
2015-09-21 21:33                 ` Brian Inglis
2015-09-22  8:35                   ` Andrey Repin
2015-09-15 23:20     ` Warren Young
2015-10-21 10:03   ` Corinna Vinschen
2015-10-21 12:35     ` Andrey Repin
2015-10-21 12:43       ` Corinna Vinschen
2015-10-21 13:05         ` Andrey Repin
2015-10-21 13:28           ` Corinna Vinschen
2015-10-21 16:23     ` Warren Young
2015-10-21 16:50       ` Corinna Vinschen
2015-10-21 18:05         ` Warren Young
2015-10-22 10:01           ` Corinna Vinschen
2015-10-23  2:40             ` Warren Young
2015-10-23 12:25               ` Corinna Vinschen
2015-10-23 14:59                 ` Jeffrey Altman
2015-10-24  0:50                   ` Warren Young [this message]
2015-10-24 13:06                     ` Andrey Repin
2015-10-26 12:05                     ` Corinna Vinschen
2015-11-03 22:18                       ` Warren Young
2015-11-05  9:22                         ` Corinna Vinschen
2015-10-26 11:50                   ` Corinna Vinschen
2015-10-24  0:35                 ` Warren Young
2015-10-24  4:28                   ` Warren Young

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30B1BBD5-E147-4020-B31D-37475AEE9B7B@etr-usa.com \
    --to=wyml@etr-usa.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).