Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402089 - sys-fs/sshfs-fuse: Add direct file-descriptor support
Summary: sys-fs/sshfs-fuse: Add direct file-descriptor support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 18:41 UTC by Chris Wolfe
Modified: 2012-03-09 12:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed sshfs-fuse-2.4.ebuild (sshfs-fuse-2.4.ebuild,778 bytes, text/plain)
2012-03-08 18:47 UTC, Chris Wolfe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Wolfe 2012-02-03 18:41:48 UTC
A current limitation of sshfs is that it needs to create its own socket connections. This prevents attaching it to pipes or unix sockets, e.g. starting it on the target of an SSH connection ("reverse sshfs").

Have a patch that I will propose upstream to add a --directfd argument. So this bug should shortly morph into a request for either a version bump or a Gentoo-side patch. Opening it now in case someone has input.

e.g. Communicating with stdin and stdout:
$ sshfs -o directfd=0:1 none:/mnt/remote /shared/path

Currently using this to push a directory from sftp-server on the initiating end of an ssh connection to a mountpoint on the target of an ssh connection. Avoids all the socket forwarding that would otherwise be required.


Reproducible: Always
Comment 1 Chris Wolfe 2012-03-08 18:47:46 UTC
Created attachment 304655 [details]
Proposed sshfs-fuse-2.4.ebuild

This is a trivial copy of the existing sshfs-fuse-2.3.ebuild (Copyright year and keywords tweaked).

Did not see anything in the sshfs-fuse changelog which would imply a need to change the dependencies. From the src_configure comment, that part may be obsolete in both 2.3 and 2.4 ebuilds.
Comment 2 Chris Wolfe 2012-03-08 18:51:41 UTC
Upstream sshfs-fuse has revved to 2.4, so there's a first shot at the ebuild (and switched to Component=Ebuilds).

Quick list of added features from the ChangeLog:
  -o slave     Route sftp communication over stdin and stdout
  -o idmap=file, -o uidmap=FILE, -o gidmap=FILE
               Local files used to remap all the give UIDs/GIDs.
  -o workground=fstat
               For SFTP servers which don't support the FSTAT message.
Comment 3 Tim Harder gentoo-dev 2012-03-09 12:31:16 UTC
(In reply to comment #1)
> Created attachment 304655 [details]
> Proposed sshfs-fuse-2.4.ebuild
> 
> This is a trivial copy of the existing sshfs-fuse-2.3.ebuild (Copyright year
> and keywords tweaked).
> 
> Did not see anything in the sshfs-fuse changelog which would imply a need to
> change the dependencies. From the src_configure comment, that part may be
> obsolete in both 2.3 and 2.4 ebuilds.

If you don't change anything of note in an ebuild please don't attach it. Just say that a simple version bump is all that's needed.

Thanks for upstreaming your patch.