Drop to the debugger if unable to sync out the buffers during shutdown.
authorDavid Rhodus <drhodus@dragonflybsd.org>
Thu, 24 Jun 2004 16:49:13 +0000 (16:49 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Thu, 24 Jun 2004 16:49:13 +0000 (16:49 +0000)
sys/kern/kern_shutdown.c

index 16da06c..5776390 100644 (file)
@@ -37,7 +37,7 @@
  *
  *     @(#)kern_shutdown.c     8.3 (Berkeley) 1/21/94
  * $FreeBSD: src/sys/kern/kern_shutdown.c,v 1.72.2.12 2002/02/21 19:15:10 dillon Exp $
- * $DragonFly: src/sys/kern/kern_shutdown.c,v 1.16 2004/02/17 19:38:49 dillon Exp $
+ * $DragonFly: src/sys/kern/kern_shutdown.c,v 1.17 2004/06/24 16:49:13 drhodus Exp $
  */
 
 #include "opt_ddb.h"
@@ -309,6 +309,9 @@ boot(int howto)
                         * unmount filesystems (thus forcing an fsck on reboot).
                         */
                        printf("giving up on %d buffers\n", nbusy);
+#ifdef DDB
+                       Debugger("busy buffer problem");
+#endif /* DDB */
                        DELAY(5000000); /* 5 seconds */
                } else {
                        printf("done\n");