From: wangdi Date: Sun, 14 Aug 2005 17:55:12 +0000 (+0000) Subject: Branch: HEAD X-Git-Tag: 1.4.10~726 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d6b7a798ee654750bde6b261750cd3e4e5fa66cb;p=fs%2Flustre-release.git Branch: HEAD should reset the mem to 0, if not get the indicated next block. which should fix the audit log oops. --- 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. */