* 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:
sageweil 2007-03-15 21:02:47 +00:00
parent df0126377f
commit 4bb27d78ed

View File

@ -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);