(SIGAR-164) return ENXIO instead of ENOENT in disk_usage aix impl

This commit is contained in:
Doug MacEachern 2009-07-18 18:43:28 -07:00
parent 4bd3ef75a9
commit 9e699babc5
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name,
SIGAR_SSTRCPY(id.name, name); SIGAR_SSTRCPY(id.name, name);
if (perfstat_disk(&id, &disk, sizeof(disk), 1) != 1) { if (perfstat_disk(&id, &disk, sizeof(disk), 1) != 1) {
return ENOENT; return ENXIO;
} }
usage->reads = disk.rblks; usage->reads = disk.rblks;