From 8e420228a1134b82c49be6a5c361370c86aa9e18 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 11 Dec 2004 01:10:53 +0000 Subject: [PATCH] fix if disk has no volume group --- src/os/aix/aix_sigar.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index 26877be7..33cc0bb2 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -1394,8 +1394,12 @@ static int create_diskmap(sigar_t *sigar) while ((ptr = fgets(buffer, sizeof(buffer), fp))) { FILE *lfp; char cmd[256], disk[56]; - char *s = strchr(ptr, ' '); - if (s) { + char *s; + + if (strstr(ptr, " None")) { + continue; /* no volume group */ + } + if ((s = strchr(ptr, ' '))) { *s = '\0'; } strcpy(disk, ptr);