delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/24/05:19:27

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: Mon, 24 Sep 2001 11:18:06 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [PATCH] ls & "magic" cygdrive dir (was: RE: cygdrive stuff)
Message-ID: <20010924111806.O17037@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF7A32 AT itdomain002 DOT itdomain DOT net DOT au>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <EA18B9FA0FE4194AA2B4CDB91F73C0EF7A32@itdomain002.itdomain.net.au>; from robert.collins@itdomain.com.au on Mon, Sep 24, 2001 at 01:13:15PM +1000

On Mon, Sep 24, 2001 at 01:13:15PM +1000, Robert Collins wrote:
> * create the cygdrive fhandler class.
> * create the devfs fhandler class.
> * Alter setup.exe to add the new default mount point registry entries
> (for /cygdrive and /dev).

I think it's a bit more tricky.  /dev is a wonderful example.
By default it contains only device entries:

	/dev/tty
	/dev/st0
	...

which you could nicely support by a dev fhandler.  The problem
is that I wouldn't like to disallow to create symlinks inside of
/dev:

	ln -s /dev/st0 /dev/tape

So /dev is kinda `bastard' containing virtual device entries
but also real symlinks.

In that case it would make sense to support reading the real
/dev in the Cygwin tree on disk plus listing all virtual
device entries.  Sure, you could manage that in the dev fhandler...

I think that you'll have some work to implement that due to a
design constraint inside of Cygwin.  In theory the functionality
of stat/readdir etc. has to be moved inside of the fhandlers
first.  While that already works for stat on disk files it's
currently not implemented for readdir at all.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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