X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <1451.139.153.254.191.1217426437.squirrel@www.cs.stir.ac.uk>
In-Reply-To: <20080729151626.GF29031@calimero.vinschen.de>
References: <2870.139.153.254.191.1217245935.squirrel@www.cs.stir.ac.uk>     <20080728123114.GM29031@calimero.vinschen.de>     <1399.139.153.254.191.1217336060.squirrel@www.cs.stir.ac.uk>     <20080729134843.GY29031@calimero.vinschen.de>     <2536.139.153.254.191.1217343309.squirrel@www.cs.stir.ac.uk>     <20080729151626.GF29031@calimero.vinschen.de>
Date: Wed, 30 Jul 2008 15:00:37 +0100 (BST)
Subject: Re: opendir/readdir failure on non-Samba Unix-hosted remote       	volumess
From: "Sam Nelson" <sam@cs.stir.ac.uk>
To: cygwin@cygwin.com
Reply-To: sam@cs.stir.ac.uk
User-Agent: SquirrelMail/1.4.9a
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-stir.ac.uk-MailScanner: Found to be clean
X-stir.ac.uk-MailScanner-From: sam@cs.stir.ac.uk
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, July 29, 2008 16:16, Corinna Vinschen wrote:
> Here's one additional test I'd like to ask you to do for the sake of
> Cygwin 1.7.  Please replace the FileBothDirectoryInformation with
> FileDirectoryInformation and strace it again.  You'll suffer the crash,
> but until then, does the NtQueryDirectoryFile return successfully?

Set up like this, `ls' seems to be able to read directories (readdir
returns 0) but seems to have some sort of character-set disagreement with
the far end, with the result that the `strace' output becomes incredibly
messy when the `lstat' calls fail on files whose names appear to consist
of the right number of `?' for their length.  At the end of the directory,
I see

---------------------------------------------------------------
   57  108833 [main] ls 4200 fhandler_disk_file::readdir:
NtQueryDirectoryFile failed, status 0x80000006, win32 error 18
   49  108882 [main] ls 4200 geterrno_from_win_error: windows error 18 ==
errno 89
---------------------------------------------------------------

which looks reasonable (ENMFILE, `No more files', is it?) to me.

I don't see anything from `NtQueryDirectoryFile' until the report above.

So, the upshot appears to be that `FileIDBothDirectoryInformation' doesn't
work at all, `FileBothDirectoryInformation' works, and
`FileDirectoryInformation' is somewhere in between, but not in a useful
way.  Is that what you wanted to discover, or did I miss the point?

In user-operations terms, I now seem to have a situation I can deal with,
in that I have a latest-release version of `cygwin1.dll' that local users
can work with, and for the moment at least I have the means to tweak and
build any subsequent releases.  If at some point what's been discovered
could make it into the real release, I would be most grateful.
-- 
SAm.

-- 
Academic Excellence at the Heart of Scotland.
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

