X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_lvfs.c;h=6c287b3cb5774c37121635a5b3e0ca7300f18e03;hp=90c968b1d42edd467ece4555177666afebc7d392;hb=4a0a4f7c0af79491aa25e29d20d675f12b984e3c;hpb=4dd1f2ca4166981b19113ed54ae14bd849d78284 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) {