This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mount doesn't complain about missing "mount directory" any more?


On Thu, Jun 15, 2000 at 10:26:48PM +0900, Kazuhiro Fujieda wrote:
>>>> On Wed, 14 Jun 2000 01:03:12 -0400
>>>> Chris Faylor <cgf@cygnus.com> said:
>
>> I think you may have misunderstood me.  I wanted to be able to
>> type "umount c:\foo" (I got the backslash wrong above) and have
>> it remove the mount point.  This is what it does on UNIX.
>
>I'm sorry. I didn't know the umount can accept a device name on
>UNIX. I tried implementing this behavior in umount of Cygwin.
>
>In my implementation, the umount invoked with a native path (or
>something like it) deletes all mount entries having the same
>native path. Because the mount in Cygwin unlike one in UNIX can
>mount the same source path on more than two different mount
>points.

Actually, UNIX can mount two devices, too.  I just tried it, and a umount
removes the first in the mount list.  Is it possible to adapt your patch
to do that?

cgf

>By the way, I found the mount didn't eliminate a trailing
>backslash in a native path starting with `//[A-Za-z]/'.
>The following patch also fixes this problem.
>
>ChangeLog:
>2000-06-15 Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
>
>	* path.cc (mount_info::add_item): Eliminate a trailing backslash 
>	included in a native path starting with '//[A-Za-z]/...'.
>	* path.cc (mount_info::del_item): Accept a native path as its target.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]