delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/06/15/12:52:10

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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 <cgf AT cygnus DOT com>
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> <s1s66rdq93c DOT fsf AT jaist DOT ac DOT jp> <20000613225819 DOT A12800 AT cygnus DOT com> <s1s3dmgrjm2 DOT fsf AT jaist DOT ac DOT jp> <20000614010312 DOT B7392 AT cygnus DOT com> <s1sya47oz1j DOT fsf AT jaist DOT ac DOT jp>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <s1sya47oz1j.fsf@jaist.ac.jp>; 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 <cgf AT cygnus DOT 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 AT jaist DOT ac DOT 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.

- Raw text -


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