[BK PATCH] fix sx8 blk driver device naming

From: Jeff Garzik
Date: Thu Jan 06 2005 - 22:26:32 EST



[sx8 is one of the few SATA boards that's not scsi nor purely ATA;
it's more like I2O]

Please do a

bk pull bk://gkernel.bkbits.net/misc-2.6

This will update the following files:

drivers/block/sx8.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

through these ChangeSets:

<katzj@xxxxxxxxxx> (05/01/06 1.2229.2.1)
[PATCH] Fix sx8 device naming in sysfs

Attached fixes sysfs naming of sx8 block devs to follow LANANA naming.

You then get /sys/block/sx8!0, etc instead of /sys/block/sx80_0 (device
names should be /dev/sx8/0 instead of /dev/sx80_0)

Signed-off-by: Jeff Garzik <jgarzik@xxxxxxxxx>

diff -Nru a/drivers/block/sx8.c b/drivers/block/sx8.c
--- a/drivers/block/sx8.c 2005-01-06 22:23:13 -05:00
+++ b/drivers/block/sx8.c 2005-01-06 22:23:13 -05:00
@@ -1503,7 +1503,7 @@
}

port->disk = disk;
- sprintf(disk->disk_name, DRV_NAME "%u_%u", host->id, i);
+ sprintf(disk->disk_name, DRV_NAME "/%u", (host->id * CARM_MAX_PORTS) + i);
sprintf(disk->devfs_name, DRV_NAME "/%u_%u", host->id, i);
disk->major = host->major;
disk->first_minor = i * CARM_MINORS_PER_MAJOR;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/