Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260343
b: refs/heads/master
c: 9bae113
h: refs/heads/master
i:
  260341: 3b7a003
  260339: 2fef757
  260335: b7561ac
v: v3
  • Loading branch information
Sage Weil committed Jul 26, 2011
1 parent 6136438 commit 054a34a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: acda76578813ef893004ecad0e5ad2bb6039e5f7
refs/heads/master: 9bae113a085b790de384bf86f09e15b42a65a985
3 changes: 2 additions & 1 deletion trunk/fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ int ceph_open(struct inode *inode, struct file *file)
req->r_inode = inode;
ihold(inode);
req->r_num_caps = 1;
err = ceph_mdsc_do_request(mdsc, parent_inode, req);
err = ceph_mdsc_do_request(mdsc, (flags & (O_CREAT|O_TRUNC)) ?
parent_inode : NULL, req);
if (!err)
err = ceph_init_file(inode, file, req->r_fmode);
ceph_mdsc_put_request(req);
Expand Down

0 comments on commit 054a34a

Please sign in to comment.