filter out auto-mounted filesystems

This commit is contained in:
Doug MacEachern 2005-12-05 18:43:42 +00:00
parent 79bc88de67
commit 09da6e96e0
1 changed files with 4 additions and 0 deletions

View File

@ -1290,6 +1290,10 @@ int sigar_file_system_list_get(sigar_t *sigar,
for (i=0; i<num; i++) { for (i=0; i<num; i++) {
sigar_file_system_t *fsp; sigar_file_system_t *fsp;
if (fs[i].f_flags & MNT_AUTOMOUNTED) {
continue;
}
SIGAR_FILE_SYSTEM_LIST_GROW(fslist); SIGAR_FILE_SYSTEM_LIST_GROW(fslist);
fsp = &fslist->data[fslist->number++]; fsp = &fslist->data[fslist->number++];