Print this page
6198 Let's EOL cachefs
@@ -23,10 +23,11 @@
/* PROTOLIB1 */
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
/*
* nfsstat: Network File System statistics
*
@@ -1113,37 +1114,13 @@
}
mrp->next = list;
list = mrp;
}
- /*
- * If something got ignored, go to the beginning of the mnttab
- * and look for the cachefs entries since they are the one
- * causing this. The mount point saved for the ignored entries
- * is matched against the special to get the actual mount point.
- * We are interested in the acutal mount point so that the output
- * look nice too.
- */
- if (ignored) {
- rewind(mt);
- resetmnttab(mt);
- while (getextmntent(mt, &m, sizeof (struct extmnttab)) == 0) {
+ (void) fclose(mt);
- /* ignore non "cachefs" */
- if (strcmp(m.mnt_fstype, MNTTYPE_CACHEFS) != 0)
- continue;
-
- for (mrp = list; mrp; mrp = mrp->next) {
- if (mrp->ig_path == 0)
- continue;
- if (strcmp(mrp->ig_path, m.mnt_special) == 0) {
- mrp->ig_path = 0;
- (void) strcpy(mrp->my_dir,
- m.mnt_mountp);
- }
- }
- }
+ if (ignored) {
/*
* Now ignored entries which do not have
* the my_dir initialized are really ignored; This never
* happens unless the mnttab is corrupted.
*/
@@ -1155,13 +1132,10 @@
else
list = mrp->next;
}
}
- (void) fclose(mt);
-
-
for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) {
int i;
if (ksp->ks_type != KSTAT_TYPE_RAW)
continue;