diff options
Diffstat (limited to 'results/scraper/launchpad-without-comments/1870098')
| -rw-r--r-- | results/scraper/launchpad-without-comments/1870098 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1870098 b/results/scraper/launchpad-without-comments/1870098 new file mode 100644 index 00000000..99119a6f --- /dev/null +++ b/results/scraper/launchpad-without-comments/1870098 @@ -0,0 +1,12 @@ +[block/vpc] dynamic disk header: off-by-one error for "num_bat_entries" + +In current qemu versions (observed in 5.0.0-rc1 as well as 2833ad487cfff7dc33703e4731b75facde1c561e), disk headers for dynamic VPCs are written with an incorrect "block allocation table entries" value. + +https://www.microsoft.com/en-us/download/details.aspx?id=23850 (the corresponding spec) states that: + +"Max Table Entries +This field holds the maximum entries present in the BAT. This should be equal to the number of blocks in the disk (that is, the disk size divided by the block size)." + +Inside the qemu code, the value is "disk size divided by the block size *plus one*". + +Calculating "num_bat_entries" as "total_sectors/(block_size / 512)" *should* fix the issue. \ No newline at end of file |