Loading ccnode/lvm.py +8 −2 Original line number Diff line number Diff line Loading @@ -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') Loading Loading
ccnode/lvm.py +8 −2 Original line number Diff line number Diff line Loading @@ -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') Loading