From d6b7a798ee654750bde6b261750cd3e4e5fa66cb Mon Sep 17 00:00:00 2001 From: wangdi Date: Sun, 14 Aug 2005 17:55:12 +0000 Subject: [PATCH] Branch: HEAD should reset the mem to 0, if not get the indicated next block. which should fix the audit log oops. --- lustre/lvfs/llog_lvfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/lvfs/llog_lvfs.c b/lustre/lvfs/llog_lvfs.c index c67acce..2ce4c3b 100644 --- a/lustre/lvfs/llog_lvfs.c +++ b/lustre/lvfs/llog_lvfs.c @@ -391,8 +391,10 @@ static int llog_lvfs_next_block(struct llog_handle *loghandle, int *curr_idx, loghandle->lgh_id.lgl_ogen, *curr_offset); RETURN(-EINVAL); } - if (le32_to_cpu(tail->lrt_index) < next_idx) + if (le32_to_cpu(tail->lrt_index) < next_idx) { + memset(buf, 0, len); continue; + } /* sanity check that the start of the new buffer is no farther * than the record that we wanted. This shouldn't happen. */ -- 1.8.3.1