nfs: standardize the rename response container
Right now, v3 and v4 have their own variants. Create a standard struct that will work for v3 and v4. v2 doesn't get anything but a simple error and so isn't affected by this. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
920769f031
commit
e8582a8b96
5 changed files with 22 additions and 27 deletions
|
@ -411,6 +411,15 @@ struct nfs_renameargs {
|
|||
struct nfs4_sequence_args seq_args;
|
||||
};
|
||||
|
||||
struct nfs_renameres {
|
||||
const struct nfs_server *server;
|
||||
struct nfs4_change_info old_cinfo;
|
||||
struct nfs_fattr *old_fattr;
|
||||
struct nfs4_change_info new_cinfo;
|
||||
struct nfs_fattr *new_fattr;
|
||||
struct nfs4_sequence_res seq_res;
|
||||
};
|
||||
|
||||
/*
|
||||
* Argument struct for decode_entry function
|
||||
*/
|
||||
|
@ -623,11 +632,6 @@ struct nfs3_readlinkargs {
|
|||
struct page ** pages;
|
||||
};
|
||||
|
||||
struct nfs3_renameres {
|
||||
struct nfs_fattr * fromattr;
|
||||
struct nfs_fattr * toattr;
|
||||
};
|
||||
|
||||
struct nfs3_linkres {
|
||||
struct nfs_fattr * dir_attr;
|
||||
struct nfs_fattr * fattr;
|
||||
|
@ -795,15 +799,6 @@ struct nfs4_readlink_res {
|
|||
struct nfs4_sequence_res seq_res;
|
||||
};
|
||||
|
||||
struct nfs4_rename_res {
|
||||
const struct nfs_server * server;
|
||||
struct nfs4_change_info old_cinfo;
|
||||
struct nfs_fattr * old_fattr;
|
||||
struct nfs4_change_info new_cinfo;
|
||||
struct nfs_fattr * new_fattr;
|
||||
struct nfs4_sequence_res seq_res;
|
||||
};
|
||||
|
||||
#define NFS4_SETCLIENTID_NAMELEN (127)
|
||||
struct nfs4_setclientid {
|
||||
const nfs4_verifier * sc_verifier;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue