delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/25/13:14:10

X-Spam-Check-By: sourceware.org
Message-ID: <4475E588.2040704@cygwin.com>
Date: Thu, 25 May 2006 13:12:40 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: slow share = slow scripts?
References: <e52m82$rgm$1 AT sea DOT gmane DOT org> <4474FCB5 DOT 9070906 AT cygwin DOT com> <e54elr$41p$1 AT sea DOT gmane DOT org> <4475C82B DOT 9060207 AT cygwin DOT com> <e54ihh$hnf$2 AT sea DOT gmane DOT org>
In-Reply-To: <e54ihh$hnf$2@sea.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

mwoehlke wrote:
> Larry Hall (Cygwin) wrote:
>> On 05/25/2006, mwoehlke wrote:
>>> Larry Hall (Cygwin) wrote:
>>>> Take a look at the -x, -E, and -X flags of 'mount'. Perhaps these 
>>> will help
>>>> you.
>>>
>>> Hmm, those are mutually contradictory... guess I'll "experiment". Out 
>>> of curiosity, what are any of these expected to do? 
>>
>> They are indeed mutually exclusive.  See 'man mount' for an 
>> explanation of the
>> flags.  You might want to try -x or -X.
> 
> Right, I *was* looking at the man, which is why I was confused. It 
> doesn't say why this would help, though; does it somehow allow Cygwin to 
> skip the fstat() call? Also, why *is* fstat() so inefficient? Can 
> anything be done about it?

-x and -X tell Cygwin to treat all files under that mount point (or the file
itself, if that's what you gave to mount) as executable.  That keeps Cygwin
from needing to ask the file for this information, which would otherwise mean
the file has to be opened to make the determination.

> I *am* going to play with them, if I can convince Cygwin to let me 
> *un*mount the path. :-)

You could use the '-f' flag to 'mount'.



-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

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