delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/29/11:15:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 29 Jul 2008 17:16:26 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: opendir/readdir failure on non-Samba Unix-hosted remote volumess
Message-ID: <20080729151626.GF29031@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <2870 DOT 139 DOT 153 DOT 254 DOT 191 DOT 1217245935 DOT squirrel AT www DOT cs DOT stir DOT ac DOT uk> <20080728123114 DOT GM29031 AT calimero DOT vinschen DOT de> <1399 DOT 139 DOT 153 DOT 254 DOT 191 DOT 1217336060 DOT squirrel AT www DOT cs DOT stir DOT ac DOT uk> <20080729134843 DOT GY29031 AT calimero DOT vinschen DOT de> <2536 DOT 139 DOT 153 DOT 254 DOT 191 DOT 1217343309 DOT squirrel AT www DOT cs DOT stir DOT ac DOT uk>
MIME-Version: 1.0
In-Reply-To: <2536.139.153.254.191.1217343309.squirrel@www.cs.stir.ac.uk>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jul 29 15:55, Sam Nelson wrote:
> On Tue, July 29, 2008 14:48, Corinna Vinschen wrote:
> > I don't know
> > how much time you want to invest, but if you want to, you will have to
> > dig deeper:
> >
> > - First of all, disable setting dir->__flags |= dirent_get_d_ino in
> >   fhandler_disk_file::opendir at line 1570.  This disables the
> >   FileIdBothDirectoryInformation call entirely, so only the
> >   FileBothDirectoryInformation call is left.
> 
> Sorted!  As of that commenting out, `ls' works.  `echo *' is a bit more
> Unix-like than it has been for a while, as well.  `strace ls' appears
> trouble-free.

What a luck.  So just using the info class FileIdBothDirectoryInformation
plays havoc with TAS.  For the time being, I suggest to keep the above
setting disabled and use that tweaked Cygwin in your environment.

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?

> So, then, to whom do I have to be Really, Really Nice, to make that
> official?  I have doughnuts.

That would be me.  I can add a special case for file systems choking on
FileIdBothDirectoryInformation.  But I fear the doughnuts will be cold
and stony when they arrive here...  Thanks for your patience to go
through this.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

- Raw text -


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