mounting fuse from fstab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We put together a simple helper script for mounting ceph-fuse via fstab 
(below).  Some of man pages indicate that the # syntax is deprecated, 
however, and it's not clear to me that whatever replaces it (mount.fuse) 
will let us accomplish the same thing (pass something along the mount, 
control command line options).  Also, it's unclear *when* it was 
deprecated; if we want this to work on, say, RHEL, the replacement 
might not be there.

Anybody know if doing something like the below is a bad idea?

Thanks!
sage

---

#!/bin/sh
#
# Helper to mount ceph-fuse from /etc/fstab.  To use, add an entry
# like:
#
# # DEVICE                     PATH         TYPE   OPTIONS
# /sbin/ceph-fuse-mount#admin  /mnt/ceph    ceph   defaults   0 0
#
# where 'admin' can be replaced with the client id to use when
# authenticating (if it is not client.admin).  This will also control
# which section of ceph.conf will be applied to the ceph-fuse process.

set -e
id="$1"
shift
exec ceph-fuse -i $id $@


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux