From c6a4440f93f713418a3e2a7ace2e3d02526064b6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 9 Sep 2003 10:18:56 -0700 Subject: [PATCH] [PATCH] dac960 devfs_name initialisation fix From: Andrey Borzenkov DAC960.c does it incorrectly (at least in 2.6.0-test4). It will create _directory_ /dev/rd/cNdM making it impossible to create compat block device entry with the same name. The right thing it to create separate directory for each controller/target as in attached trivial patch (untested due to lack of hardware). You will need devfsd support for this but then you will need it for cciss or cpqarray as well and possibly for others. Which returns us to the problem of devfsd maintenance ... --- drivers/block/DAC960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index f71ad544ad7fc..109f009b29ea4 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c @@ -2485,7 +2485,7 @@ static boolean DAC960_RegisterBlockDevice(DAC960_Controller_T *Controller) disk->queue = RequestQueue; sprintf(disk->disk_name, "rd/c%dd%d", Controller->ControllerNumber, n); - sprintf(disk->devfs_name, "rd/c%dd%d", Controller->ControllerNumber, n); + sprintf(disk->devfs_name, "rd/host%d/target%d", Controller->ControllerNumber, n); disk->major = MajorNumber; disk->first_minor = n << DAC960_MaxPartitionsBits; disk->fops = &DAC960_BlockDeviceOperations; -- 2.53.0