File operations really slow in emacs

Mark Geisert mark@maxrnd.com
Wed Feb 15 04:36:00 GMT 2012


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



More information about the Cygwin mailing list