diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-09-17 17:31:06 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-09-17 17:31:06 -0400 |
commit | e8582a8b96f329083b4da29aa87bc43cc0d80dd1 (patch) | |
tree | f0efdb995432c3559e6827994dcd3e77fa8c120e /include/linux/nfs_xdr.h | |
parent | 920769f031a8aff87b66bdf49d1a0d0988241ef9 (diff) |
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>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index acb95fb27bcc..9ad132e13d12 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -411,6 +411,15 @@ struct nfs_renameargs { | |||
411 | struct nfs4_sequence_args seq_args; | 411 | struct nfs4_sequence_args seq_args; |
412 | }; | 412 | }; |
413 | 413 | ||
414 | struct nfs_renameres { | ||
415 | const struct nfs_server *server; | ||
416 | struct nfs4_change_info old_cinfo; | ||
417 | struct nfs_fattr *old_fattr; | ||
418 | struct nfs4_change_info new_cinfo; | ||
419 | struct nfs_fattr *new_fattr; | ||
420 | struct nfs4_sequence_res seq_res; | ||
421 | }; | ||
422 | |||
414 | /* | 423 | /* |
415 | * Argument struct for decode_entry function | 424 | * Argument struct for decode_entry function |
416 | */ | 425 | */ |
@@ -623,11 +632,6 @@ struct nfs3_readlinkargs { | |||
623 | struct page ** pages; | 632 | struct page ** pages; |
624 | }; | 633 | }; |
625 | 634 | ||
626 | struct nfs3_renameres { | ||
627 | struct nfs_fattr * fromattr; | ||
628 | struct nfs_fattr * toattr; | ||
629 | }; | ||
630 | |||
631 | struct nfs3_linkres { | 635 | struct nfs3_linkres { |
632 | struct nfs_fattr * dir_attr; | 636 | struct nfs_fattr * dir_attr; |
633 | struct nfs_fattr * fattr; | 637 | struct nfs_fattr * fattr; |
@@ -795,15 +799,6 @@ struct nfs4_readlink_res { | |||
795 | struct nfs4_sequence_res seq_res; | 799 | struct nfs4_sequence_res seq_res; |
796 | }; | 800 | }; |
797 | 801 | ||
798 | struct nfs4_rename_res { | ||
799 | const struct nfs_server * server; | ||
800 | struct nfs4_change_info old_cinfo; | ||
801 | struct nfs_fattr * old_fattr; | ||
802 | struct nfs4_change_info new_cinfo; | ||
803 | struct nfs_fattr * new_fattr; | ||
804 | struct nfs4_sequence_res seq_res; | ||
805 | }; | ||
806 | |||
807 | #define NFS4_SETCLIENTID_NAMELEN (127) | 802 | #define NFS4_SETCLIENTID_NAMELEN (127) |
808 | struct nfs4_setclientid { | 803 | struct nfs4_setclientid { |
809 | const nfs4_verifier * sc_verifier; | 804 | const nfs4_verifier * sc_verifier; |