Skip to contentSkip to conversation

incorrect value of last block in block device protocol for partitions

BUG Heinrich Schuchardt 1 participant 1 message Jan 23, 2021

lore
Share & tools
lore
#0 lore raw

The value for Media.LastBlock of the block IO protocol for partitions is incorrect for all partitions that do not end on the last block of the device.

lib/efi_loader/efi_disk.c(448) efi_disk_add_dev():
diskobj->media.last_block = desc->lba - offset;

desc->lba is the end of the disk not of the partition.

Best regards

Heinrich