| Summary: | sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0 | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Mikhail T. <freebsd-2024> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Mikhail T.
1999-09-16 03:50:00 UTC
On Wed, Sep 15, 1999 at 10:44:22PM -0400, Mikhail Teterin wrote: > > >Number: 13768 > >Synopsis: sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0 > >Severity: serious > >Priority: high > >How-To-Repeat: > > cd /dev > rm cd* > sh MAKEDEV cd1 > ls -l cd* > brw-r----- 1 root operator 6, 0 Sep 15 22:37 cd0a > brw-r----- 1 root operator 6, 2 Sep 15 22:37 cd0c > sh MAKEDEV cd5 > By the command above you tell that you have five CD drives on your system. > ls -l cd* > brw-r----- 1 root operator 6, 0 15 ÓÅÎ 22:43 cd0a > brw-r----- 1 root operator 6, 2 15 ÓÅÎ 22:43 cd0c > brw-r----- 1 root operator 6, 8 15 ÓÅÎ 22:43 cd1a > brw-r----- 1 root operator 6, 10 15 ÓÅÎ 22:43 cd1c > brw-r----- 1 root operator 6, 16 15 ÓÅÎ 22:43 cd2a > brw-r----- 1 root operator 6, 18 15 ÓÅÎ 22:43 cd2c > brw-r----- 1 root operator 6, 24 15 ÓÅÎ 22:43 cd3a > brw-r----- 1 root operator 6, 26 15 ÓÅÎ 22:43 cd3c > brw-r----- 1 root operator 6, 32 15 ÓÅÎ 22:43 cd4a > brw-r----- 1 root operator 6, 34 15 ÓÅÎ 22:43 cd4c > .. and MAKEDEV build devices for all five CDs. And it is consistent with `MAKEDEV vtyN', for example. So, what (by your opinion) should be fixed? -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age Ruslan Ermilov once stated: => sh MAKEDEV cd5 => =By the command above you tell that you have five CD drives on your =system. I thought, that by that command I request all the devices pertaining to the single physical device be created -- the 6th CD-ROM connnected to the machine. => ls -l cd* => brw-r----- 1 root operator 6, 0 15 ÓÅÎ 22:43 cd0a => brw-r----- 1 root operator 6, 2 15 ÓÅÎ 22:43 cd0c => brw-r----- 1 root operator 6, 8 15 ÓÅÎ 22:43 cd1a => brw-r----- 1 root operator 6, 10 15 ÓÅÎ 22:43 cd1c => brw-r----- 1 root operator 6, 16 15 ÓÅÎ 22:43 cd2a => brw-r----- 1 root operator 6, 18 15 ÓÅÎ 22:43 cd2c => brw-r----- 1 root operator 6, 24 15 ÓÅÎ 22:43 cd3a => brw-r----- 1 root operator 6, 26 15 ÓÅÎ 22:43 cd3c => brw-r----- 1 root operator 6, 32 15 ÓÅÎ 22:43 cd4a => brw-r----- 1 root operator 6, 34 15 ÓÅÎ 22:43 cd4c =.. and MAKEDEV build devices for all five CDs. =And it is consistent with `MAKEDEV vtyN', for example. It is inconsistent with daN*, then. =So, what (by your opinion) should be fixed? In my opinion, there has to be cdNa and cdNc, rcdNa and rcdNc after ``MAKEDEV cdN''. Yours, -mi On Wed, Sep 15, 1999, Mikhail Teterin wrote: > sh MAKEDEV cd5 > ls -l cd* > brw-r----- 1 root operator 6, 0 15 ÓÅÎ 22:43 cd0a > brw-r----- 1 root operator 6, 2 15 ÓÅÎ 22:43 cd0c > brw-r----- 1 root operator 6, 8 15 ÓÅÎ 22:43 cd1a > brw-r----- 1 root operator 6, 10 15 ÓÅÎ 22:43 cd1c > brw-r----- 1 root operator 6, 16 15 ÓÅÎ 22:43 cd2a > brw-r----- 1 root operator 6, 18 15 ÓÅÎ 22:43 cd2c > brw-r----- 1 root operator 6, 24 15 ÓÅÎ 22:43 cd3a > brw-r----- 1 root operator 6, 26 15 ÓÅÎ 22:43 cd3c > brw-r----- 1 root operator 6, 32 15 ÓÅÎ 22:43 cd4a > brw-r----- 1 root operator 6, 34 15 ÓÅÎ 22:43 cd4c Please count. You have 5 CDROMs on your system; there are 5 devices. cd0, cd1, cd2, cd3, cd4. -- |Chris Costello <chris@calldei.com> |Reality's the only obstacle to happiness. `----------------------------------------- Chris Costello once stated: =On Wed, Sep 15, 1999, Mikhail Teterin wrote: => sh MAKEDEV cd5 => ls -l cd* => brw-r----- 1 root operator 6, 0 15 ___ 22:43 cd0a => brw-r----- 1 root operator 6, 2 15 ___ 22:43 cd0c => brw-r----- 1 root operator 6, 8 15 ___ 22:43 cd1a => brw-r----- 1 root operator 6, 10 15 ___ 22:43 cd1c => brw-r----- 1 root operator 6, 16 15 ___ 22:43 cd2a => brw-r----- 1 root operator 6, 18 15 ___ 22:43 cd2c => brw-r----- 1 root operator 6, 24 15 ___ 22:43 cd3a => brw-r----- 1 root operator 6, 26 15 ___ 22:43 cd3c => brw-r----- 1 root operator 6, 32 15 ___ 22:43 cd4a => brw-r----- 1 root operator 6, 34 15 ___ 22:43 cd4c = = Please count. You have 5 CDROMs on your system; there are 5 =devices. cd0, cd1, cd2, cd3, cd4. I'm not asking for 5 CD-ROM devices. I'm asking for ONE -- cd5. I now understand, that there are two different semantics involved. One -- in case of vty, cd -- treat the digit as the total number of similar devices desired. The other -- in case of da, wd -- treat the digit as part of the device name and create the corresponding devices ONLY. My problems with this: 1. The two semantics are inconsistent with each other -- perhaps, for historical reasons? 2. In case of CD-ROMs, the second (a'la da and wd) semantics seems more sensible to me. Yours, -mi State Changed From-To: open->closed If your problem hasn't been fixed by now, it will be when FreeBSD 5.0 is released (which uses devfs to handle devices). |