X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: slow share = slow scripts?
Date:  Fri, 26 May 2006 10:37:52 -0500
Lines: 35
Message-ID: <e577ch$6p3$1@sea.gmane.org>
References:  <e54ihh$hnf$2@sea.gmane.org> <001c01c6806d$a1249e40$020aa8c0@DFW5RB41>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5.0.2 (X11/20060420)
In-Reply-To: <001c01c6806d$a1249e40$020aa8c0@DFW5RB41>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
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

Gary R. Van Sickle wrote:
>> From: mwoehlke
> [snip]
>>  Also, why *is* 
>> fstat() so inefficient?
> 
> Short answer:  because it gets a bunch of information about the file that
> isn't necessarily available without hitting (open()ing) the file itself.

Like... what? Inode information? Looking at the man page for 'stat' (on 
Linux, anyway; apparently I don't have the libc man pages installed on 
Cygwin), I don't see anything that I would expect to need to *open* the 
file to retrieve.

Way way back in the OP, I mentioned that Interix doesn't have this 
problem, which would imply a "design flaw" in Cygwin. Maybe (probably) 
it is a *necessary* design flaw, BUT...

A while back I was thinking about tying Cygwin into the Interix 
subsystem for the sake of certain file-system calls... and things like 
fstat in particular. If the problem is that Cygwin's fstat 
implementation requires opening the file and Interix's does not, this 
just became a *very* compelling (for me, at least) argument to taking on 
that project.

Please note that I'm not asking anyone to do this... given the response 
I got last time, I don't have any illusions that this will happen short 
of my doing it myself (at which point I will be derided, and my work 
will never leave my office). However, I would appreciate any existing 
knowledge, or even pointers to where to start poking around, that anyone 
would care to share.

-- 
Matthew
Feed the hippo. Love the hippo. Run from the hippo.


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

