Re: [Qemu-devel] [PATCH] qcow2: Use pread for inactive L1 in overlap check

2013-10-09 Thread Kevin Wolf
Am 09.10.2013 um 10:42 hat Max Reitz geschrieben: > Currently, qcow2_check_metadata_overlap uses bdrv_read to read inactive > L1 tables from disk. The number of sectors to read is calculated through > a truncating integer division, therefore, if the L1 table size is not a > multiple of the sector s

[Qemu-devel] [PATCH] qcow2: Use pread for inactive L1 in overlap check

2013-10-09 Thread Max Reitz
Currently, qcow2_check_metadata_overlap uses bdrv_read to read inactive L1 tables from disk. The number of sectors to read is calculated through a truncating integer division, therefore, if the L1 table size is not a multiple of the sector size, the final entries will not be read and their entries