Page MenuHomeFreeBSD

D19325.id54291.diff
No OneTemporary

D19325.id54291.diff

Index: sys/fs/ext2fs/ext2_alloc.c
===================================================================
--- sys/fs/ext2fs/ext2_alloc.c
+++ sys/fs/ext2fs/ext2_alloc.c
@@ -1272,10 +1272,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
Wed, Apr 22, 3:33 AM (10 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31950809
Default Alt Text
D19325.id54291.diff (638 B)

Event Timeline