Skip to contentSkip to conversation

scsi sysfs update 3

PATCH In review Mike Anderson 2 participants 3 messages Nov 27, 2002 – Dec 2, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi sysfs update 3

I have attached an updated combined patch of my previously posted sysfs changes.

This patch is against linux-scsi.bkbits.net/scsi-misc-2.5

This patch contains these updates:
- update to osst.c to support sysfs cleanups.
- oops fix in osst.c detach if no device attached. A better method than this quick fix is needed.
- removed scsi_bus_hotplug function do to bug and not really needed now as default gives path data. If needed in future can be added with better definition.

-andmike
--
Michael Anderson
[email protected]

#1 lore raw
Quoted 2 lines · [email protected] said:

I have attached an updated combined patch of my previously posted sysfs changes.

I'm getting ready to put this in scsi-misc-2.5

I have misgivings about the removal of the scsi bus type, but I know looking at scsi host adapters as bridges isn't a universal view point.

James

#2 lore raw
Quoted 9 lines · James Bottomley [[email protected]] wrote:
Quoted 2 lines · [email protected] said:

I have attached an updated combined patch of my previously posted sysfs changes.

I'm getting ready to put this in scsi-misc-2.5

I have misgivings about the removal of the scsi bus type, but I know looking at scsi host adapters as bridges isn't a universal view point.

James,
Christoph and Douglas Gilbert detected a compile error in ide-scsi with the sysfs update in scsi-misc-2.5. Christoph sent a RFC patch to LKML that request feedback on the removal of the transform function in ide-scsi. In the short term I am forwarding Doug's patch against scsi-misc-2.5 that restores previous functionality by using the sysfs driver name.

-andmike
--
Michael Anderson
[email protected]

drivers/scsi/ide-scsi.c2550mike renamed from drivers/scsi/ide-scsi.c +1 -1
@@ -764,7 +764,7 @@
 
 	if (disk) {
 		struct Scsi_Device_Template **p = disk->private_data;
-		if (strcmp((*p)->tag, "sg") == 0)
+		if (strcmp((*p)->scsi_driverfs_driver.name, "sg") == 0)
 			return test_bit(IDESCSI_SG_TRANSFORM, &scsi->transform);
 	}
 	return test_bit(IDESCSI_TRANSFORM, &scsi->transform);