Skip to contentSkip to conversation

unique_id for ide-scsi

PATCH In review Kurt Garloff 2 participants 3 messages Feb 9, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unique_id for ide-scsi

Hi,

most scsi host adapters do fill in their ioport into thos host's unique_id field.
ide-scsi does not. The attached patch changes it.

Caveats: It puts the first PATA port there, the SATA port are not
considered. Are there SATA chips that don't have PATA ports?

Regards,

Signature · 2 lines
Kurt Garloff  <[email protected]>                            Cologne, DE 
SUSE LINUX AG, Nuernberg, DE                          SUSE Labs (Head)
scsi/ide-scsi.c renamed from scsi/ide-scsi.c.orig +1 -0
@@ -967,6 +967,7 @@
 
 	host->max_id = 1;
 	host->max_lun = 1;
+	host->unique_id = drive->hwif->hw.io_ports[0];
 	drive->driver_data = host;
 	idescsi = scsihost_to_idescsi(host);
 	idescsi->drive = drive;
#1 lore raw
Quoted 8 lines · Kurt Garloff

Hi,

most scsi host adapters do fill in their ioport into thos host's unique_id field.
ide-scsi does not. The attached patch changes it.

Caveats: It puts the first PATA port there, the SATA port are not
considered. Are there SATA chips that don't have PATA ports?

What do you need this for? I'd prefer to completly nuke unique_id in 2.7.<early>

#2 lore raw

Hi Christoph,

Quoted 5 lines · Christoph Hellwig
Quoted 2 lines

Caveats: It puts the first PATA port there, the SATA port are not
considered. Are there SATA chips that don't have PATA ports?

What do you need this for? I'd prefer to completly nuke unique_id in 2.7.<early>

You have two scsi host adapters of one kind and want to identify the path to them. For non-enumerated buses (like ISA), the unique_id is useful.

Regards,

Signature · 3 lines
Kurt Garloff                   <[email protected]>             [Koeln, DE]
Physics:Plasma modeling <[email protected]> [TU Eindhoven, NL]
Linux: SUSE Labs (Head)        <[email protected]>    [SUSE Nuernberg, DE]