From 7a174578f0036c99365b9e341c6fbc48d807e1b1 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 16 Jul 2003 20:10:38 +0000 Subject: [PATCH] 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. --- lustre/obdclass/fsfilt_ext3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 1.8.3.1