From owner-freebsd-current Thu Dec 30 23:44: 6 1999 Delivered-To: freebsd-current@freebsd.org Received: from arnold.neland.dk (mail.neland.dk [194.255.12.232]) by hub.freebsd.org (Postfix) with ESMTP id 25CCB14C48 for ; Thu, 30 Dec 1999 23:43:52 -0800 (PST) (envelope-from leifn@neland.dk) Received: from gina (gina.neland.dk [192.168.0.14]) by arnold.neland.dk (8.9.3/8.9.3) with SMTP id IAA31250; Fri, 31 Dec 1999 08:43:35 +0100 (CET) (envelope-from leifn@neland.dk) Message-ID: <014801bf5362$c677bea0$0e00a8c0@neland.dk> Reply-To: "Leif Neland" From: "Leif Neland" To: "Chuck Robey" , References: Subject: Sv: multiple cd devices Date: Fri, 31 Dec 1999 08:27:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Chuck Robey To: 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). >=20 > 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? >=20 The philosophy (sp?) of the numbers to MAKEDEV seems a little = inconsistent. MAKEDEV wd10 makes=20 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 message