Author: Mario Fetka (geos_one) Description: add device_id to output thx. to gentoo devs --- megactl.orig/src/adapter.c +++ megactl/src/adapter.c @@ -193,9 +193,9 @@ struct physical_drive_info *getPhysicalD d->id = info->slot; if (d->channel == DISK_NOENC) - snprintf (d->name, sizeof (d->name), "%se*s%u", a->name, d->id); + snprintf (d->name, sizeof (d->name), "d%u%se*s%u", info->device_id, a->name, d->id); else - snprintf (d->name, sizeof (d->name), "%se%us%u", a->name, d->channel, d->id); + snprintf (d->name, sizeof (d->name), "d%u%se%us%u", info->device_id, a->name, d->channel, d->id); d->inquiry = info->inquiry.inq; strncpy (d->vendor, d->inquiry.vendor_info, sizeof (d->vendor) - 1);