Don't attempt to make devices if we're using devfs. This

substantially cleans up the output when running the vinum
management tool, and also makes it work better.

Long sustained silence from:	grog
This commit is contained in:
Robert Watson 2003-11-17 15:56:00 +00:00
parent 2e472f2df6
commit f315f7629f

View File

@ -1509,7 +1509,8 @@ vinum_concat(int argc, char *argv[], char *argv0[])
if (error != 0)
perror("Can't save Vinum config");
find_object(objectname, &type); /* find the index of the volume */
make_vol_dev(vol.volno, 1); /* and create the devices */
if (no_devfs)
make_vol_dev(vol.volno, 1); /* and create the devices */
if (vflag) {
vflag--; /* XXX don't give too much detail */
find_object(objectname, &type); /* point to the volume */
@ -1654,7 +1655,8 @@ vinum_stripe(int argc, char *argv[], char *argv0[])
if (error != 0)
perror("Can't save Vinum config");
find_object(objectname, &type); /* find the index of the volume */
make_vol_dev(vol.volno, 1); /* and create the devices */
if (no_devfs)
make_vol_dev(vol.volno, 1); /* and create the devices */
if (vflag) {
vflag--; /* XXX don't give too much detail */
find_object(objectname, &type); /* point to the volume */
@ -1798,7 +1800,8 @@ vinum_raid4(int argc, char *argv[], char *argv0[])
if (error != 0)
perror("Can't save Vinum config");
find_object(objectname, &type); /* find the index of the volume */
make_vol_dev(vol.volno, 1); /* and create the devices */
if (no_devfs)
make_vol_dev(vol.volno, 1); /* and create the devices */
if (vflag) {
vflag--; /* XXX don't give too much detail */
find_object(objectname, &type); /* point to the volume */
@ -1942,7 +1945,8 @@ vinum_raid5(int argc, char *argv[], char *argv0[])
if (error != 0)
perror("Can't save Vinum config");
find_object(objectname, &type); /* find the index of the volume */
make_vol_dev(vol.volno, 1); /* and create the devices */
if (no_devfs)
make_vol_dev(vol.volno, 1); /* and create the devices */
if (vflag) {
vflag--; /* XXX don't give too much detail */
find_object(objectname, &type); /* point to the volume */
@ -2118,7 +2122,8 @@ vinum_mirror(int argc, char *argv[], char *argv0[])
if (error != 0)
perror("Can't save Vinum config");
find_object(objectname, &type); /* find the index of the volume */
make_vol_dev(vol.volno, 1); /* and create the devices */
if (no_devfs)
make_vol_dev(vol.volno, 1); /* and create the devices */
if (vflag) {
vflag--; /* XXX don't give too much detail */
sflag = 0; /* no stats, please */