fix sx8 blk driver device naming
PATCH 1/1 fix sx8 blk driver device naming
[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:
<[email protected]> (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 <[email protected]>
drivers/block/sx8.c +1 -1
@@ -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 ;