mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
rbdmap: default RBDMAPFILE to reasonable value
Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
parent
a7a36581ff
commit
27bbf3e63c
@ -1,6 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
do_map() {
|
||||
|
||||
# default to reasonable value if RBDMAPFILE not set in environment
|
||||
printenv RBDMAPFILE >/dev/null || local RBDMAPFILE=/etc/ceph/rbdmap
|
||||
|
||||
if [ ! -f "$RBDMAPFILE" ]; then
|
||||
logger -p "daemon.warning" -t init-rbdmap "No $RBDMAPFILE found."
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user