patch-1.3.9 linux/fs/ext2/dir.c
Next file: linux/fs/ext2/file.c
Previous file: linux/fs/ext2/Makefile
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Jul 10 17:08:03 1995
- Orig file:
v1.3.8/linux/fs/ext2/dir.c
- Orig date:
Mon Jun 12 12:07:43 1995
diff -u --recursive --new-file v1.3.8/linux/fs/ext2/dir.c linux/fs/ext2/dir.c
@@ -88,10 +88,10 @@
error_msg = "inode out of bounds";
if (error_msg != NULL)
- ext2_error (dir->i_sb, function, "bad directory entry: %s\n"
+ ext2_error (dir->i_sb, function, "bad entry in directory #%lu: %s - "
"offset=%lu, inode=%lu, rec_len=%d, name_len=%d",
- error_msg, offset, (unsigned long) de->inode, de->rec_len,
- de->name_len);
+ dir->i_ino, error_msg, offset, (unsigned long) de->inode,
+ de->rec_len, de->name_len);
return error_msg == NULL ? 1 : 0;
}
@@ -118,6 +118,9 @@
blk = (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb);
bh = ext2_bread (inode, blk, 0, &err);
if (!bh) {
+ ext2_error (sb, "ext2_readdir",
+ "directory #%lu contains a hole at offset %lu",
+ inode->i_ino, (unsigned long)filp->f_pos);
filp->f_pos += sb->s_blocksize - offset;
continue;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this