From: rread Date: Mon, 26 Jul 2004 16:20:25 +0000 (+0000) Subject: b=3550 X-Git-Tag: v1_7_100~2031 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9993dabc65907f04a9bdb89d10c7faecbcb9afa9;p=fs%2Flustre-release.git b=3550 Preemptive LASSERT to make sure replay creates the correct inode here. --- diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 535b578..caa0aad 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1423,6 +1423,20 @@ repeat: } rc = vfs_mkdir(parent_inode, new, body->oa.o_mode); if (rc == 0) { + if (lustre_msg_get_flags(req->rq_reqmsg) & MSG_REPLAY) { + LASSERTF(body->oa.o_id == new->d_inode->i_ino, + "BUG 3550: failed to recreate obj " + LPU64" -> %lu\n", + body->oa.o_id, new->d_inode->i_ino); + LASSERTF(body->oa.o_generation == + new->d_inode->i_generation, + "BUG 3550: failed to recreate obj/gen " + LPU64"/%u -> %lu/%u\n", + body->oa.o_id, body->oa.o_generation, + new->d_inode->i_ino, + new->d_inode->i_generation); + } + obdo_from_inode(&repbody->oa, new->d_inode, FILTER_VALID_FLAGS); repbody->oa.o_id = new->d_inode->i_ino; repbody->oa.o_generation = new->d_inode->i_generation;