From 499cf44318b0760f045352dc0fd0ad427958eb23 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Tue, 9 Oct 2007 20:15:49 +0000 Subject: [PATCH] call map_partition_read() --- libmap/map_bootblock_read.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/libmap/map_bootblock_read.c b/libmap/map_bootblock_read.c index edb531e..fb1e00d 100644 --- a/libmap/map_bootblock_read.c +++ b/libmap/map_bootblock_read.c @@ -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); }