Module Name: src
Committed By: christos
Date: Thu Jan 28 16:32:40 UTC 2016
Modified Files:
src/sys/kern: subr_autoconf.c
Log Message:
Don't detach devices if we are dumping core.
To generate a diff of this commit:
cvs rdiff -u -r1.238 -r1.239 src/sys/kern/subr_autoconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/subr_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.238 src/sys/kern/subr_autoconf.c:1.239
--- src/sys/kern/subr_autoconf.c:1.238 Sat Dec 19 23:21:03 2015
+++ src/sys/kern/subr_autoconf.c Thu Jan 28 11:32:40 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.238 2015/12/20 04:21:03 pgoyette Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.239 2016/01/28 16:32:40 christos Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.238 2015/12/20 04:21:03 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.239 2016/01/28 16:32:40 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1880,7 +1880,7 @@ config_detach_all(int how)
device_t curdev;
bool progress = false;
- if ((how & RB_NOSYNC) != 0)
+ if ((how & (RB_NOSYNC|RB_DUMP)) != 0)
return false;
for (curdev = shutdown_first(&s); curdev != NULL;