Date: Fri, 31 Dec 1999 08:27:29 +0100 From: "Leif Neland" <leifn@neland.dk> To: "Chuck Robey" <chuckr@picnic.mat.net>, <FreeBSD-current@FreeBSD.ORG> Subject: Sv: multiple cd devices Message-ID: <014801bf5362$c677bea0$0e00a8c0@neland.dk> References: <Pine.BSF.4.10.9912310000420.354-100000@picnic.mat.net>
index | next in thread | previous in thread | raw e-mail
From: Chuck Robey <chuckr@picnic.mat.net> To: <FreeBSD-current@FreeBSD.ORG> Sent: Friday, December 31, 1999 6:29 AM Subject: multiple cd devices > Anyhow, getting the kernel to recognize cd1 was no problem, but getting > /dev/MAKEDEV to do that was a hairy PITA. I couldn't locate, in either > cd(4) or cd(9), the information on the maj/min numbers, so that I could > just do the mknod's manually, and MAKEDEV would simply do nothing if I > entered './MAKEDEV cd1'. After *much* screwing about, in desperation > (trying wierd combinations) I did a './MAKEDEV cd2', and *that* made my > cd1 devices (not the cd2 ones, but I didn't have a cd2, I didn't care). > > This sounds pretty wrong, I think MAKEDEV is busted for this, right? And, > if you don't want to have the actual maj/min numbers for the cd devices in > the man pages (because you want Unix unfriendly), well, shouldn't there be > a pointer to a include file that would be up to date with that info, so at > least the info is available somehow? > The philosophy (sp?) of the numbers to MAKEDEV seems a little inconsistent. MAKEDEV wd10 makes wd10 wd10b wd10d wd10f wd10h wd10s2 wd10s4 wd10a wd10c wd10e wd10g wd10s1 wd10s3 But makedev cd makes the number of devices you want, not the last device number. So if you do MAKEDEV cd10, you get 10 devices: cd0 to cd9. However, MAKEDEV seems a little buggy, when dealing with _many_ cd-devices. MAKEDEV cd31 makes cd0-30 # ./MAKEDEV cd32 cd32 is invalid -- can't have more than 32 cd devices Also, when RE-making more than 10 devices, it complains: chgrp: cd10a: No such file or directory chgrp: cd10c: No such file or directory chgrp: cd11a: No such file or directory ... chgrp: cd29c: No such file or directory chgrp: cd30a: No such file or directory chgrp: cd30c: No such file or directory This only happens if the devices exist already. But the devices still change timestamps. But I guess only a few people actually has more than 9 cd drives in one box... I have made paches, will send-pr, when I've made sure I have mergemaster'ed my "production" box, it's running a week old or so current, but for some strange reason MAKEDEV isn't being installed by default. Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the messagehelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?014801bf5362$c677bea0$0e00a8c0>
