delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/14/23:36:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Mark Geisert <mark AT maxrnd DOT com>
Subject: Re: File operations really slow in emacs
Date: Wed, 15 Feb 2012 04:35:58 +0000 (UTC)
Lines: 20
Message-ID: <loom.20120215T052609-936@post.gmane.org>
References: <4F35C1E0 DOT 2020308 AT cs DOT utoronto DOT ca> <20120211101158 DOT GC9823 AT calimero DOT vinschen DOT de> <4F3910B2 DOT 3070905 AT cs DOT utoronto DOT ca> <4F3A63AF DOT 7010905 AT cs DOT utoronto DOT ca> <20120214135246 DOT GA25918 AT calimero DOT vinschen DOT de> <4F3A7357 DOT 4010505 AT cs DOT utoronto DOT ca> <20120214151745 DOT GD25918 AT calimero DOT vinschen DOT de> <20120214171815 DOT GF25918 AT calimero DOT vinschen DOT de> <20120214172657 DOT GG25918 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Corinna Vinschen writes:
> > > Does anybody know a system call which allows to fetch the network drive
> > > state (connected/not connected) without a billion microsecond timeout?
> > 
> > I just looked into this and I really don't see a way.  While there's a
> > NetUseGetInfo call, which is pretty fast even for unavailable drives,
> > it's not reliable.  Even if the drive is available again, it can take
> > minutes in which it still returns a status of "Session lost".  I'm not
> > sure this is what we want.
> 
> ...and the call doesn't work for NFS drives.  Too bad.

Does WNetGetConnection() do any better?  It's referenced on the NetUseGetInfo()
page in MSDN.  Claims to support other providers besides SMB.

Apart from that, is "net use" the mount table Ryan was referring to?  Can we
tell what it's doing to identify connected and disconnected drives?

..mark



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

- Raw text -


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