示例#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
示例#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
示例#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