mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Better parsing of arguments passed to mount.fuse.ceph by mount command.
Signed-off-by: Florent Bautista <florent@coppint.com>
This commit is contained in:
parent
4056ee298a
commit
8fe75846bd
@ -19,11 +19,23 @@ set -e
|
||||
# convert device string to options
|
||||
cephargs='--'`echo $1 | sed 's/,/ --/g'`
|
||||
|
||||
# get mount point
|
||||
mountpoint=$2
|
||||
|
||||
shift 2
|
||||
|
||||
while [ "$1" != "-o" ]
|
||||
do
|
||||
shift
|
||||
done
|
||||
|
||||
opts=$2
|
||||
|
||||
# strip out 'noauto' option; libfuse doesn't like it
|
||||
opts=`echo $4 | sed 's/,noauto//' | sed 's/noauto,//'`
|
||||
opts=`echo $opts | sed 's/,noauto//' | sed 's/noauto,//'`
|
||||
|
||||
# strip out '_netdev' option; libfuse doesn't like it
|
||||
opts=`echo $opts | sed 's/,_netdev//' | sed 's/_netdev,//'`
|
||||
|
||||
# go
|
||||
exec ceph-fuse $cephargs $2 $3 $opts
|
||||
exec ceph-fuse $cephargs $mountpoint -o $opts
|
||||
|
Loading…
Reference in New Issue
Block a user