Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267223
b: refs/heads/master
c: 08ef7bd
h: refs/heads/master
i:
  267221: 38b5a5a
  267219: 97130f6
  267215: b940cf1
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 18, 2011
1 parent f8fba26 commit fd3ea44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 0c2e53f11a6dae9e3af5f50f5ad0382e7c3e0cfa
refs/heads/master: 08ef7bd3bc04261d14d570ac7eaac3eac947b1ba
10 changes: 9 additions & 1 deletion trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1593,8 +1593,14 @@ static int _nfs4_proc_open(struct nfs4_opendata *data)
int status;

status = nfs4_run_open_task(data, 0);
if (status != 0 || !data->rpc_done)
if (!data->rpc_done)
return status;
if (status != 0) {
if (status == -NFS4ERR_BADNAME &&
!(o_arg->open_flags & O_CREAT))
return -ENOENT;
return status;
}

if (o_arg->open_flags & O_CREAT) {
update_changeattr(dir, &o_res->cinfo);
Expand Down Expand Up @@ -2455,6 +2461,8 @@ static int nfs4_proc_lookup(struct rpc_clnt *clnt, struct inode *dir, struct qst

status = _nfs4_proc_lookup(clnt, dir, name, fhandle, fattr);
switch (status) {
case -NFS4ERR_BADNAME:
return -ENOENT;
case -NFS4ERR_MOVED:
err = nfs4_get_referral(dir, name, fattr, fhandle);
break;
Expand Down

0 comments on commit fd3ea44

Please sign in to comment.