On Thu, Oct 30, 2014 at 01:26:14PM +0100, Kevin Wolf wrote: > The only image format driver that even potentially accesses anything > after 512 bytes in its bdrv_probe() implementation is VMDK, which reads > a plain-text descriptor file. In practice, the field it's looking for > seems to come first and will be well within the first 512 bytes, too. > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > block.c | 2 +- > include/block/block_int.h | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-)
I tried to find a logical reason for the historical 1024 and 2048 byte sizes but it's not clear. 512 should be fine. Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
pgpezph3Ge4wu.pgp
Description: PGP signature