(SIGAR-164) return ENXIO instead of ENOENT in disk_usage aix impl
This commit is contained in:
parent
4bd3ef75a9
commit
9e699babc5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue