diff options
author | Olga Kornievskaia <kolga@netapp.com> | 2019-10-09 17:50:48 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-12-09 17:44:07 +0100 |
commit | ce0887ac96d35c7105090e166bb0807dc0a0e838 (patch) | |
tree | 3533f0f13ce8b69cb1d16b85ec4681e86459e9ff /fs/nfsd/nfssvc.c | |
parent | NFSD: allow inter server COPY to have a STALE source server fh (diff) | |
download | linux-ce0887ac96d35c7105090e166bb0807dc0a0e838.tar.xz linux-ce0887ac96d35c7105090e166bb0807dc0a0e838.zip |
NFSD add nfs4 inter ssc to nfsd4_copy
Given a universal address, mount the source server from the destination
server. Use an internal mount. Call the NFS client nfs42_ssc_open to
obtain the NFS struct file suitable for nfsd_copy_range.
Ability to do "inter" server-to-server depends on the an nfsd kernel
parameter "inter_copy_offload_enable".
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index e8bee8ff30c5..c720097a9149 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -31,6 +31,12 @@ #define NFSDDBG_FACILITY NFSDDBG_SVC +bool inter_copy_offload_enable; +EXPORT_SYMBOL_GPL(inter_copy_offload_enable); +module_param(inter_copy_offload_enable, bool, 0644); +MODULE_PARM_DESC(inter_copy_offload_enable, + "Enable inter server to server copy offload. Default: false"); + extern struct svc_program nfsd_program; static int nfsd(void *vrqstp); #if defined(CONFIG_NFSD_V2_ACL) || defined(CONFIG_NFSD_V3_ACL) |