]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rdb: update init-rbdmap to fix duplicate mount point 3597/head
authorKarel Striegel <karel.striegel@ipc.be>
Tue, 3 Feb 2015 10:42:06 +0000 (11:42 +0100)
committerKarel Striegel <karel.striegel@ipc.be>
Tue, 3 Feb 2015 10:42:06 +0000 (11:42 +0100)
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>
src/init-rbdmap

index a4e986318efb0d7d61ccb607660a75d6c40fa7c4..a9d682681f4360da0c275da7f06063bc2373465b 100755 (executable)
@@ -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