Ejemplo n.º 1
0
 def undo(self):
     assert(len(self.components) > 0)
     name = getSnapshotDevName(self.lvolid)
     path = getDmDevPath(name)
     if os.path.exists(path):
         dmsetup_remove(name)
     self.path = None
Ejemplo n.º 2
0
 def undo(self):
     assert len(self.components) == 1
     name = getDextDevName(self.dext_ssvrid, self.lvolid)
     path = getDmDevPath(name)
     if os.path.exists(path):
         dmsetup_remove(name)
     self.path = None
Ejemplo n.º 3
0
 def undo(self):
     assert(len(self.components) > 0)
     if os.path.exists(getLinearDevPath(self.lvolid)):
         dmsetup_remove(getLinearDevName(self.lvolid))
     self.path = None