From f315f7629f0a1d44e3bd4db5a1fe64aba1d55a00 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 17 Nov 2003 15:56:00 +0000 Subject: [PATCH] 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 --- sbin/vinum/commands.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 1fd1743ef1b1..14b8f405e073 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -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 */