(SIGAR-164) return ENXIO instead of ESRCH in disk_usage darwin impl
This commit is contained in:
parent
8cef393365
commit
4bd3ef75a9
|
@ -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? */
|
||||||
|
|
Loading…
Reference in New Issue