diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-11-17 15:56:00 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-11-17 15:56:00 +0000 |
commit | c03b1418da850f7a13732437ab56b75a58a76a2e (patch) | |
tree | 1e8eeb4e75597848166b179364d5759ad9f3916b /sbin | |
parent | f70336158575aa302a54b483c3b677cba19b6e3e (diff) | |
download | FreeBSD-src-c03b1418da850f7a13732437ab56b75a58a76a2e.zip FreeBSD-src-c03b1418da850f7a13732437ab56b75a58a76a2e.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/vinum/commands.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 1fd1743..14b8f40 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 */ |