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

This commit is contained in:
Doug MacEachern 2009-07-18 18:43:39 -07:00
parent 9e699babc5
commit 90c2b19127
1 changed files with 3 additions and 3 deletions

View File

@ -1159,7 +1159,7 @@ static int get_iostat_sys(sigar_t *sigar,
int partition, status;
if (!(*iodev = sigar_iodev_get(sigar, dirname))) {
return ENOENT;
return ENXIO;
}
name = fsdev = (*iodev)->name;
@ -1211,7 +1211,7 @@ static int get_iostat_proc_dstat(sigar_t *sigar,
SIGAR_DISK_STATS_INIT(device_usage);
if (!(*iodev = sigar_iodev_get(sigar, dirname))) {
return ENOENT;
return ENXIO;
}
if (stat((*iodev)->name, &sb) < 0) {
@ -1313,7 +1313,7 @@ static int get_iostat_procp(sigar_t *sigar,
struct stat sb;
if (!(*iodev = sigar_iodev_get(sigar, dirname))) {
return ENOENT;
return ENXIO;
}
if (stat((*iodev)->name, &sb) < 0) {