Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352883
b: refs/heads/master
c: b6f4bee
h: refs/heads/master
i:
  352881: eaea045
  352879: e714c6c
v: v3
  • Loading branch information
M. Mohan Kumar authored and Eric Van Hensbergen committed Feb 10, 2013
1 parent 2c54bff commit 2079440
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 03f0e022736d123bc42907a958535f4f10d0c4c3
refs/heads/master: b6f4bee02f682d1c86ece297871b78ae01afaaf4
10 changes: 8 additions & 2 deletions trunk/fs/9p/vfs_inode_dotl.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,14 @@ v9fs_vfs_atomic_open_dotl(struct inode *dir, struct dentry *dentry,
}

/* Only creates */
if (!(flags & O_CREAT) || dentry->d_inode)
return finish_no_open(file, res);
if (!(flags & O_CREAT))
return finish_no_open(file, res);
else if (dentry->d_inode) {
if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
return -EEXIST;
else
return finish_no_open(file, res);
}

v9ses = v9fs_inode2v9ses(dir);

Expand Down

0 comments on commit 2079440

Please sign in to comment.