Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <17B78BDF120BD411B70100500422FC6309E0FB@IIS000> From: Bernard Dautrevaux To: "'cygwin AT sources DOT redhat DOT com'" , cygwin AT sourceware DOT cygnus DOT com Cc: cvinschen AT cygnus DOT com Subject: RE: Setting cygdrive prefix to '/' causes disappearing mounts Date: Tue, 19 Sep 2000 10:02:15 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: Chris Faylor [mailto:cgf AT cygnus DOT com] > Sent: Monday, September 18, 2000 8:29 PM > To: cygwin AT sourceware DOT cygnus DOT com > Cc: cvinschen AT cygnus DOT com > Subject: Re: Setting cygdrive prefix to '/' causes disappearing mounts > > > 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 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 / subdirectory of "/" but a subdirectory of "/" itself. 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 "//". 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 /something, not "something", and avoid collapsing multiple leading "/". Just my 2c, Bernard -------------------------------------------- Bernard Dautrevaux Microprocess Ingenierie 97 bis, rue de Colombes 92400 COURBEVOIE FRANCE Tel: +33 (0) 1 47 68 80 80 Fax: +33 (0) 1 47 88 97 85 e-mail: dautrevaux AT microprocess DOT com b DOT dautrevaux AT usa DOT net -------------------------------------------- -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com