From: alex Date: Thu, 19 Aug 2004 13:44:38 +0000 (+0000) Subject: - lustre may set generation in replay case by itself X-Git-Tag: 1.3.4~464 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=069a9bfca7b9074e6db3e599deb683b7d67db47e;p=fs%2Flustre-release.git - lustre may set generation in replay case by itself --- diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index cdde8cf..3bba6bb 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1474,7 +1474,6 @@ repeat: (unsigned long) body->oa.o_id, (unsigned long) body->oa.o_generation); dp.p_inum = body->oa.o_id; - dp.p_generation = body->oa.o_generation; } rc = vfs_mkdir(parent_inode, new, body->oa.o_mode); if (rc == 0) { @@ -1491,6 +1490,10 @@ repeat: new->d_inode->i_ino, new->d_inode->i_generation); } + if (lustre_msg_get_flags(req->rq_reqmsg) & MSG_REPLAY) { + new->d_inode->i_generation = body->oa.o_generation; + mark_inode_dirty(new->d_inode); + } obdo_from_inode(&repbody->oa, new->d_inode, FILTER_VALID_FLAGS); repbody->oa.o_id = new->d_inode->i_ino;