> On Dec 3, 2007 5:19 AM, Miklos Szeredi wrote:
> > > Yes it is weird. I hope you can help me with this problem as sshfs is
> > > so much simpler than nfs.

> >
> > Can you please do one more thing: start up sshfs normally, then on the
> > server do a strace of the sftp-server process:
> >
> > strace -o /tmp/strace.log -p `pidof sftp-server`

>
> Attached the sftp-server log.


Thanks. I think I can see the explanation. Here's the failure:

read(3, "\0\0\0H\3\0\0\3\347\0\0\0003/mnt/exports/tools/"..., 16384) = 140
open("/mnt/exports/tools/ISE9.2i/bin/lin64/libXst_Core.so", O_RDONLY) = 105
close(105) = 0
select(5, [3], [4], NULL, NULL) = 1 (out [4])
write(4, "\0\0\0\30e\0\0\3\347\0\0\0\4\0\0\0\7Failure\0\0\0\ 0", 28) = 28

The file handle is 105, which suggests, that there's some limit around
100 open files. Looking at the sftp-server source confirms this:

Handle handles[100];

So, unfortunately it seems sftp-server can only handle 100 open files
at a time.

It's easy enough to fix, if you are willing to recompile the
sftp-server binary.

Miklos
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev