This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File operations really slow in emacs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]