From 0447e356b53c444e061997518aeb954fb36e08b3 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Tue, 21 Dec 2004 15:17:04 +0000 Subject: [PATCH] correct partition device name --- libemile/emile_map_bootblock_read.c | 3 ++- libemile/emile_map_bootblock_write.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libemile/emile_map_bootblock_read.c b/libemile/emile_map_bootblock_read.c index 1dc010b..f6cced3 100644 --- a/libemile/emile_map_bootblock_read.c +++ b/libemile/emile_map_bootblock_read.c @@ -1,3 +1,4 @@ +static __attribute__((used)) char* rcsid = "$CVSHeader$"; /* * * (c) 2004 Laurent Vivier @@ -22,7 +23,7 @@ int emile_map_bootblock_read(emile_map_t* map, char* bootblock) if (!emile_map_partition_is_valid(map)) return -1; - sprintf(name, "%s%d", map->name, map->current); + sprintf(name, "%s%d", map->name, map->current + 1); fd = open(name, O_RDONLY); if (fd == -1) diff --git a/libemile/emile_map_bootblock_write.c b/libemile/emile_map_bootblock_write.c index ca4296c..f9c609a 100644 --- a/libemile/emile_map_bootblock_write.c +++ b/libemile/emile_map_bootblock_write.c @@ -1,3 +1,4 @@ +static __attribute__((used)) char* rcsid = "$CVSHeader$"; /* * * (c) 2004 Laurent Vivier @@ -22,7 +23,7 @@ int emile_map_bootblock_write(emile_map_t* map, char* bootblock) if (!emile_map_partition_is_valid(map)) return -1; - sprintf(name, "%s%d", map->name, map->current); + sprintf(name, "%s%d", map->name, map->current + 1); fd = open(name, O_RDWR); if (fd == -1)