@@ -847,6 +859,28 @@ def removeInternalLV(self, int_lv): self.name) raise ValueError(msg)
- @property
- def cached(self):
return bool(self.cache)- @property
- def cache(self):
if self.exists and not self._cache:# check if we have a cache pool internal LVpool = Nonefor lv in self._internal_lvs:if isinstance(lv, LVMCachePoolLogicalVolumeDevice):pool = lvself._cache = LVMCache(self, size=pool.size, exists=True)return self._cache
Wow, good catch, thanks!
anaconda-patches@lists.fedorahosted.org