mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BK PATCH] fix sx8 blk driver device naming
@ 2005-01-07  3:24 Jeff Garzik
  0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2005-01-07  3:24 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds; +Cc: linux-kernel


[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@redhat.com> (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@pobox.com>

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-07  3:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-07  3:24 [BK PATCH] fix sx8 blk driver device naming Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®