Setting cygdrive prefix to '/' causes disappearing mounts

Chris Faylor cgf@cygnus.com
Tue Sep 19 07:30:00 GMT 2000


On Tue, Sep 19, 2000 at 11:08:35PM +0900, Kazuhiro Fujieda wrote:
>>>> On Tue, 19 Sep 2000 07:21:28 -0400
>>>> Chris Faylor <cgf@cygnus.com> said:
>
>> >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
>(snip)
>> 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 afraid there is a slip. As I see it, the mount logic tries
>the pattern matching with "<cygdrive prefix>[a-zA-Z]\(/\|$\)" at
>first, so /bin wouldn't be under cygdrive.

I don't follow.  I've actually tried this.  I set the cygdrive prefix to '/'
and then did a 'ls -l /bin'.  The result was my /bin directory, as expected.
Also, performing a 'ls -l /' showed me the expected root directory.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list