summaryrefslogtreecommitdiffstats
path: root/sbin/vinum
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-15 20:49:38 +0000
committerphk <phk@FreeBSD.org>2003-03-15 20:49:38 +0000
commit7d1a933bd28383e0c47861ca71f1a75a6d413661 (patch)
tree91aafab7b2da6019a15a32ed3a3ab27361f5bee9 /sbin/vinum
parent0e409550026b979654cd8945070e13bfbfccddf0 (diff)
downloadFreeBSD-src-7d1a933bd28383e0c47861ca71f1a75a6d413661.zip
FreeBSD-src-7d1a933bd28383e0c47861ca71f1a75a6d413661.tar.gz
Update to use current version of devstat API.
Diffstat (limited to 'sbin/vinum')
-rw-r--r--sbin/vinum/commands.c4
-rw-r--r--sbin/vinum/list.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index 2adb5cb..8510870 100644
--- a/sbin/vinum/commands.c
+++ b/sbin/vinum/commands.c
@@ -516,7 +516,7 @@ vinum_start(int argc, char *argv[], char *arg0[])
struct vinum_ioctl_msg *message = (struct vinum_ioctl_msg *) &reply;
if (argc == 0) { /* start everything */
- int devs = getnumdevs();
+ int devs = devstat_getnumdevs(NULL);
struct statinfo statinfo;
char *namelist;
char *enamelist; /* end of name list */
@@ -535,7 +535,7 @@ vinum_start(int argc, char *argv[], char *arg0[])
bzero(statinfo.dinfo, sizeof(struct devinfo));
tokens = 0; /* no tokens yet */
- if (getdevs(&statinfo) < 0) { /* find out what devices we have */
+ if (devstat_getdevs(NULL, &statinfo) < 0) { /* find out what devices we have */
perror("Can't get device list");
return;
}
diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c
index 0a86c56..af27723 100644
--- a/sbin/vinum/list.c
+++ b/sbin/vinum/list.c
@@ -1215,7 +1215,7 @@ vinum_dumpconfig(int argc, char *argv[], char *argv0[])
int i;
if (argc == 0) { /* start everything */
- int devs = getnumdevs();
+ int devs = devstat_getnumdevs(NULL);
struct statinfo statinfo;
char *namelist;
char *enamelist; /* end of name list */
@@ -1234,7 +1234,7 @@ vinum_dumpconfig(int argc, char *argv[], char *argv0[])
bzero(statinfo.dinfo, sizeof(struct devinfo));
tokens = 0; /* no tokens yet */
- if (getdevs(&statinfo) < 0) { /* find out what devices we have */
+ if (devstat_getdevs(NULL, &statinfo) < 0) { /* find out what devices we have */
perror("Can't get device list");
return;
}
OpenPOWER on IntegriCloud