diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-05-10 16:47:18 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-14 20:42:21 -0400 |
commit | 5e7e5a0da28216fb9d0a49e93ee27668ef4f04f7 (patch) | |
tree | 866a46d16889cdf7a64eeabfab952707c1b45397 /fs/nfs/nfs2xdr.c | |
parent | 87c7083dc3eba802d6e9f312ec520a4814f59871 (diff) |
NFS: Create an NFS v3 stat_to_errno()
In theory, NFS v3 can have different error versions than NFS v2. v4 is
already using its own nfs4_stat_to_errno() to map error codes, so
rather than create something in the generic client for v2 and v3 to
share I instead give v3 its own function.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs2xdr.c')
-rw-r--r-- | fs/nfs/nfs2xdr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c index c99008e9d8a4..baf759bccd05 100644 --- a/fs/nfs/nfs2xdr.c +++ b/fs/nfs/nfs2xdr.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #define NFS_readdirres_sz (1) | 61 | #define NFS_readdirres_sz (1) |
62 | #define NFS_statfsres_sz (1+NFS_info_sz) | 62 | #define NFS_statfsres_sz (1+NFS_info_sz) |
63 | 63 | ||
64 | static int nfs_stat_to_errno(enum nfs_stat); | ||
64 | 65 | ||
65 | /* | 66 | /* |
66 | * While encoding arguments, set up the reply buffer in advance to | 67 | * While encoding arguments, set up the reply buffer in advance to |
@@ -1111,7 +1112,7 @@ static const struct { | |||
1111 | * Returns a local errno value, or -EIO if the NFS status code is | 1112 | * Returns a local errno value, or -EIO if the NFS status code is |
1112 | * not recognized. This function is used jointly by NFSv2 and NFSv3. | 1113 | * not recognized. This function is used jointly by NFSv2 and NFSv3. |
1113 | */ | 1114 | */ |
1114 | int nfs_stat_to_errno(enum nfs_stat status) | 1115 | static int nfs_stat_to_errno(enum nfs_stat status) |
1115 | { | 1116 | { |
1116 | int i; | 1117 | int i; |
1117 | 1118 | ||