[SIGAR-42] Honor Solaris mnttab ignore flag in file_system_list
This commit is contained in:
1 parent
39d8d0930b
commit
4faf382ac4
2 files changed
+8
No files matched your search
@@ -1327,6 +1327,10 @@ int sigar_file_system_list_get(sigar_t *sigar,
|
||||
sigar_file_system_list_create(fslist);
|
||||
|
||||
while (getmntent(fp, &ent) == 0) {
|
||||
if (strstr(ent.mnt_mntopts, "ignore")) {
|
||||
continue; /* e.g. vold */
|
||||
}
|
||||
|
||||
SIGAR_FILE_SYSTEM_LIST_GROW(fslist);
|
||||
|
||||
fsp = &fslist->data[fslist->number++];
|
||||
|
||||
Reference in new issue
Block a user