Skip to content

Commit d3e046a

Browse files
committed
lvm in progress
Signed-off-by: Ronan Abhamon <[email protected]>
1 parent a74374b commit d3e046a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/LVMSR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ def _setType(self, vdiType: str) -> None:
20462046
self.lvmcowutil = LvmCowUtil(self.cowutil)
20472047

20482048
def _initFromVDIInfo(self, vdiInfo):
2049-
self._setType(vdiType)
2049+
self._setType(vdiInfo.vdiType)
20502050
self.lvname = vdiInfo.lvName
20512051
self.size = vdiInfo.sizeVirt
20522052
self.utilisation = vdiInfo.sizeLV

drivers/cleanup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,7 @@ def load(self, info=None) -> None:
12221222
self.hidden = info.hidden
12231223
self.parentUuid = info.parentUuid
12241224
self.path = os.path.join(self.sr.path, self.fileName)
1225+
self.lvmcowutil = LvmCowUtil(self.cowutil)
12251226

12261227
@staticmethod
12271228
def extractUuid(path):

0 commit comments

Comments
 (0)