chaoyinggg / macfuse

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

Aquamacs can't save remote file using sshfs #236

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Mount a remote filesystem using sshfs or Macfusion.

2. Use Aquamacs to edit a large-ish file on the remote filesystem(in my 
case, a 24kb text file).

3. Attempt to save the file.

What is the expected output? What do you see instead?

Aquamacs can't save the file and prints the following error:

IO error writing /Volumes/xxx/foo.txt: Bad file descriptor

The following output also appears in dmesg:

MacFUSE: starting (version 0.4.0, Jun  5 2007, 20:59:22)
MacFUSE: OUCH! daemon did not give fh (type=0, err=-1)
MacFUSE: revoking vnode 0xa168420
MacFUSE: OUCH! daemon did not give fh (type=0, err=-1)
MacFUSE: OUCH! daemon did not give fh (type=0, err=-1)
MacFUSE: OUCH! daemon did not give fh (type=2, err=-1)
MacFUSE: OUCH! daemon did not give fh (type=0, err=-1)

What version of the product are you using? On what operating system?

MacFUSE 0.4.0
sshfs 0.3.0
MacFusion 1.2 beta 2

Local OS X system is 10.4.10 with all latest patches as of 7/8/07.

Remote system is Ubuntu Feisty running a 2.6.20.3-ubuntu1 kernel and
OpenSSH_4.3p2 Debian-8ubuntu1, OpenSSL 0.9.8c 05 Sep 2006

Please provide any additional information below.

TextEdit and OS X's built-in emacs work fine on the same file.  Once the
file is pared down to a certain size (about 9kb in my case), the file can
be saved properly in Aquamacs.

This sounds similar to Issue 214, so I compiled the example setitimer
wrapper and launched Aquamacs using this command line:

DYLD_INSERT_LIBRARIES=/tmp/libsetitimer.dylib open /Applications/Aquamacs\
Emacs.app

but it didn't resolve the problem.

Original issue reported on code.google.com by drew.h...@gmail.com on 8 Jul 2007 at 7:27

GoogleCodeExporter commented 8 years ago
Forgot to note that I'm running Aquamacs 1.0b.

Original comment by drew.h...@gmail.com on 8 Jul 2007 at 7:28

GoogleCodeExporter commented 8 years ago
Whether the libsetitimer kludge works or not, it is the same issue.

Original comment by si...@gmail.com on 8 Jul 2007 at 8:46

GoogleCodeExporter commented 8 years ago
Any ETA for FUSE_INTERRUPT support, then?  Thanks!

Original comment by drew.h...@gmail.com on 8 Jul 2007 at 9:16

GoogleCodeExporter commented 8 years ago
Just adding FUSE_INTERRUPT support probably won't solve this--one might need to 
change emacs too. I have 
experimental FUSE_INTERRUPT support in the source tree already. I might enable 
it in the next release of 
MacFUSE.

Original comment by si...@gmail.com on 9 Jul 2007 at 5:58

GoogleCodeExporter commented 8 years ago
For the record, for the past year or two I've been using sshfs and emacs21 on a
GNU/Linux host to edit files on the same remote machine (including the same 
file that
I'm having problems with in MacFUSE), and I've never had a problem like this 
one.

Thanks for the FUSE_INTERRUPT support, in any case!

Original comment by drew.h...@gmail.com on 9 Jul 2007 at 5:15