Skip to content
Snippets Groups Projects
Commit e64a5809 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix: DM table change followed by a suspend/resume

parent 7913589d
No related branches found
No related tags found
No related merge requests found
......@@ -242,11 +242,17 @@ class LVM(object):
'''
'''
with self._mutex.write:
rc = Exec.silent([self.DMSETUP,
rc1 = Exec.silent([self.DMSETUP,
'load',
name],
input=table)
if rc:
rc2 = Exec.silent([self.DMSETUP,
'suspend',
name])
rc3 = Exec.silent([self.DMSETUP,
'resume',
name])
if rc1 or rc2 or rc3:
raise LVMError('failed to change DM table')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment