[SIGAR-42] Honor Solaris mnttab ignore flag in file_system_list
This commit is contained in:
parent
39d8d0930b
commit
4faf382ac4
|
@ -1,3 +1,7 @@
|
||||||
|
2007-02-15 Doug MacEachern <dougm@hyperic.com>
|
||||||
|
|
||||||
|
* [SIGAR-42] Honor Solaris mnttab ignore flag in file_system_list
|
||||||
|
|
||||||
2007-02-12 Doug MacEachern <dougm@hyperic.com>
|
2007-02-12 Doug MacEachern <dougm@hyperic.com>
|
||||||
|
|
||||||
* [SIGAR-17] Fix possible bad cpu list number on Solaris
|
* [SIGAR-17] Fix possible bad cpu list number on Solaris
|
||||||
|
|
|
@ -1327,6 +1327,10 @@ int sigar_file_system_list_get(sigar_t *sigar,
|
||||||
sigar_file_system_list_create(fslist);
|
sigar_file_system_list_create(fslist);
|
||||||
|
|
||||||
while (getmntent(fp, &ent) == 0) {
|
while (getmntent(fp, &ent) == 0) {
|
||||||
|
if (strstr(ent.mnt_mntopts, "ignore")) {
|
||||||
|
continue; /* e.g. vold */
|
||||||
|
}
|
||||||
|
|
||||||
SIGAR_FILE_SYSTEM_LIST_GROW(fslist);
|
SIGAR_FILE_SYSTEM_LIST_GROW(fslist);
|
||||||
|
|
||||||
fsp = &fslist->data[fslist->number++];
|
fsp = &fslist->data[fslist->number++];
|
||||||
|
|
Loading…
Reference in New Issue