Subject: cgdconfig
To: None <current-users@netbsd.org>
From: None <dilmah@mail.nnov.ru>
List: current-users
Date: 06/28/2004 19:36:03
Hi,
I have following cgd.conf file:
cgd0 /dev/wd0f /etc/cgd/wd0f
cgd1 /dev/wd1b /etc/cgd/wd1b
cgd2 /dev/wd0b /etc/cgd/wd0b
cgd3 /dev/wd1g /etc/cgd/wd1g
cgd4 /dev/cgd0d /etc/cgd/cgd0d
cgd5 /dev/cgd3d /etc/cgd/cgd3d
cgd6 /dev/wd0j /etc/cgd/wd0j
cgd7 /dev/cgd6d /etc/cgd/cgd6d
just tab-separated entries.
It works fine if I split it line by line and cgdconfig them:
cat /etc/cgd/cgd.conf | tr \\n \\000 | xargs -0 -n 1 sh -c 'cgdconfig $1'
xxx
However cgdconfig -C fails:
cgdconfig: can't open cgd "cgd0", "cgd0d"
cgdconfig: action failed on "/etc/cgd/cgd.conf" line 1
I do not understand, why it is so?