This is the mail archive of the cygwin-patches@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]
Other format: [Raw text]

Re: [PATCH] improve performance of stat() operations (e.g. ls -lR )


On Mon, May 27, 2002 at 08:38:32PM +0200, Corinna Vinschen wrote:
>On Mon, May 27, 2002 at 01:43:54PM -0400, Chris Faylor wrote:
>> In the process of researching this, I discovered that NT has a mechanism
>> for determining a filename from an open handle so I'm trying to work
>> that into dtable.cc. 
>
>Interesting.  Could you provide some link? MSDN or so?

It's in the Native API reference.  NtQueryObject or NtQueryInformationFile.
I had something working nicely with NtQueryInformationFile but then found out
that it wasn't actually returning drive info.  So, the common google wisdom
was that NtQueryObject should be used instead.  I assume that will probably
return something like \device\whatever\dir\foo, though.

The Windows 9x stuff mentions the use of VXDs although there is a hint that
maybe that's not necessary.

cgf


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