Skip to content

Commit

Permalink
Add support for mounting from /etc/fstab
Browse files Browse the repository at this point in the history
Fixes: libfuse#92.
  • Loading branch information
Nikratio committed Sep 20, 2017
1 parent 848ff30 commit 949d76d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Unreleased Changes
------------------

* Add support for mounting from /etc/fstab
* Dropped support for building with autotools.
* Added missing options to man page.

Expand Down
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ else
message('rst2man not found, not building manual page.')
endif

meson.add_install_script('utils/install_helper.sh',
get_option('sbindir'),
get_option('bindir'))


subdir('test')

8 changes: 8 additions & 0 deletions sshfs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ without SSHFS being informed about that. As a workaround, you can try
to mount with ``-o ServerAliveInterval=15``. This will force the SSH
connection to stay alive even if you have no activity.

Mounting from /etc/fstab
========================

To mount an SSHFS filesystem from ``/etc/fstab``, simply use ``sshfs`
as the file system type. (For backwards compatibility, you may also
use ``fuse.sshfs``).


See also
========

Expand Down
19 changes: 19 additions & 0 deletions utils/install_helper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
#
# Don't call this script. It is used internally by the Meson
# build system. Thank you for your cooperation.
#

set -e

bindir="$2"
sbindir="$1"
prefix="${MESON_INSTALL_DESTDIR_PREFIX}"

mkdir -p "${prefix}/${sbindir}"

ln -svf --relative "${prefix}/${bindir}/sshfs" \
"${prefix}/${sbindir}/mount.sshfs"

ln -svf --relative "${prefix}/${bindir}/sshfs" \
"${prefix}/${sbindir}/mount.fuse.sshfs"

0 comments on commit 949d76d

Please sign in to comment.