From: adilger Date: Wed, 16 Jul 2003 20:10:38 +0000 (+0000) Subject: Detect if we read back bogus server data from the last_rcvd file. We just X-Git-Tag: v1_7_100~1^368~71 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7a174578f0036c99365b9e341c6fbc48d807e1b1;p=fs%2Flustre-release.git Detect if we read back bogus server data from the last_rcvd file. We just make a new one - not much else that could really be done. --- diff --git a/lustre/obdclass/fsfilt_ext3.c b/lustre/obdclass/fsfilt_ext3.c index 82c2f58..f695a51 100644 --- a/lustre/obdclass/fsfilt_ext3.c +++ b/lustre/obdclass/fsfilt_ext3.c @@ -524,8 +524,8 @@ static int fsfilt_ext3_read_record(struct file * file, char *buf, boffs = (unsigned)*offs % bh->b_size; if (boffs + size > bh->b_size) { - CERROR("request crosses block's border. offset %lu, size %lu\n", - (unsigned long)*offs, (unsigned long)size); + CERROR("request crosses block's border. offset %llu, size %u\n", + *offs, size); brelse(bh); return -EIO; } @@ -578,8 +578,8 @@ static int fsfilt_ext3_write_record(struct file * file, char *buf, boffs = (unsigned)*offs % bh->b_size; if (boffs + size > bh->b_size) { - CERROR("request crosses block's border. offset %lu, size %lu\n", - (unsigned long)*offs, (unsigned long)size); + CERROR("request crosses block's border. offset %llu, size %u\n", + *offs, size); err = -EIO; goto out; }