Page MenuHomeFreeBSD

D38503.id116980.diff
No OneTemporary

D38503.id116980.diff

diff --git a/sys/fs/ext2fs/ext2_lookup.c b/fs/ext2fs/ext2_lookup.c
--- a/sys/fs/ext2fs/ext2_lookup.c
+++ b/fs/ext2fs/ext2_lookup.c
@@ -539,8 +539,8 @@
if (entryoffsetinblock + EXT2_DIR_REC_LEN(ep->e2d_namlen) >
dp->i_size) {
ext2_dirbad(dp, i_offset, "i_size too small");
- dp->i_size = entryoffsetinblock + EXT2_DIR_REC_LEN(ep->e2d_namlen);
- dp->i_flag |= IN_CHANGE | IN_UPDATE;
+ brelse(bp);
+ return (EIO);
}
brelse(bp);
@@ -803,7 +803,7 @@
mp = ITOV(ip)->v_mount;
if ((mp->mnt_flag & MNT_RDONLY) == 0)
- panic("ext2_dirbad: %s: bad dir ino %ju at offset %ld: %s\n",
+ printf("ext2_dirbad: %s: bad dir ino %ju at offset %ld: %s\n",
mp->mnt_stat.f_mntonname, (uintmax_t)ip->i_number,
(long)offset, how);
else

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 24, 12:23 AM (13 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26039943
Default Alt Text
D38503.id116980.diff (758 B)

Event Timeline