This is the mail archive of the
mailing list for the Cygwin project.
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?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple