call map_partition_read()

This commit is contained in:
Laurent Vivier 2007-10-09 20:15:49 +00:00
parent e07088c23c
commit 499cf44318

View File

@ -14,16 +14,5 @@
int map_bootblock_read(map_t* map, char* bootblock)
{
off_t offset;
int ret;
if (!map_partition_is_valid(map))
return -1;
offset = read_long((u_int32_t*)&map->partition.PyPartStart) * 512;
ret = map->device->read_sector(map->device,
offset, bootblock, BOOTBLOCK_SIZE);
return ret;
return map_partition_read(map, 0, BOOTBLOCK_SIZE / FLOPPY_SECTOR_SIZE, bootblock);
}