Use device_mounted from ceph

This commit is contained in:
James Page 2013-06-25 14:02:47 +01:00
parent 7cc9aab281
commit 302373f4f9
1 changed files with 1 additions and 9 deletions

View File

@ -84,7 +84,7 @@ def config_changed():
sys.exit(1)
e_mountpoint = config('ephemeral-unmount')
if (e_mountpoint and filesystem_mounted(e_mountpoint)):
if (e_mountpoint and ceph.filesystem_mounted(e_mountpoint)):
umount(e_mountpoint)
osd_journal = config('osd-journal')
@ -143,14 +143,6 @@ def reformat_osd():
return False
def device_mounted(dev):
return subprocess.call(['grep', '-wqs', dev + '1', '/proc/mounts']) == 0
def filesystem_mounted(fs):
return subprocess.call(['grep', '-wqs', fs, '/proc/mounts']) == 0
@hooks.hook('mon-relation-changed',
'mon-relation-departed')
def mon_relation():