1
0
mirror of https://github.com/ceph/ceph synced 2025-03-31 16:25:56 +00:00

rbdmap: bugfix upstart script

It seems like the upstart script is lacking a little behind [the initscript](https://github.com/ceph/ceph/blob/master/src/init-rbdmap#L44-L49); however, this bugfix makes it actually do what it should do.

Before, the bug made the job just ignore all parameters, with the following error in /var/log/upstart/rbdmap.log:

```
rbd map volumes/volume-one
rbd: add failed: (22) Invalid argument
```

Signed-off-by: Stephan Renatus <s.renatus@x-ion.de>
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Stephan Renatus 2014-03-10 15:17:41 +01:00 committed by Sage Weil
parent 83731a75d7
commit aba5b7cccb

View File

@ -27,7 +27,7 @@ pre-start script
DEV=rbd/$DEV
;;
esac
for PARAM in $(echo $PARAM | tr ',' '\n'); do
for PARAM in $(echo $PARAMS | tr ',' '\n'); do
CMDPARAMS="$CMDPARAMS --$(echo $PARAM | tr '=' ' ')"
done
if [ ! -b /dev/rbd/$DEV ]; then