call map_partition_write()

This commit is contained in:
Laurent Vivier 2007-10-09 20:15:32 +00:00
parent c5f68b4a0e
commit e07088c23c

View File

@ -14,16 +14,5 @@
int map_bootblock_write(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->write_sector(map->device,
offset, bootblock, BOOTBLOCK_SIZE);
return ret;
return map_partition_write(map, 0, BOOTBLOCK_SIZE / FLOPPY_SECTOR_SIZE, bootblock);
}