parent
55934c12a3
commit
4bc203dd1f
@ -56,12 +56,13 @@ namespace modules {
|
|||||||
m_mounts.clear();
|
m_mounts.clear();
|
||||||
|
|
||||||
struct statvfs buffer {};
|
struct statvfs buffer {};
|
||||||
struct mntent* mnt = nullptr;
|
struct mntent* mnt{nullptr};
|
||||||
|
|
||||||
for (auto&& mountpoint : m_mountpoints) {
|
for (auto&& mountpoint : m_mountpoints) {
|
||||||
m_mounts.emplace_back(new fs_mount{mountpoint, false});
|
m_mounts.emplace_back(new fs_mount{mountpoint, false});
|
||||||
|
|
||||||
if (statvfs(mountpoint.c_str(), &buffer) == -1) {
|
if (statvfs(mountpoint.c_str(), &buffer) == -1) {
|
||||||
|
m_log.err("%s: Failed to query filesystem (statvfs() error: %s)", name(), strerror(errno));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user