delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/19/07:37:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Tue, 19 Sep 2000 07:21:28 -0400
To: "'cygwin AT sources DOT redhat DOT com'" <cygwin AT sources DOT redhat DOT com>,
cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Setting cygdrive prefix to '/' causes disappearing mounts
Message-ID: <20000919072128.D27571@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: "'cygwin AT sources DOT redhat DOT com'" <cygwin AT sources DOT redhat DOT com>,
cygwin AT sourceware DOT cygnus DOT com
References: <17B78BDF120BD411B70100500422FC6309E0FB AT IIS000>
Mime-Version: 1.0
User-Agent: Mutt/1.3.6i
In-Reply-To: <17B78BDF120BD411B70100500422FC6309E0FB@IIS000>; from Dautrevaux@microprocess.com on Tue, Sep 19, 2000 at 10:02:15AM +0200

On Tue, Sep 19, 2000 at 10:02:15AM +0200, Bernard Dautrevaux wrote:
>> On Tue, Sep 19, 2000 at 03:26:27AM +0900, Kazuhiro Fujieda wrote:
>>>>>>On Fri, 15 Sep 2000 13:30:27 -0400 (EDT) David Condon <dcondon AT apk DOT net>
>>>>>>said:
>>>
>>>>I have been experiencing a problem in which everything in the mount
>>>>table disappears.  This happens when any program using the Cygwin DLL
>>>>is executed.  With Regedit open, I can see that the keys containing the
>>>>mount points disappear.
>>>
>>>I've fixed this problem in the development sources.  I've eliminated
>>>the code deleting mount entries of which posix paths have the cygdrive
>>>prefix.  This fix will appear in the next release.
>>
>>Thanks very much for doing this.  It is much appreciated.
>>
>>This should also be in the next snapshot.
>>
>
>I don't really understand what's the matter exactly here; as I've
>understood, the cygdrive prefix was set as "/cygdrive", so that "a:" is
>available as "/cygdrive/a".  Setting the cygdrive prefix as "/" should
>give "a:" available as "//a", so that should *not* erase "/bin" as bin
>is not a subdirectory of the virtual /<empty> subdirectory of "/" but a
>subdirectory of "/" itself.

No.  This makes a: available as /a.

>I think the matching code is wrong; what should probably be avoided is
>either setting the cygdrive prefix to "", or to "/.", because then /bin
>would be under cygdrive, but setting the cygdrive prefix to "/" should
>*not* cause problems for "/bin"; it could however cause problems with
>an UNC path to machine "X", as //X/ will try to access the local X:
>drive, and that's why the convention was changed to use
>(user-changeable) "/cygdrive/" prefix instead of "//".

That's not how it works.  That mount logic does maximum length matching,
so /bin is matched first.  Have you even tried this?

>I'm just not sure this patch will not cause new kinds of problem; I
>think fixing the matching code would be better: it should check for
>mount points named <cygdrive prefix>/something, not "<cygdrive
>prefix>something", and avoid collapsing multiple leading "/".
>
>Just my 2c,

Did you actually look at the patch or are you just speculating?

I don't know what "matching code" you are referring to but the patch is
correct.  Cygwin used to umount any directory that was a subdirectory of
a cygdrive path.  Now it doesn't.

However, if you think that something is wrong with the patch, I'm sure
that both Kazuhiro and I would both love to see a correction.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019