2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * Private method declarations 2N/A}
/* nfs_free_mntinfo_list */ 2N/A}
/* nfs_get_filtered_mount_list */ 2N/A}
/* nfs_get_mount_by_mntopt */ 2N/A}
/* nfs_get_mount_list */ 2N/A "nfs_mntinfo: kstat_open(): can't open /dev/kstat.\n");
2N/A * Each kstat consists of header and data sections that are 2N/A * connected as a "chain" or linked list of kstat stuctures. 2N/A * The kc_chain used here is the pointer to the global kstat 2N/A * chain (or the head of the chain of kstat's). 2N/A}
/* get_kstat_info */ 2N/A * MAXMIN is used to retrieve the minor number 2N/A * which is compared to the kstat instance. 2N/A * If they are the same then this is an instance 2N/A * for which mount information is needed. 2N/A * MAXMIN is the maximum minor number and is 2N/A /* ignore non "nfs" and the "ignore" entries */ 2N/A * If the number of servers is not 1 then resource is 2N/A * either a failover list or there is an error. In either 2N/A * case the path can't be determined and curpath is set to 2N/A * If NULL is returned this is an 2N/A * invalid path entry. no path can 2N/A * more than one server in the failover list 2N/A * path can't be determined. 2N/A}
/* get_mount_data */ 2N/A}
/* safe_kstat_read */ 2N/A * ignore - Checks for the ignore mount option in the mount opts string. 2N/A * Returns 1 if the ignore option is found and 0 if not. 2N/A while (*s !=
'\0') {