changeset 13829:f77936ab6455

3162 nfs: some unusable code in nfs4_srv.c Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Richard Lowe <richlowe@richlowe.net>
author Vitaliy Gusev <gusev.vitaliy@nexenta.com>
date Mon, 03 Sep 2012 21:55:26 -0500
parents 9b04683eb903
children 8a85b2c3d89b
files usr/src/uts/common/fs/nfs/nfs4_srv.c
diffstat 1 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fs/nfs/nfs4_srv.c	Wed Sep 05 20:55:01 2012 -0500
+++ b/usr/src/uts/common/fs/nfs/nfs4_srv.c	Mon Sep 03 21:55:26 2012 -0500
@@ -3665,30 +3665,6 @@
 }
 
 /*
- * A directory entry is a valid nfsv4 entry if
- * - it has a non-zero ino
- * - it is not a dot or dotdot name
- * - it is visible in a pseudo export or in a real export that can
- *   only have a limited view.
- */
-static bool_t
-valid_nfs4_entry(struct exportinfo *exi, struct dirent64 *dp,
-    int *expseudo, int check_visible)
-{
-	if (dp->d_ino == 0 || NFS_IS_DOTNAME(dp->d_name)) {
-		*expseudo = 0;
-		return (FALSE);
-	}
-
-	if (! check_visible) {
-		*expseudo = 0;
-		return (TRUE);
-	}
-
-	return (nfs_visible_inode(exi, dp->d_ino, expseudo));
-}
-
-/*
  * set_rdattr_params sets up the variables used to manage what information
  * to get for each directory entry.
  */