summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfsclstate.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2010-04-15 22:57:30 +0000
committerrmacklem <rmacklem@FreeBSD.org>2010-04-15 22:57:30 +0000
commita2d9acce0d5166a4dfc785a69330d046b7436c4d (patch)
tree3856375a54aca33c4f80c011377bffc54088ebb9 /sys/fs/nfs/nfsclstate.h
parent1e60f70fdddc6c9caf965fdd1ee6d2f9a62e9fac (diff)
downloadFreeBSD-src-a2d9acce0d5166a4dfc785a69330d046b7436c4d.zip
FreeBSD-src-a2d9acce0d5166a4dfc785a69330d046b7436c4d.tar.gz
The experimental NFS client was not filling in recovery credentials
for opens done locally in the client when a delegation for the file was held. This could cause the client to crash in crsetgroups() when recovering from a server crash/reboot. This patch fills in the recovery credentials for this case, in order to avoid the client crash. Also, add KASSERT()s to the credential copy functions, to catch any other cases where the credentials aren't filled in correctly. MFC after: 1 week
Diffstat (limited to 'sys/fs/nfs/nfsclstate.h')
-rw-r--r--sys/fs/nfs/nfsclstate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfsclstate.h b/sys/fs/nfs/nfsclstate.h
index 10747af..edd479c 100644
--- a/sys/fs/nfs/nfsclstate.h
+++ b/sys/fs/nfs/nfsclstate.h
@@ -140,6 +140,7 @@ struct nfsclopen {
#define NFSCLOPEN_OK 0
#define NFSCLOPEN_DOOPEN 1
#define NFSCLOPEN_DOOPENDOWNGRADE 2
+#define NFSCLOPEN_SETCRED 3
struct nfscllockowner {
LIST_ENTRY(nfscllockowner) nfsl_list;
OpenPOWER on IntegriCloud