Subject: kern/33116: bogus vnd(4) attach/detach messages
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 03/21/2006 12:30:02
>Number:         33116
>Category:       kern
>Synopsis:       bogus vnd(4) attach/detach messages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 21 12:30:02 +0000 2006
>Originator:     Izumi Tsutsui
>Release:        NetBSD 3.99.17
>Organization:
>Environment:
System: NetBSD/hp300 3.99.17
Architecture: m68k
Machine: hp300
>Description:

On executing vnconfig(8), kernel prints messages like
> vnd0: vnode disk driver
> vnd0 detached
even if no vnd(4) device is configured.

>How-To-Repeat:

# vnconfig -l
vnd0: vnode disk driver
vnd0: not in usevnd0 detached

vnd1: not in use
vnd2: not in use
vnd3: not in use
# vnconfig -l
vnd0: vnode disk driver
vnd0: not in usevnd0 detached

vnd1: not in use
vnd2: not in use
vnd3: not in use
# vnconfig -u vnd0
vnd0: vnode disk driver
vnconfig: /dev/rvnd0c: VNDvnd0 detached
IOCCLR: Device not configured
# 

>Fix:

Print messages only if VNDIOCSET or VNDIOCCLR is succeeded?