def reset_leaf(self, sr_uuid, vdi_uuid): if self.vdi_type != vhdutil.VDI_TYPE_VHD: raise xs_errors.XenError("Unimplemented") # safety check if not vhdutil.hasParent(self.path): raise util.SMException("ERROR: VDI %s has no parent, " + "will not reset contents" % self.uuid) vhdutil.killData(self.path)
def reset_leaf(self, sr_uuid, vdi_uuid): if self.vdi_type != vhdutil.VDI_TYPE_VHD: raise xs_errors.XenError('Unimplemented') # safety check if not vhdutil.hasParent(self.path): raise util.SMException("ERROR: VDI %s has no parent, " + \ "will not reset contents" % self.uuid) vhdutil.killData(self.path)