2 # File which holds configuation parameters in a single place to avoid any
3 # mismatch between scripts (especially the cleanup scripts, which are
6 # Copyright (C) 2001 Cluster File Systems, Inc.
8 # This code is issued under the GNU General Public License.
9 # See the file COPYING in this distribution
12 # Major number for OBD devices
15 # Module configuration file
16 [ -f /etc/conf.modules ] && MODCONF=/etc/conf.modules
17 [ -z "$MODCONF" -a -f /etc/modules.conf ] && MODCONF=/etc/modules.conf
19 # If LOOPDEV is empty (""), then no loopback device will be configured.
20 # If TMPFILE is empty (""), then no temporary file will be created for loop.
21 [ "$TMPFILE" ] || TMPFILE="/tmp/obdfs.tmpfile"
22 [ "$TMPSIZE" ] || TMPSIZE=10240
23 [ -b /dev/loop/0 ] && LOOPDEV=/dev/loop/0
24 [ -z "$LOOPDEV" -a -b /dev/loop0 ] && LOOPDEV="/dev/loop0"
26 # If LOOPDEV is empty, then it is assumed that BASEDEV is a real block device
27 # that doesn't mind being overwritten - don't use a partition with data on it!!
31 # The following are mount points for the filesystems during the test.
36 # This is where the snapshot table will be stored:
37 SNAPTABLE="/tmp/obdfs.snaptable"
39 # A simple routine called by most of the scripts to help debugging. The
40 # kernel code has a lot of debugging statements, so this helps us keep
41 # track of what is going on in user-land to generate the kernel messages.
43 if [ "$1" = "log" ]; then
45 logger -p kern.info "******** $* **********"
48 logger -p kern.info "****start**** $* *****"
51 logger -p kern.info "*****end***** $* *****"
55 # A routine to display a command, and prompt user if it should be run
58 echo -n "Run '$*' [Y/n]?'";
62 n*|N*) echo "'$*' not run" ;;