diff options
-rw-r--r-- | fs/nfs/Kconfig | 11 | ||||
-rw-r--r-- | fs/nfs/nfs4proc.c | 8 |
2 files changed, 18 insertions, 1 deletions
diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig index b5e80b0af315..38c1768b4142 100644 --- a/fs/nfs/Kconfig +++ b/fs/nfs/Kconfig | |||
@@ -140,6 +140,17 @@ config NFS_V4_1_IMPLEMENTATION_ID_DOMAIN | |||
140 | If the NFS client is unchanged from the upstream kernel, this | 140 | If the NFS client is unchanged from the upstream kernel, this |
141 | option should be set to the default "kernel.org". | 141 | option should be set to the default "kernel.org". |
142 | 142 | ||
143 | config NFS_V4_1_MIGRATION | ||
144 | bool "NFSv4.1 client support for migration" | ||
145 | depends on NFS_V4_1 | ||
146 | default n | ||
147 | help | ||
148 | This option makes the NFS client advertise to NFSv4.1 servers that | ||
149 | it can support NFSv4 migration. | ||
150 | |||
151 | The NFSv4.1 pieces of the Linux NFSv4 migration implementation are | ||
152 | still experimental. If you are not an NFSv4 developer, say N here. | ||
153 | |||
143 | config NFS_V4_SECURITY_LABEL | 154 | config NFS_V4_SECURITY_LABEL |
144 | bool | 155 | bool |
145 | depends on NFS_V4_2 && SECURITY | 156 | depends on NFS_V4_2 && SECURITY |
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8aa8ff3fd5e7..1463c71b0862 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -6596,8 +6596,14 @@ static int _nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred, | |||
6596 | struct nfs41_exchange_id_args args = { | 6596 | struct nfs41_exchange_id_args args = { |
6597 | .verifier = &verifier, | 6597 | .verifier = &verifier, |
6598 | .client = clp, | 6598 | .client = clp, |
6599 | #ifdef CONFIG_NFS_V4_1_MIGRATION | ||
6599 | .flags = EXCHGID4_FLAG_SUPP_MOVED_REFER | | 6600 | .flags = EXCHGID4_FLAG_SUPP_MOVED_REFER | |
6600 | EXCHGID4_FLAG_BIND_PRINC_STATEID, | 6601 | EXCHGID4_FLAG_BIND_PRINC_STATEID | |
6602 | EXCHGID4_FLAG_SUPP_MOVED_MIGR, | ||
6603 | #else | ||
6604 | .flags = EXCHGID4_FLAG_SUPP_MOVED_REFER | | ||
6605 | EXCHGID4_FLAG_BIND_PRINC_STATEID, | ||
6606 | #endif | ||
6601 | }; | 6607 | }; |
6602 | struct nfs41_exchange_id_res res = { | 6608 | struct nfs41_exchange_id_res res = { |
6603 | 0 | 6609 | 0 |