From: nathan Date: Thu, 1 Mar 2007 19:12:57 +0000 (+0000) Subject: b=11752 X-Git-Tag: v1_7_100~288 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=4a0a4f7c0af79491aa25e29d20d675f12b984e3c;hp=4dd1f2ca4166981b19113ed54ae14bd849d78284 b=11752 assert possibly caused by uninitialized var --- diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 80cc962..ad0d2e4 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -1182,7 +1182,7 @@ static int fsfilt_ext3_write_record(struct file *file, void *buf, int bufsize, loff_t new_size = inode->i_size; journal_t *journal; handle_t *handle; - int err, block_count = 0, blocksize, size, boffs; + int err = 0, block_count = 0, blocksize, size, boffs; /* Determine how many transaction credits are needed */ blocksize = 1 << inode->i_blkbits; diff --git a/lustre/obdclass/llog_lvfs.c b/lustre/obdclass/llog_lvfs.c index 90c968b..6c287b3 100644 --- a/lustre/obdclass/llog_lvfs.c +++ b/lustre/obdclass/llog_lvfs.c @@ -89,10 +89,13 @@ static int llog_lvfs_write_blob(struct obd_device *obd, struct l_file *file, struct llog_rec_tail end; loff_t saved_off = file->f_pos; int buflen = rec->lrh_len; - ENTRY; + file->f_pos = off; + if (buflen == 0) + CWARN("0-length record\n"); + if (!buf) { rc = fsfilt_write_record(obd, file, rec, buflen,&file->f_pos,0); if (rc) {