Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252822
b: refs/heads/master
c: a62573d
h: refs/heads/master
v: v3
  • Loading branch information
Mi Jinlong authored and J. Bruce Fields committed Apr 30, 2011
1 parent cada60d commit f8cc1e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac6721a13e5b1a90728e790600f827a5e5f5da2f
refs/heads/master: a62573dc353b255dbbc8520bfdcb1c8a8c1ada87
3 changes: 3 additions & 0 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,9 @@ nfsd4_create_session(struct svc_rqst *rqstp,
bool confirm_me = false;
int status = 0;

if (cr_ses->flags & ~SESSION4_FLAG_MASK_A)
return nfserr_inval;

nfs4_lock_state();
unconf = find_unconfirmed_client(&cr_ses->clientid);
conf = find_confirmed_client(&cr_ses->clientid);
Expand Down
8 changes: 5 additions & 3 deletions trunk/include/linux/nfs4.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,11 @@ struct nfs4_sessionid {
};

/* Create Session Flags */
#define SESSION4_PERSIST 0x001
#define SESSION4_BACK_CHAN 0x002
#define SESSION4_RDMA 0x004
#define SESSION4_PERSIST 0x001
#define SESSION4_BACK_CHAN 0x002
#define SESSION4_RDMA 0x004

#define SESSION4_FLAG_MASK_A 0x007

enum state_protect_how4 {
SP4_NONE = 0,
Expand Down

0 comments on commit f8cc1e2

Please sign in to comment.