From 90c2b191274ef59f1b6afe92efac46e9701eb1fc Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 18 Jul 2009 18:43:39 -0700 Subject: [PATCH] (SIGAR-164) return ENXIO instead of ENOENT in disk_usage linux impl --- src/os/linux/linux_sigar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 0b5f71b1..2eacbc84 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -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) {