(SIGAR-164) return ENXIO instead of ESRCH in disk_usage darwin impl

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

View File

@ -2137,7 +2137,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name,
SIGAR_DISK_STATS_INIT(disk); SIGAR_DISK_STATS_INIT(disk);
if (!iodev) { if (!iodev) {
return ESRCH; return ENXIO;
} }
/* "/dev/disk0s1" -> "disk0" */ /* XXX better way? */ /* "/dev/disk0s1" -> "disk0" */ /* XXX better way? */