unique_id for ide-scsi
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;
Quoted 8 lines · Kurt Garloff
Hi,
most scsi host adapters do fill in their ioport into thos host's
unique_idfield.
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>
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_idin 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]