Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Thu, 15 Jun 2000 12:34:19 -0400 To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: mount doesn't complain about missing "mount directory" any more? Message-ID: <20000615123419.E5388@cygnus.com> Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com Mail-Followup-To: cygwin-developers AT sourceware DOT cygnus DOT com References: <20000613213415 DOT A20386 AT cygnus DOT com> <20000613225819 DOT A12800 AT cygnus DOT com> <20000614010312 DOT B7392 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from fujieda@jaist.ac.jp on Thu, Jun 15, 2000 at 10:26:48PM +0900 On Thu, Jun 15, 2000 at 10:26:48PM +0900, Kazuhiro Fujieda wrote: >>>> On Wed, 14 Jun 2000 01:03:12 -0400 >>>> Chris Faylor 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 > > * 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.