aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>2009-09-10 18:24:59 +0000
committerNick Hibma <n_hibma@FreeBSD.org>2009-09-10 18:24:59 +0000
commitb22692bd0a3865d1fdfb77d1b303c6abe0127143 (patch)
treeed96aa1f0bde59adce4a844a92a47a29f9e1f7c6
parent3bcdfb9bf8c9d4774a98378885147a8490919ea4 (diff)
downloadsrc-b22692bd0a3865d1fdfb77d1b303c6abe0127143.tar.gz
src-b22692bd0a3865d1fdfb77d1b303c6abe0127143.zip
Add a comment on the consequences of reducing the poweroff delay
Notes
Notes: svn path=/head/; revision=197071
-rw-r--r--sys/kern/kern_shutdown.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 0f3a672a2998..6534d5c55414 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -581,6 +581,10 @@ panic(const char *fmt, ...)
/*
* Support for poweroff delay.
+ *
+ * Please note that setting this delay too short might power off your machine
+ * before the write cache on your hard disk has been flushed, leading to
+ * soft-updates inconsistencies.
*/
#ifndef POWEROFF_DELAY
# define POWEROFF_DELAY 5000