NetBSD Problem Report #33116

From tsutsui@ceres.dti.ne.jp  Tue Mar 21 12:26:08 2006
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from smtp03.dti.ne.jp (smtp03.dti.ne.jp [202.216.228.139])
	by narn.netbsd.org (Postfix) with ESMTP id 99B9463B121
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Mar 2006 12:26:07 +0000 (UTC)
Message-Id: <200603211226.k2LCQ6mq010809@mirage.ceres.dti.ne.jp>
Date: Tue, 21 Mar 2006 21:26:06 +0900 (JST)
From: tsutsui@ceres.dti.ne.jp
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: bogus vnd(4) attach/detach messages
X-Send-Pr-Version: 3.95

>Number:         33116
>Category:       kern
>Synopsis:       bogus vnd(4) attach/detach messages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 21 12:30:02 +0000 2006
>Closed-Date:    Thu Mar 30 15:20:37 +0000 2006
>Last-Modified:  Thu Mar 30 15:20:37 +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?

>Release-Note:

>Audit-Trail:
From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: kern/33116: bogus vnd(4) attach/detach messages
Date: Tue, 21 Mar 2006 13:50:14 +0100

 --55BQxs/tzKPczcTk
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Tue, Mar 21, 2006 at 12:30:02PM +0000, tsutsui@ceres.dti.ne.jp wrote:
 > >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:
 >=20
 > On executing vnconfig(8), kernel prints messages like
 > > vnd0: vnode disk driver
 > > vnd0 detached
 > even if no vnd(4) device is configured.

 Yes, that's normal considering how the vnd(4) driver is organised.

 The message is harmless, though, it just means a device is created on
 open(), and destroyed on the following close().

 It's a trade-off to keep binary compatibility;  I plan to change it
 later, but it has to be done carefully.

 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "When I find the controls, I'll go where I like, I'll know where I want
 to be, but maybe for now I'll stay right here on a silent sea."
 KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

 --55BQxs/tzKPczcTk
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)

 iQEVAwUBRB/2htgoQloHrPnoAQKlSgf/XAgejMRnf5Sqe53rHX+vAXpLySNOwUam
 Jp6tm3pSszSHkdypjLaV3Sgti6JcZ5no0L/1KEq1rGh1QRIVaxMODNqR6HfHgL6J
 ab9ttC3Vmj37g1ffom40ZNdE2LJfqanCzfZP4ghFv5M1xqTnDeBwAXPsHTYAsoX5
 uV7KKXvXBzpychJWAUsgXnYpLSGnI/0c7O4t9stG0lJIWS+bVsjd/9YuwbbWVJa9
 13x38/ehxDNIlqjRyLlVSU/lAfJkbF7yA56uJsy0gn/AVgvH0mDsJBSI9AzZ2PcH
 Apgqi/xENewacAs2SSRMi6TYXHaLAzQ6v4BcB3juuvRkmfR2vQ61VQ==
 =9oqn
 -----END PGP SIGNATURE-----

 --55BQxs/tzKPczcTk--

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/33116: bogus vnd(4) attach/detach messages
Date: Tue, 21 Mar 2006 14:09:50 +0100

 On Tue, Mar 21, 2006 at 12:55:01PM +0000, Quentin Garnier wrote:
 >  It's a trade-off to keep binary compatibility;  I plan to change it
 >  later, but it has to be done carefully.

 But can we get rid of the messages please? They seem to be of no value
 to me. (At least they should not be aprint_normal)

 Martin

From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/33116: bogus vnd(4) attach/detach messages
Date: Tue, 21 Mar 2006 14:18:29 +0100

 --8uPpd4BD6WCr7+UR
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Tue, Mar 21, 2006 at 01:10:02PM +0000, Martin Husemann wrote:
 > The following reply was made to PR kern/33116; it has been noted by GNATS.
 >=20
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@netbsd.org
 > Cc:=20
 > Subject: Re: kern/33116: bogus vnd(4) attach/detach messages
 > Date: Tue, 21 Mar 2006 14:09:50 +0100
 >=20
 >  On Tue, Mar 21, 2006 at 12:55:01PM +0000, Quentin Garnier wrote:
 >  >  It's a trade-off to keep binary compatibility;  I plan to change it
 >  >  later, but it has to be done carefully.
 > =20
 >  But can we get rid of the messages please? They seem to be of no value
 >  to me. (At least they should not be aprint_normal)

 The reason why I print the attach one is because autoconf(9) doesn't
 let me suppress the detach one.

 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "When I find the controls, I'll go where I like, I'll know where I want
 to be, but maybe for now I'll stay right here on a silent sea."
 KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

 --8uPpd4BD6WCr7+UR
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)

 iQEVAwUBRB/9JdgoQloHrPnoAQIhmQf9GLAkxaDhv0LWqkPI5GuTtQqzn2CS+m79
 bIKSkjPFP1J0VTtQ5fIAYOnICoqnFSY9o23+bOpKQveJa9F4s7QSt9Gnq8t5Pn4V
 e0Ygrop66G2qnGxE16/QgobV6gngcUp+3Kujr/pDvc0U6WjawkoDfAZwM3d4nyTr
 XVvgF5HZ8Ip2jcu+K2osLfbwp72iuDagCI6Diefm1Kalwr7QiAXMgladxIThiAAr
 n67n/AolTo4opju/fiow/Gxg93XMqySN1Z4ld3/tPvI1lhAqqGgZUU0rUXQcAJyp
 VurYobQb84NXAYGc26Ogi3tWZcTYQ48WHU8Ie0iCx+LfXmOX0qJkfw==
 =qi9h
 -----END PGP SIGNATURE-----

 --8uPpd4BD6WCr7+UR--

From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/33116: bogus vnd(4) attach/detach messages
Date: Tue, 21 Mar 2006 14:22:06 +0100

 --yM0HlFzW542r9AGv
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Tue, Mar 21, 2006 at 01:10:02PM +0000, Martin Husemann wrote:
 > The following reply was made to PR kern/33116; it has been noted by GNATS.
 >=20
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@netbsd.org
 > Cc:=20
 > Subject: Re: kern/33116: bogus vnd(4) attach/detach messages
 > Date: Tue, 21 Mar 2006 14:09:50 +0100
 >=20
 >  On Tue, Mar 21, 2006 at 12:55:01PM +0000, Quentin Garnier wrote:
 >  >  It's a trade-off to keep binary compatibility;  I plan to change it
 >  >  later, but it has to be done carefully.
 > =20
 >  But can we get rid of the messages please? They seem to be of no value
 >  to me. (At least they should not be aprint_normal)

 Try this:

 http://taryn.cubidou.net/~cube/netbsd/vnd.diff

 What bugs me is that it gets suppressed every time, which means also
 when a device is created with an actual purpose.  But maybe people
 don't want that either.

 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "When I find the controls, I'll go where I like, I'll know where I want
 to be, but maybe for now I'll stay right here on a silent sea."
 KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

 --yM0HlFzW542r9AGv
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)

 iQEVAwUBRB/9/tgoQloHrPnoAQI0lwf/WslydwA2rUvDJnFCDHxsZqHuNX9NElYf
 uMiGG4GwVbpi2ESs8saZyPu1NmUDCOlZatP/IEIhj+mlQ1RALZnaUSgYFJM2m0+4
 XmUDMjGeYaviaTV415x1LNZsc+2QEYPvPbdAdcpVHdg10w7ZJkbhf0oTNuYbrAVh
 DmtnJ0USl4twfPdtEW1TGfT496ZZ1QpbACkddRDJo6YRn+XnsPhmTqgLHr9QyFyK
 dnYX/XHuIrQOUa8dSWX95nwx4FzCH1ytFe/NM/IuD+pTGpweTrWgh0hE13bnBwc5
 bJcotONxHGZiBeywARSHbI2+QUXwiw7ycbx9Nb6nepmIaRE6DhJ3Iw==
 =G+4A
 -----END PGP SIGNATURE-----

 --yM0HlFzW542r9AGv--

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, tsutsui@ceres.dti.ne.jp
Subject: Re: kern/33116: bogus vnd(4) attach/detach messages
Date: Tue, 21 Mar 2006 14:24:41 +0100

 On Tue, Mar 21, 2006 at 01:20:02PM +0000, Quentin Garnier wrote:
 >  The reason why I print the attach one is because autoconf(9) doesn't
 >  let me suppress the detach one.

 Duh - that's a good reason, but shouldn't we fix that then?

 Martin

From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/33116 CVS commit: src/sys/dev
Date: Thu, 30 Mar 2006 15:19:45 +0000 (UTC)

 Module Name:	src
 Committed By:	cube
 Date:		Thu Mar 30 15:19:45 UTC 2006

 Modified Files:
 	src/sys/dev: vnd.c

 Log Message:
 Silence device creation and destruction.  That means there won't be
 spurious messages when doing "vnconfig -l", but it also means there won't
 be a message when an actual device is created.  Oh, well.

 PR#33116 by Izumi Tsutsui.


 To generate a diff of this commit:
 cvs rdiff -r1.145 -r1.146 src/sys/dev/vnd.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: cube@netbsd.org
State-Changed-When: Thu, 30 Mar 2006 15:20:37 +0000
State-Changed-Why:
Fixed in vnd.c rev. 1.146.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.