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 */