From 069a9bfca7b9074e6db3e599deb683b7d67db47e Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 19 Aug 2004 13:44:38 +0000 Subject: [PATCH] - lustre may set generation in replay case by itself --- lustre/mds/handler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 1.8.3.1