delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/24/12:30:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 24 Jan 2001 18:56:01 +0200
Message-Id: <200101241656.SAA04669@linux.>
From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il>
To: lhall AT rfk DOT com
Subject: Re: 1.1.7:mount and ls problem
CC: lowella AT serv DOT net, cygwin AT sources DOT redhat DOT com
In-reply-to: <4.3.1.2.20010124100612.021e0c10@pop.ma.ultranet.com>
(lhall AT rfk DOT com)
Organization: Simon & Wiesel Insurance agency
Reply-to: ehud AT unix DOT simonwiesel DOT co DOT il
References: <4 DOT 3 DOT 1 DOT 2 DOT 20010123202852 DOT 022d7ce8 AT pop DOT ma DOT ultranet DOT com> <4 DOT 3 DOT 1 DOT 2 DOT 20010124100612 DOT 021e0c10 AT pop DOT ma DOT ultranet DOT com>
X-Mailer: Emacs 20.7.1 rmail (send-msg 1.104)
MIME-Version: 1.0

>          cd /
>          mkdir e
>          mount e: /e
> All is well -- e shows up in both an ls ( as e) and mount (as e:  /e).
> 
>          mount f: /f
> I get the error:
>          mount: warning - /f does not exist
> but mount shows
>          f:   f/ . . .
> and ls doesn't show f.
> 
> If I do mkdir f, I get:
>          mkdir: cannot make directory `f': File exists
 
On UNIX systems, you can NOT mount on non-existing directory.

I think Cygwin can adopt this behavior and refuse to mount when the
directory is missing. There are 2 ways to accomplish this:
    1. Create the directory (silently or with a message).
    2. Produce an  error and do not mount.
The 2nd approach has the possible problem for mounts that was done
previously (saved in the registry) - the mount directory may be erased
by a non Cygwin program. In that case I will produce an error message
every time the DLL try to use this mount, and ignore it (but not
delete it from the registry).

I don't know the reasons of the Cygwin developers for choosing the
current behavior but I'm sure they had something in mind if they
decided to deviate from standard UNIX practice.

BTW. I adhere to UNIX practice, I mount only on existing directories
     and always use the -s switch (no private mounts on UNIX).

Ehud.


-- 
 @@@@@@ @@@ @@@@@@ @    @   Ehud Karni  Simon & Wiesel  Insurance agency
     @    @      @  @@  @   Tel: +972-3-6212-757    Fax: +972-3-6292-544
     @    @ @    @ @  @@    (USA)  Fax  and  voice  mail:  1-815-5509341
     @    @ @    @ @    @        Better     Safe     Than     Sorry
 http://www.simonwiesel.co.il    mailto:ehud AT unix DOT simonwiesel DOT co DOT il

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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