Skip to content

Commit

Permalink
In Progress
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Thenot <[email protected]>
Co-authored-by: Guillaume <[email protected]>
  • Loading branch information
Nambrok and gthvn1 committed Jan 13, 2025
1 parent c900556 commit 8bb63b8
Show file tree
Hide file tree
Showing 2 changed files with 606 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/cowutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,12 @@ def getVdiTypeFromImageFormat(image_format: ImageFormat) -> str:

def getCowUtil(vdi_type: str) -> CowUtil:
import vhdutil
import qcow2util

if getImageFormatFromVdiType(vdi_type) in (ImageFormat.RAW, ImageFormat.VHD):
return vhdutil.VhdUtil()

if getImageFormatFromVdiType(vdi_type) in (ImageFormat.QCOW2):
return qcow2util.QCowUtil()

assert False, f"Unsupported VDI type: {vdi_type}"
Loading

0 comments on commit 8bb63b8

Please sign in to comment.