NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39862: rndctl(8)'s silently fails when multiple devices/types are given



>Number:         39862
>Category:       bin
>Synopsis:       rndctl(8)'s silently fails when multiple devices/types are 
>given
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 04 06:00:00 +0000 2008
>Originator:     Brian Seklecki
>Release:        NetBSD 4-stable
>Organization:
Collaborative Fusion, Inc.
>Environment:
NetBSD cauldron-nbsd-releng-4-i386 4.0_STABLE NetBSD 4.0_STABLE (GENERIC.MP) 
#0: Fri Oct 31 10:23:38 EDT 2008  
root@cauldron-nbsd-releng-4-i386:/home/netbsd/obj.i386/999/sys/arch/i386/compile/GENERIC.MP
 i386

>Description:

Consider:

$ sudo rndctl -l|grep -i d0
sd0                 1068542 disk 
cd0                       0 disk 

Try to enable mutliple devices at the same time:
$ sudo rndctl -ce -d cd0 sd0

List afterwards:
$ sudo rndctl -l|grep -i d0
sd0                 1068542 disk 
cd0                       0 disk estimate, collect

Same thing with -t:
$ sudo rndctl -ce -t disk net

$ echo $?
0
$ sudo rndctl -l
Source                 Bits Type      Flags
sd0                 1068542 disk estimate, collect
cd0                       0 disk estimate, collect
pcn0                      0 net  
pms0                      0 tty  
pckbd0                    0 tty  



>How-To-Repeat:
Begin working on /etc/rc.d/rndctl; become frustrated by the silent failure
>Fix:
I'm checking the code in the AM.  Something with argv[] processing.



Home | Main Index | Thread Index | Old Index