#1049 new defect

gvfs-fuse doesn't work (completely) with the sftp interface

Reported by: bj0 Owned by: davidsarah
Priority: major Milestone: soon
Component: code-frontend-ftp-sftp Version: 1.6.1
Keywords: sftp gvfs fuse docs Cc:
Launchpad Bug:

Description (last modified by warner)

When using the SFTP frontend via gvfs FUSE, there is a bug that causes some file operations to fail. Since this also happens with other SFTP implementations, and with very simple commands (see below), the bug is likely to be in gvfs FUSE -- although that doesn't necessarily mean that we can't work around it.

Some applications appear to work, like vi and gedit, but some do not, like OpenOffice.

You can see that this bug is present by creating a simple text file: file1, then:

> cat file1 > file2
> cat file2 >> file1
cat: write error: Operation not supported

file1 is zero-length after the second cat.

This bug is present when I use gvfs to connect to an openssh-server also.

Change History (11)

comment:1 Changed at 2010-05-19T03:10:44Z by davidsarah

  • Description modified (diff)
  • Keywords sftp gvfs fuse added

comment:2 Changed at 2010-05-19T03:11:54Z by davidsarah

  • Component changed from unknown to code-frontend

The bug probably is not in our SFTP frontend, but any workaround would have to be implemented there (if possible).

comment:3 Changed at 2010-05-19T03:15:40Z by davidsarah

  • Keywords docs added
  • Milestone changed from undecided to 1.7.0
  • Owner changed from nobody to davidsarah
  • Status changed from new to assigned

We need to document this in source:docs/frontends/FTP-and-SFTP.txt . Accepting for 1.7 as a documentation bug.

comment:4 Changed at 2010-05-19T03:18:12Z by zooko

This ticket should be cross-linked to a ticket on the Gnome Bugzilla. I also like to use http://launchpad.net to track issues that effect more than one project. You can create a ticket in launchpad which tracks both this ticket (Tahoe-LAFS #1049) and that ticket (Gnome #whatever-it-comes-out-to-be) and any other projects that are affected by this issue.

comment:5 Changed at 2010-06-08T03:41:22Z by davidsarah

  • Resolution set to wontfix
  • Status changed from assigned to closed

wiki:SftpFrontend#Gnomevirtualfilesystemgvfs documents that gvfs-FUSE is not supported, and why:

gvfs-FUSE, on the other hand, is not recommended for use with Tahoe. This is because it has to map POSIX filesystem requests onto GIO requests, and this mapping loses information -- some combinations of 'open' flags cannot be expressed in the GIO API, for example. Therefore it is impossible for gvfs-FUSE to provide a fully correct FUSE filesystem (or even one that is "good enough" for many applications).

Basically I think that gvfs-FUSE is misguided and cannot work. (sshfs doesn't have the problem described here, because it is mapping from the FUSE interface directly to SFTP, without GIO or any other intermediate layer.)

Last edited at 2011-08-18T22:42:08Z by zooko (previous) (diff)

comment:6 Changed at 2010-06-14T03:19:04Z by zooko

If you can explain more precisely what flags gvfs-fuse can't translate, which cause this to not-work, then I'll open a ticket on the Gnome and/or OpenOffice? trackers for it.

Version 0, edited at 2010-06-14T03:19:04Z by zooko (next)

comment:7 Changed at 2010-06-14T03:19:13Z by zooko

  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:8 Changed at 2010-06-14T03:19:24Z by zooko

  • Status changed from reopened to new

comment:9 Changed at 2010-06-18T23:57:44Z by zooko

  • Milestone changed from 1.7.0 to soon

comment:10 Changed at 2011-08-19T20:12:06Z by zooko

  • Description modified (diff)

comment:11 Changed at 2014-12-02T19:42:39Z by warner

  • Component changed from code-frontend to code-frontend-ftp-sftp
  • Description modified (diff)
Note: See TracTickets for help on using tickets.