diff --git a/ChangeLog b/ChangeLog index e3f83b7e3..b684a2fff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-24 Robert Millan + + * lib/device.c (write_to_partition): /dev/ataraid/ and /dev/rd/ + partitions have a "p" prefix. Add it. + 2006-06-24 Robert Millan * lib/device.c (get_i2o_disk_name): New function. diff --git a/lib/device.c b/lib/device.c index 5774291c6..8abd2a907 100644 --- a/lib/device.c +++ b/lib/device.c @@ -890,6 +890,12 @@ write_to_partition (char **map, int drive, int partition, if (strcmp (dev + strlen(dev) - 5, "/disc") == 0) strcpy (dev + strlen(dev) - 5, "/part"); } + else + { + if ((strncmp (dev, "/dev/ataraid/", 13) == 0) || + (strncmp (dev, "/dev/rd/", 8) == 0)) + strcpy (dev + strlen(dev), "p"); + } sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1); /* Open the partition. */