Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167887
b: refs/heads/master
c: 52567b0
h: refs/heads/master
i:
  167885: 9e2a708
  167883: a8c910e
  167879: 6640f0c
  167871: d034170
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 23, 2009
1 parent d4d5dbf commit 286fa79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8b40bc7e635831b61c43acc71a86d3a68b2dff0
refs/heads/master: 52567b03ca38b6e556ced450d64dba8d66e23b0e
11 changes: 8 additions & 3 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,17 @@ static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
/* Prevent leaks of NFSv4 errors into userland */
static int nfs4_map_errors(int err)
{
if (err < -1000) {
if (err >= -1000)
return err;
switch (err) {
case -NFS4ERR_RESOURCE:
return -EREMOTEIO;
default:
dprintk("%s could not handle NFSv4 error %d\n",
__func__, -err);
return -EIO;
break;
}
return err;
return -EIO;
}

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/nfs/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -5681,7 +5681,6 @@ static struct {
{ NFS4ERR_SERVERFAULT, -ESERVERFAULT },
{ NFS4ERR_BADTYPE, -EBADTYPE },
{ NFS4ERR_LOCKED, -EAGAIN },
{ NFS4ERR_RESOURCE, -EREMOTEIO },
{ NFS4ERR_SYMLINK, -ELOOP },
{ NFS4ERR_OP_ILLEGAL, -EOPNOTSUPP },
{ NFS4ERR_DEADLOCK, -EDEADLK },
Expand Down

0 comments on commit 286fa79

Please sign in to comment.