[PATCH 4/5] Dynamic Pseudo Root

Steve Dickson SteveD at redhat.com
Mon Feb 18 07:44:49 EST 2008


Author: Steve Dickson <steved at redhat.com>

    Don't turn off FSID bit on the pseudo root.
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff -up nfs-utils/utils/mountd/cache.c.save2 nfs-utils/utils/mountd/cache.c
--- nfs-utils/utils/mountd/cache.c.save2	2008-02-16 12:37:50.000000000 -0500
+++ nfs-utils/utils/mountd/cache.c	2008-02-16 12:39:33.000000000 -0500
@@ -570,8 +570,9 @@ static int dump_to_cache(FILE *f, char *
 	qword_printint(f, time(0)+30*60);
 	if (exp) {
 		int different_fs = strcmp(path, exp->e_path) != 0;
+		int v4root = (v4root_maproot(path) != NULL);
 		
-		if (different_fs)
+		if (different_fs && !v4root)
 			qword_printint(f, exp->e_flags & ~NFSEXP_FSID);
 		else
 			qword_printint(f, exp->e_flags);


More information about the NFSv4 mailing list