[Bug 222312] sysutils/monit - filesystem statistics error
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Sep 15 19:18:20 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222312
--- Comment #2 from Stephan <elijah at gmx.de> ---
The log error gets generated in src/device/sysdep_FREEBSD.c @ line 115
the code expects @least one digit in the devicename, which is not the case for
'/dev/gpt/rootfs'
// Parse the device path like /dev/da0p2 into name:instance -> da:0
static boolean_t _parseDevice(const char *path, Device_T device) {
const char *base = File_basename(path);
for (int i = 0; base[i]; i++) {
if (isdigit(*(base + i))) {
strncpy(device->key, base, i < sizeof(device->key) ? i
: sizeof(device->key) - 1);
device->instance = Str_parseInt(base + i);
return true;
}
}
LogError("filesystem statistics error -- cannot parse device '%s'\n",
path);
return false;
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list