FreeBSD/usr.sbin/mountd/mountd.c
/*
 * Search the export list for a matching fs.
 */
Search the export list for a matching fs.
Search the export list for a matching fs .
static struct exportlist *
ex_search(fsid_t *fsid)
{
	struct exportlist *ep;
	ep = exphead;
	while (ep) {
		if (ep->ex_fs.val[0] == fsid->val[0] &&
		    ep->ex_fs.val[1] == fsid->val[1])
			return (ep);
		ep = ep->ex_next;
	}
	return (ep);
}
static struct exportlist * ex_search ( fsid_t * fsid ) { struct exportlist * ep ; ep = exphead ; while ( ep ) { if ( ep -> ex_fs . val [ 0 ] == fsid -> val [ 0 ] && ep -> ex_fs . val [ 1 ] == fsid -> val [ 1 ] ) return ( ep ) ; ep = ep -> ex_next ; } return ( ep ) ; }
Search the export list for a matching fs.
Search the export list for a matching fs .