bispawel / macfuse

Automatically exported from code.google.com/p/macfuse
Other
0 stars 0 forks source link

sshfs-static thinks files are corrupt after they have been edited on the server #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Connect to a server via sshfs (I use sshfs root@machine:/
/Volumes/machine -oreconnect,ping_diskarb,volname=machine,fsname=machine)
2. On your sshfs client, open a file (whether or not you close the file
before step 3 is irrelevant)
3. On your sshfs server, edit the file (I did an 'svn revert' on it, as
well as trying with just a regular 'cp')
4. On your sshfs client, re-open the file (I used both Emacs and less for
steps 2 and 4).

What is the expected output? What do you see instead?
I expect to be able to see the remotely-made changes to the file. Instead,
I see one of two behaviors:
1. The file just appears to be truncated if it was made shorter by step 3
above (in my case, I had a function from which I had removed some lines,
but instead of removing those lines, it just truncated the file after n
bytes (where n is, I believe, the new size of the file) instead of actually
showing edits to the file).
2. The file, if it was made longer in step 3, has a bunch of junk
characters at the end instead of the additions made to the file.

What version of the product are you using? On what operating system?
sshfs-static 0.1.0, OS X 10.0.4.8 (Build 8L127), openssh from macports
(v4.5p1).

Please provide any additional information below.
This also occurred for me when using the older release of macfuse (the one
with macfuse core, support, and sshfs in one .dmg). The output of sshfs -d
is attached (directory and file names changed to protect work information).

Original issue reported on code.google.com by todessc...@gmail.com on 25 Jan 2007 at 5:51

Attachments:

GoogleCodeExporter commented 8 years ago
No, you can't really use the file system like that. The upcoming release 
(0.1.9) will let you do what you're trying, 
but there will be other caveats. See this thread for details:

http://groups.google.com/group/macfuse-devel/browse_thread/thread/2e65a3f2b70605
b2/

I'm marking this as "fixed" (it is fixed to the extent I am inclined to fix it) 
in the source.

Original comment by si...@gmail.com on 25 Jan 2007 at 6:01