Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion util/qemuimgfmt/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ const (
VHD = TImageFormat("vhd")
ISO = TImageFormat("iso")
RAW = TImageFormat("raw")
TGZ = TImageFormat("tgz")
)

var supportedImageFormats = []TImageFormat{
QCOW2, VMDK, VHD, ISO, RAW,
QCOW2, VMDK, VHD, ISO, RAW, TGZ,
}

func IsSupportedImageFormat(fmtStr string) bool {
Expand Down Expand Up @@ -62,6 +63,8 @@ func String2ImageFormat(fmt string) TImageFormat {
return ISO
case "raw":
return RAW
case "tgz", "tar":
return TGZ
}
// log.Fatalf("unknown image format!!! %s", fmt)
return TImageFormat(fmt)
Expand Down
Loading