]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume lvm.activate check if lv device is mounted at path
authorAlfredo Deza <adeza@redhat.com>
Tue, 24 Oct 2017 20:26:03 +0000 (16:26 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 24 Oct 2017 20:26:03 +0000 (16:26 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/activate.py

index d4abb944a61d846d8b2f23faa97389075464d4b9..7d626a093019ce93c16408c0e34a15969c7af93d 100644 (file)
@@ -37,7 +37,7 @@ def activate_filestore(lvs):
     # mount the osd
     source = osd_lv.lv_path
     destination = '/var/lib/ceph/osd/%s-%s' % (conf.cluster, osd_id)
-    if not system.is_mounted(source, destination=destination):
+    if not system.device_is_mounted(source, destination=destination):
         process.run(['sudo', 'mount', '-v', source, destination])
 
     # always re-do the symlink regardless if it exists, so that the journal