Re: dac960 devices on boot-floppies
Adam Di Carlo wrote:
> > though I have to admit I don't know the details of dac960 device files.
>
> Yikes. We now have 254 devices under /dev/rd. Full list below. Any
> way we can trim this down?
Note that the dac960 has reserved for its use all block devices with major
numbers between 48 and 55. That's a lot of devices! Specifically, the
dac960's make_rd script is (be afraid..):
#! /bin/csh -f
rm -rf /dev/rd
mkdir /dev/rd
chown root.root /dev/rd
chmod 755 /dev/rd
@ major = 48
foreach controller (0 1 2 3 4 5 6 7)
@ minor = 0
foreach logical_disk (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 \
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31)
foreach partition (0 1 2 3 4 5 6 7)
if ($partition == 0) then
mknod /dev/rd/c${controller}d${logical_disk} b $major $minor
chown root.root /dev/rd/c${controller}d${logical_disk}
chmod 600 /dev/rd/c${controller}d${logical_disk}
else
mknod /dev/rd/c${controller}d${logical_disk}p${partition} b $major $minor
chown root.root /dev/rd/c${controller}d${logical_disk}p${partition}
chmod 600 /dev/rd/c${controller}d${logical_disk}p${partition}
endif
@ minor ++
end
end
@ major ++
end
I think that comes to 2048 devices that the dec960 driver can potentially use.
For more info on the Dac960, see http://www.dandelion.com/Linux/DAC960.html
I think the only possible way we could support the dac960 is to have a
program that made one of these devides at a time, and probed them to see if
they have a partition on them, and if not, deleted them. Or something along
those lines. We need some kind of dynamic device file creation to make this
work.
--
see shy jo
Reply to: