Page MenuHomeFreeBSD

D19325.diff
No OneTemporary

D19325.diff

Index: head/sys/fs/ext2fs/ext2_alloc.c
===================================================================
--- head/sys/fs/ext2fs/ext2_alloc.c
+++ head/sys/fs/ext2fs/ext2_alloc.c
@@ -1318,10 +1318,12 @@
start = 0;
loc = memcchr(&ibp[start], 0xff, len);
if (loc == NULL) {
- printf("cg = %d, ipref = %lld, fs = %s\n",
+ printf("ext2fs: inode bitmap corrupted: "
+ "cg = %d, ipref = %lld, fs = %s - run fsck\n",
cg, (long long)ipref, fs->e2fs_fsmnt);
- panic("ext2fs_nodealloccg: map corrupted");
- /* NOTREACHED */
+ brelse(bp);
+ EXT2_LOCK(ump);
+ return (0);
}
}
ipref = (loc - ibp) * NBBY + ffs(~*loc) - 1;

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 20, 1:44 AM (1 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31814679
Default Alt Text
D19325.diff (653 B)

Event Timeline