Interesting! This only occurs when connected to Mina SSHD, not plain 'ole openssh's sshd. Guess I have more investigating to do.
On Mar 30, 3:33 pm, Bobby Powers <[email protected]> wrote: > Hi folks, I'm having a major problem with sshfs. I'm using macfuse > 2.0.3.2 along with the static sshfs from svn (for leopard). > > I see the following behavior: > $ echo -n 'abcdefghijklmnopqrstuvwxyz' > test > $ cp test /mnt/point/ > $ echo -n '1234567890' > test > $ cp test /mnt/point/ > $ cat test > 1234567890 > $ cat /mnt/point/test > 1234567890klmnopqrstuvwxyz > > I've checked, the cp command does an open and write(2)s the correct # > of bytes (10 in this case) to /mnt/point/test. However sshfs shows > this in the logs: > > OPEN[1072640] flags: 0x1 /sshd-test/_resources/pages/test > unique: 2, opcode: SETATTR (4), nodeid: 7, insize: 168 > [00244] FSETSTAT > [00244] STATUS 21bytes (1ms) > [00245] LSTAT > [00245] ATTRS 33bytes (1ms) > unique: 2, error: 0 (Unknown error: 0), outsize: 128 > unique: 1, opcode: GETATTR (3), nodeid: 7, insize: 40 > [00246] LSTAT > [00246] ATTRS 33bytes (1ms) > unique: 1, error: 0 (Unknown error: 0), outsize: 128 > unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40 > unique: 0, error: 0 (Unknown error: 0), outsize: 96 > unique: 2, opcode: OPEN (14), nodeid: 7, insize: 48 > [00247] OPEN > [00248] LSTAT > [00247] HANDLE 49bytes (2ms) > [00248] ATTRS 33bytes (2ms) > [00249] FSTAT > [00249] ATTRS 33bytes (0ms) > unique: 2, error: 0 (Unknown error: 0), outsize: 32 > OPEN[1072864] flags: 0x0 /sshd-test/_resources/pages/test > unique: 1, opcode: READ (15), nodeid: 7, insize: 64 > READ[1072864] 26 bytes from 0 > [00250] READ > [00250] DATA 40bytes (0ms) > READ[1072864] 26 bytes > unique: 1, error: 0 (Unknown error: 0), outsize: 42 > unique: 0, opcode: WRITE (16), nodeid: 7, insize: 90 > WRITE[1072640] 26 bytes to 0 > [00251] WRITE > WRITE[1072640] 26 bytes > unique: 0, error: 0 (Unknown error: 0), outsize: 24 > unique: 2, opcode: GETATTR (3), nodeid: 7, insize: 40 > [00252] LSTAT > [00251] STATUS 21bytes (1ms) > [00252] ATTRS 33bytes (1ms) > unique: 2, error: 0 (Unknown error: 0), outsize: 128 > unique: 1, opcode: SETATTR (4), nodeid: 7, insize: 168 > [00253] SETSTAT > [00253] STATUS 21bytes (0ms) > [00254] LSTAT > [00254] ATTRS 33bytes (1ms) > unique: 1, error: 0 (Unknown error: 0), outsize: 128 > > It gets (opens for reading, and then reads) the remote file > ('abc...xyz'), then writes 26 bytes (not 10)! > > This makes sshfs unusable for me, and I haven't been able to get a > version that I compiled to run successfully (It gives Input/Output > errors), so I can't debug it more. I suspect its some kind of problem > with caching, but happens even when i specify cache=no > > The interesting thing is that sshfs on linux works correctly. Does > anyone have any insight into this? > > yours, > Bobby -- 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.
