Hi folks!

I'm trying to get sshfs talking correctly to a server running the Java
Mina SSHD, and I'm hitting some problems (see [1] for original post).
What is confusing to me is that I get 3 different results for the 3
following cases:
a) sshfs running on fuse on linux talking to mina sshd (works)
b) sshfs running on macfuse talking to openssh (works)
c) sshfs running on macfuse talking to mina sshd (doesn't work!)

Work here means that open(2)ing a file with O_TRUNC | O_CREAT flags
correctly truncates the file upon open.  when macports sshfs talks to
the openssh server (which points to the same physical files on disk),
it doesn't correctly sets the SSH_FXF_TRUNC flag on the sftp call, BUT
right after it gets a handle to the open file it calls ftruncate,
which dispatches the truncate command via SSH_FXP_FSETSTAT so it works
fine.  Linux fuse sshfs (same version of sshfs minus the mac-specific
patch) seems to both correctly set the SSH_FXF_TRUNC flag as well as
call ftruncate, so thats even better.

But when I try to connect sshfs to the mina server, the file is never
truncated, presumably because it never saw an FXF_TRUNC or FSETSTAT
call.  So my question is where along the way could these flags have
gotten lost, and what suggestions do you have for me to help debug
this?

Thank you!
yours,
Bobby


1 - 
http://groups.google.com/group/macfuse/browse_thread/thread/7bbc76f6a3e34e2f/97625939e5edf4eb

-- 
You received this message because you are subscribed to the Google Groups 
"MacFUSE" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macfuse?hl=en.

Reply via email to