History

nfs4.1: add BIND_CONN_TO_SESSION operation

This patch adds the BIND_CONN_TO_SESSION operation which is needed for upcoming SP4_MACH_CRED work and useful for recovering from broken connections without destroying the session.

Weston Andros Adamson committed 14 years ago

Commit 7c44f1a1 parent d23d61c5 files · +161 −0Browse files

Showing the changes to include (2 of 5 files). Show all

Unified · Split

2 files
  1. include/linux/nfs4.h +5 −0
  2. include/linux/nfs_xdr.h +6 −0
include/linux/nfs4.h+5−0
@@ -69,6 +69,10 @@ · 68 unmodified lines
6969 #define NFS4_CDFC4_FORE_OR_BOTH 0x3
7070 #define NFS4_CDFC4_BACK_OR_BOTH 0x7
7171
72+#define NFS4_CDFS4_FORE 0x1
73+#define NFS4_CDFS4_BACK 0x2
74+#define NFS4_CDFS4_BOTH 0x3
75+
7276 #define NFS4_SET_TO_SERVER_TIME 0
7377 #define NFS4_SET_TO_CLIENT_TIME 1
7478
@@ -589,6 +593,7 @@ enum { · 514 unmodified lines
589593 NFSPROC4_CLNT_SECINFO,
590594
591595 /* nfs41 */
596+ NFSPROC4_CLNT_BIND_CONN_TO_SESSION,
592597 NFSPROC4_CLNT_EXCHANGE_ID,
593598 NFSPROC4_CLNT_CREATE_SESSION,
594599 NFSPROC4_CLNT_DESTROY_SESSION,
include/linux/nfs_xdr.h+6−0
@@ -1125,6 +1125,12 @@ struct nfs41_impl_id { · 1124 unmodified lines
11251125 struct nfstime4 date;
11261126 };
11271127
1128+struct nfs41_bind_conn_to_session_res {
1129+ struct nfs4_session *session;
1130+ u32 dir;
1131+ bool use_conn_in_rdma_mode;
1132+};
1133+
11281134 struct nfs41_exchange_id_res {
11291135 struct nfs_client *client;
11301136 u32 flags;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t