Whamcloud - gitweb
Detect if we read back bogus server data from the last_rcvd file. We just
authoradilger <adilger>
Wed, 16 Jul 2003 20:10:38 +0000 (20:10 +0000)
committeradilger <adilger>
Wed, 16 Jul 2003 20:10:38 +0000 (20:10 +0000)
make a new one - not much else that could really be done.

lustre/obdclass/fsfilt_ext3.c

index 82c2f58..f695a51 100644 (file)
@@ -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;
         }