mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
NFS: Add COPY nfs operation
This adds the copy_range file_ops function pointer used by the sys_copy_range() function call. This patch only implements sync copies, so if an async copy happens we decode the stateid and ignore it. Signed-off-by: Anna Schumaker <bjschuma@netapp.com>
This commit is contained in:
parent
67911c8f18
commit
2e72448b07
9 changed files with 305 additions and 0 deletions
|
@ -1343,6 +1343,32 @@ struct nfs42_falloc_res {
|
|||
const struct nfs_server *falloc_server;
|
||||
};
|
||||
|
||||
struct nfs42_copy_args {
|
||||
struct nfs4_sequence_args seq_args;
|
||||
|
||||
struct nfs_fh *src_fh;
|
||||
nfs4_stateid src_stateid;
|
||||
u64 src_pos;
|
||||
|
||||
struct nfs_fh *dst_fh;
|
||||
nfs4_stateid dst_stateid;
|
||||
u64 dst_pos;
|
||||
|
||||
u64 count;
|
||||
};
|
||||
|
||||
struct nfs42_write_res {
|
||||
u64 count;
|
||||
struct nfs_writeverf verifier;
|
||||
};
|
||||
|
||||
struct nfs42_copy_res {
|
||||
struct nfs4_sequence_res seq_res;
|
||||
struct nfs42_write_res write_res;
|
||||
bool consecutive;
|
||||
bool synchronous;
|
||||
};
|
||||
|
||||
struct nfs42_seek_args {
|
||||
struct nfs4_sequence_args seq_args;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue