Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ext2fs #if 0 the check for ext2fs_mapsearch() failur...
details: https://anonhg.NetBSD.org/src/rev/fc0a52c021df
branches: trunk
changeset: 347319:fc0a52c021df
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Aug 20 19:51:50 2016 +0000
description:
#if 0 the check for ext2fs_mapsearch() failure (similar what was done
for ffs counterpart), it actually never fails, it panics instead
diffstat:
sys/ufs/ext2fs/ext2fs_alloc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r d85fd3fe9b41 -r fc0a52c021df sys/ufs/ext2fs/ext2fs_alloc.c
--- a/sys/ufs/ext2fs/ext2fs_alloc.c Sat Aug 20 19:47:44 2016 +0000
+++ b/sys/ufs/ext2fs/ext2fs_alloc.c Sat Aug 20 19:51:50 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ext2fs_alloc.c,v 1.49 2016/08/20 19:47:44 jdolecek Exp $ */
+/* $NetBSD: ext2fs_alloc.c,v 1.50 2016/08/20 19:51:50 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_alloc.c,v 1.49 2016/08/20 19:47:44 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_alloc.c,v 1.50 2016/08/20 19:51:50 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -417,8 +417,11 @@
}
bno = ext2fs_mapsearch(fs, bbp, bpref);
+#if 0
+ /* XXX jdolecek mapsearch actually never fails, it panics instead */
if (bno < 0)
return 0;
+#endif
gotit:
#ifdef DIAGNOSTIC
if (isset(bbp, (daddr_t)bno)) {
Home |
Main Index |
Thread Index |
Old Index