--- /usr/tmp/TmpDir.23845-0/cmd/devfsd/modules.devfs_1.4 Tue May 29 18:06:54 2001 +++ /usr/tmp/TmpDir.23845-0/cmd/devfsd/modules.devfs_1.5 Tue May 29 18:06:54 2001 @@ -102,6 +102,10 @@ # Tell devfs that /dev/hd* devices are ide. alias /dev/hd* /dev/ide +# Mylex DAC960 RAID devices +probeall /dev/dac960 DAC960 +alias /dev/rd/c* /dev/dac960 + # Pull in the configuration file. Do this last because modprobe(8) processes in # per^H^H^Hreverse order and the sysadmin may want to over-ride what is in the # generic file --- /usr/tmp/TmpDir.23868-0/cmd/devfsd/compat_name.c_1.2 Tue May 29 18:07:17 2001 +++ /usr/tmp/TmpDir.23868-0/cmd/devfsd/compat_name.c_1.3 Tue May 29 18:07:17 2001 @@ -215,6 +215,28 @@ sprintf (buffer, "%sjs%d", type, index); compat_name = buffer; } + else if (strncmp (devname, "dac960/", 7) == 0) + { + /* DAC960 RAID Device + * The old naming scheme is /dev/rd/cXdYpZ + * The new naming scheme is /dev/dac960/hostX/discY/partZ + * + * Major numbers run from 46 through 55; minor numbers run from + * 0 through 255. Each disc may have seven parts; a minor number + * that is divisible by eight represents the whole disc. + */ + + if ((minor % 8) == 0) + { + /* This is the whole disc. */ + sprintf (buffer, "rd/c%dd%d", major - 48, minor / 8); + } + else + { + sprintf (buffer, "rd/c%dd%dp%d", major - 48, minor / 8, minor % 8); + } + compat_name = buffer; + } return (compat_name); } /* End Function get_old_name */