sbin_SCRIPTS = \
ceph-disk-prepare \
ceph-disk-activate \
- ceph-create-keys
+ ceph-create-keys \
+ mount.fuse.ceph
bin_SCRIPTS = ceph-run $(srcdir)/ceph-clsinfo ceph-debugpack ceph-rbdnamer
dist_bin_SCRIPTS =
# C/C++ tests to build will be appended to this
$(srcdir)/upstart/radosgw-all-starter.conf \
ceph-disk-prepare \
ceph-disk-activate \
- ceph-create-keys
+ ceph-create-keys \
+ mount.fuse.ceph
EXTRA_DIST += $(srcdir)/$(shell_scripts:%=%.in)
--- /dev/null
+#!/bin/sh
+#
+# Helper to mount ceph-fuse from /etc/fstab. To use, add an entry
+# like:
+#
+# # DEVICE PATH TYPE OPTIONS
+# id=admin /mnt/ceph fuse.ceph defaults 0 0
+# id=myuser,conf=/etc/ceph/foo.conf /mnt/ceph2 fuse.ceph defaults 0 0
+#
+# where the device field is a comma-separated list of options to pass on
+# the command line. The examples above, for example, specify that
+# ceph-fuse will authenticated as client.admin and client.myuser
+# (respectively), and the second example also sets the 'conf' option to
+# '/etc/ceph/foo.conf' via the ceph-fuse command line. Any valid
+# ceph-fuse can be passed in this way.
+
+set -e
+options='--'`echo $1 | sed 's/,/ --/g'`
+shift
+exec ceph-fuse $options $@