Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Sat, 18 Nov 2006 03:55:43 +0000 (03:55 +0000)
committerwangdi <wangdi>
Sat, 18 Nov 2006 03:55:43 +0000 (03:55 +0000)
add this assert for debuging b11123

lustre/llite/file.c

index 126c0b3..f3ef1d4 100644 (file)
@@ -1367,6 +1367,7 @@ repeat:
                 ll_inode_size_unlock(inode, 1);
         }
 
+        LASSERTF(end >= *ppos, "end: %Ld ppos %Ld \n", end, *ppos);
         chunk = end - *ppos + 1;
         CDEBUG(D_VFSTRACE, "Read ino %lu, "LPSZ" bytes, offset %lld, i_size %llu\n",
                inode->i_ino, chunk, *ppos, inode->i_size);