Subject: toolchain/26835: cgd.conf handled incorrectly
To: None <gnats-bugs@gnats.NetBSD.org>
From: Denis Lagno <dlagno@smtp.ru>
List: netbsd-bugs
Date: 09/02/2004 02:00:32
>Number:         26835
>Category:       toolchain
>Synopsis:       cgd.conf handled incorrectly in case cgd on cgd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 02 18:53:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Denis Lagno
>Release:        NetBSD 2.0G
>Organization:
KGB
>Environment:
System: NetBSD cheburante.gado 2.0G NetBSD 2.0G (CHEBURANTE) #0: Wed Aug 25 02:30:52 MSD 2004 dina@flamante.gado:/volatile/worksrc/netbsd-current/src/sys/arch/i386/compile/CHEBURANTE i386
Architecture: i386
Machine: i386
>Description:
I try to configure cgd atop cgd, and write cgd.conf like:

cgd0	/dev/wd0b	/etc/cgd/wd0b
cgd1	/dev/wd0f	/etc/cgd/wd0f
cgd2	/dev/wd0g	/etc/cgd/wd0g
cgd3	/dev/cgd2d	/etc/cgd/cgd2d

Note that /dev/cgd2d mentioned in the 4th line is not operational before 3rd line is configured.

If I configure them just line by line all works fine:

cgdconfig cgd0 /dev/wd0b /etc/cgd/wd0b
cgdconfig cgd1 /dev/wd0f /etc/cgd/wd0f
cgdconfig cgd2 /dev/wd0g /etc/cgd/wd0g
cgdconfig cgd3 /dev/cgd2d /etc/cgd/cgd2d

but if I try to cgdconfig -C it bails out because of unconfigured /dev/cgd2d
>How-To-Repeat:
try to configure cgd atop cgd in cgd.conf file
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: