This is the mail archive of the cygwin@cygwin.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: [PATCH] ls & "magic" cygdrive dir (was: RE: cygdrive stuff)


On Mon, Sep 24, 2001 at 10:44:08PM +1000, Robert Collins wrote:
> From: "Corinna Vinschen" <cygwin@cygwin.com>
> > You mean the existence of the real directory?
> 
> Sort of. I mean the requirement that to achieve a mixture of real and
> mounted entries, the fhandler class has to do it. Simply mounting all
> the virtual entries into a real directory should automagically result in
> them showing up in that parent dir's readdir() and being statable.

That's already the case.

> Is that more or less clear?

More or less.  How shall that work correctly?  Assume a user
creates a /dev/tty file.  ls -l /dev/tty results in

crw-rw-rw-    1 root     root       5,   1 Sep 24 14:54 /dev/tty

and the listing of the directory shows that entry, too.  Then the
fhandler wants to list the devices.  It would list tty again unless
it would check the listing of the real device for legal device
entries and marks tty as already listed or so.

I don't want to define special requirements here.  I'm just thinking
that a file system fhandler like /dev should list the real files
(if they exist) _and_ the virtual devices.  I don't think that's
a requirement for a /cygdrive fhandler or a /registry fhandler.
They could but they don't have to.

I hope we are not just busy to talk at cross-purposes :-)
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.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/


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