summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4dd1f2c)
assert possibly caused by uninitialized var
loff_t new_size = inode->i_size;
journal_t *journal;
handle_t *handle;
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;
/* Determine how many transaction credits are needed */
blocksize = 1 << inode->i_blkbits;
struct llog_rec_tail end;
loff_t saved_off = file->f_pos;
int buflen = rec->lrh_len;
struct llog_rec_tail end;
loff_t saved_off = file->f_pos;
int buflen = rec->lrh_len;
+ if (buflen == 0)
+ CWARN("0-length record\n");
+
if (!buf) {
rc = fsfilt_write_record(obd, file, rec, buflen,&file->f_pos,0);
if (rc) {
if (!buf) {
rc = fsfilt_write_record(obd, file, rec, buflen,&file->f_pos,0);
if (rc) {