]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk-activate: avoid duplicating mounts if already activated
authorSage Weil <sage@inktank.com>
Tue, 30 Oct 2012 21:17:56 +0000 (14:17 -0700)
committerSage Weil <sage@inktank.com>
Mon, 12 Nov 2012 19:53:23 +0000 (11:53 -0800)
commite35e7e2bcb749e3ee00f1f93bc6b17bde8329414
tree2fb2a30e1d4cd0e8320b8e1f04166a325cdad29e
parent0c9bbb3b4b4dbe6f0a12960785e35af9c748701a
ceph-disk-activate: avoid duplicating mounts if already activated

If the given device is already mounted at the target location, do not
mount --move it again and create a bunch of dup entries in the /etc/mtab
and kernel mount table.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit c435d314caeb5424c1f4482ad02f8a085317ad5b)
src/ceph-disk-activate