[Ocfs2-tools-commits] jlbec commits r1112 - trunk/vendor/common

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Sun Nov 6 21:50:48 CST 2005


Author: jlbec
Date: 2005-11-06 21:50:48 -0600 (Sun, 06 Nov 2005)
New Revision: 1112

Modified:
   trunk/vendor/common/o2cb.init
Log:

o Document the LOAD_ACTIONS array in o2cb.init.



Modified: trunk/vendor/common/o2cb.init
===================================================================
--- trunk/vendor/common/o2cb.init	2005-11-05 22:56:27 UTC (rev 1111)
+++ trunk/vendor/common/o2cb.init	2005-11-07 03:50:48 UTC (rev 1112)
@@ -46,7 +46,28 @@
     fi
 }
 
-# XXX some description of what this does
+# 
+# This is a tricky bit of eval work.  There are many steps involved in
+# O2CB startup/shutdown, so we collect them here.  Each line is a line
+# of shell code that needs to be run.  The code is run via eval as
+# follows:
+#
+# start/load:
+#    Eval of the exact lines, in order.  So, the first call is
+#    "eval load_module configfs".
+#
+# status:
+#    Eval of the lines with "check_" prepended, in order.  So the first
+#    call is "eval check_load_module configfs".
+#
+# stop/unload:
+#    Eval of the lines with "un" prepened, in reverse order.  So the
+#    *last* call is "eval unload_module configfs".
+# 
+# To provide an action, create a set of shell functions or commands
+# "foo", "check_foo", and "unfoo".  Then add "foo arguments" to the
+# appropriate place.  Be careful, eval requires quoting to be right.
+#
 LOAD_ACTIONS=("load_module configfs"
 		"mount_fs configfs "'`configfs_path`'
 		"load_module ocfs2_nodemanager"
@@ -54,6 +75,7 @@
 		"load_module ocfs2_dlmfs"
 		"mount_fs ocfs2_dlmfs /dlm")
 
+
 #
 # if_fail()
 #



More information about the Ocfs2-tools-commits mailing list