[Libguestfs] [file PATCH] Properly detect .vdi (VirtualBox disk image) files

Christos Zoulas christos at zoulas.com
Tue Nov 22 13:30:25 UTC 2011


On Nov 22,  8:54am, rjones at redhat.com ("Richard W.M. Jones") wrote:
-- Subject: [file PATCH] Properly detect .vdi (VirtualBox disk image) files

| The current test for .vdi files is incorrect.  It tries to detect the
| string "<<< Sun xVM VirtualBox Disk Image >>>".  However this string
| is just free text and .vdi files often contain different strings (ref: [1]).
| 
| The correct test in this patch looks for the magic number at offset
| 0x40 in the file (ref: [2]).

Fixed, thanks!

christos




More information about the Libguestfs mailing list