mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
* fixed buglet with open(O_CREAT)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1243 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
df0126377f
commit
4bb27d78ed
@ -2326,7 +2326,8 @@ void Server::handle_client_openc(MClientRequest *req, CInode *diri)
|
||||
CDentry *dn = 0;
|
||||
|
||||
// make dentry and inode, xlock dentry.
|
||||
int r = prepare_mknod(req, diri, &in, &dn);
|
||||
bool excl = req->get_iarg() & O_EXCL;
|
||||
int r = prepare_mknod(req, diri, &in, &dn, !excl);
|
||||
if (!r)
|
||||
return; // wait on something
|
||||
assert(in);
|
||||
|
Loading…
Reference in New Issue
Block a user