aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorNeilBrown <neilb@cse.unsw.edu.au>2005-07-07 20:59:30 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:24:11 -0400
commite34ac862ee6644378bfe6ea65c2e0dda4545513d (patch)
treea538b6b872e3f814c1bc6df461cb64d3b4794fc8 /fs/nfsd
parent4c4cd222ee329025840bc2f8cebf71d36c62440c (diff)
[PATCH] nfsd4: fix fh_expire_type
After discussion at the recent NFSv4 bake-a-thon, I realized that my assumption that NFS4_FH_PERSISTENT required filehandles to persist was a misreading of the spec. This also fixes an interoperability problem with the Solaris client. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4xdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 1515c5b8096f..4c4146350236 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1366,9 +1366,9 @@ nfsd4_encode_fattr(struct svc_fh *fhp, struct svc_export *exp,
1366 if ((buflen -= 4) < 0) 1366 if ((buflen -= 4) < 0)
1367 goto out_resource; 1367 goto out_resource;
1368 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) 1368 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK)
1369 WRITE32(NFS4_FH_VOLATILE_ANY); 1369 WRITE32(NFS4_FH_PERSISTENT);
1370 else 1370 else
1371 WRITE32(NFS4_FH_VOLATILE_ANY|NFS4_FH_VOL_RENAME); 1371 WRITE32(NFS4_FH_PERSISTENT|NFS4_FH_VOL_RENAME);
1372 } 1372 }
1373 if (bmval0 & FATTR4_WORD0_CHANGE) { 1373 if (bmval0 & FATTR4_WORD0_CHANGE) {
1374 /* 1374 /*