diff --git a/pkg/util/vmdkutils/vmdkutils.go b/pkg/util/vmdkutils/vmdkutils.go index b3c10940de..7a88ce5753 100644 --- a/pkg/util/vmdkutils/vmdkutils.go +++ b/pkg/util/vmdkutils/vmdkutils.go @@ -24,7 +24,9 @@ type SVMDKInfo struct { } const ( - extentPatternString = `^RW \d+ VMFS\w* \"(?P[^"]+)` + //RW 20971520 VMFS "89334fec-7013-46cb-8d7b-8271cbe1a175_1-flat.vmdk" + //RW 62914560 SESPARSE "89334fec-7013-46cb-8d7b-8271cbe1a175-sesparse.vmdk" + extentPatternString = `^RW \d+ (VMFS|SESPARSE)\w* \"(?P[^"]+)` ) var ( @@ -44,7 +46,7 @@ func ParseStream(stream io.Reader) (*SVMDKInfo, error) { matches := extentPatternRegexp.FindStringSubmatch(line) if len(matches) > 0 { // log.Debugf("%#v", matches) - info.ExtentFile = matches[1] + info.ExtentFile = matches[2] findExtent = true } else { equalPos := strings.IndexByte(line, '=')