mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
rdb: update init-rbdmap to fix duplicate mount point
According to the manual 'mount -f' adds an entry in /etc/mtab. Therefore the 'mount -v' command needs the flag -n to avoid duplicate entries in /etc/mtab. Signed-off-by: Karel Striegel <karel@striegel.be>
This commit is contained in:
parent
80c816c794
commit
be05d9dc5e
@ -67,7 +67,7 @@ do_map() {
|
||||
## Mount new rbd
|
||||
MNT_RV=""
|
||||
mount --fake /dev/rbd/$DEV >>/dev/null 2>&1 \
|
||||
&& MNT_RV=$(mount -v /dev/rbd/$DEV 2>&1)
|
||||
&& MNT_RV=$(mount -vn /dev/rbd/$DEV 2>&1)
|
||||
[ -n "${MNT_RV}" ] && log_action_msg "mount: ${MNT_RV}"
|
||||
|
||||
## post-mapping
|
||||
|
Loading…
Reference in New Issue
Block a user