From 4faf382ac49b347b463f221105b4bcb440682ce2 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 15 Feb 2007 14:27:11 +0000 Subject: [PATCH] [SIGAR-42] Honor Solaris mnttab ignore flag in file_system_list --- ChangeLog | 4 ++++ src/os/solaris/solaris_sigar.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 05553037..8f8e49df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-02-15 Doug MacEachern + + * [SIGAR-42] Honor Solaris mnttab ignore flag in file_system_list + 2007-02-12 Doug MacEachern * [SIGAR-17] Fix possible bad cpu list number on Solaris diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 497c39a9..7a2446d7 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -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++];