From 4bd3ef75a905d6ea43c8bb8bed213930197874c5 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 18 Jul 2009 18:43:04 -0700 Subject: [PATCH] (SIGAR-164) return ENXIO instead of ESRCH in disk_usage darwin impl --- src/os/darwin/darwin_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index dd7c64fc..9fcbb807 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -2137,7 +2137,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name, SIGAR_DISK_STATS_INIT(disk); if (!iodev) { - return ESRCH; + return ENXIO; } /* "/dev/disk0s1" -> "disk0" */ /* XXX better way? */