summaryrefslogtreecommitdiff
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2019-10-09 11:50:48 -0400
committerJ. Bruce Fields <bfields@redhat.com>2019-12-09 11:44:07 -0500
commitce0887ac96d35c7105090e166bb0807dc0a0e838 (patch)
tree3533f0f13ce8b69cb1d16b85ec4681e86459e9ff /fs/nfsd/xdr4.h
parentb9e8638e3d9ed8334f1f7071e081860aac37e83e (diff)
downloadlwn-ce0887ac96d35c7105090e166bb0807dc0a0e838.tar.gz
lwn-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/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index b16f602af8f1..db63d39b1507 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -549,7 +549,12 @@ struct nfsd4_copy {
struct task_struct *copy_task;
refcount_t refcount;
bool stopped;
+
+ struct vfsmount *ss_mnt;
+ struct nfs_fh c_fh;
+ nfs4_stateid stateid;
};
+extern bool inter_copy_offload_enable;
struct nfsd4_seek {
/* request */