]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-ceph: do umount when the path exists. 6866/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Wed, 9 Dec 2015 07:16:59 +0000 (15:16 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Sun, 13 Dec 2015 08:17:56 +0000 (16:17 +0800)
commit09e21b495ba6e63b71c621d4e2db957b8a923b08
tree772f27edf48b2574c0a56bcb88e051fd9a636a5b
parentf9f4d5c6628fe75fdf55313c37f3de7575bdd91a
init-ceph: do umount when the path exists.

If the specified mount point is in use, umount it instead
of skipping mounting the fs.

In previous code , if we forgot that we already mount something unrelated to
*this ceph osd * to the particular mount point, we will skip the mount and
finally get an error complaining superblock not matching OSD ID.

umount & remount is better because
1. If the wrong FS not in use, we can get the right FS we want and make ceph boot smoothly.
2. If the wrong FS is in use, we will get EBUSY on umount, which seems explain the situation
more clearly than superblock mismatch.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/init-ceph.in