2 # File which holds configuation parameters in a single place to avoid any
3 # mismatch between scripts (especially the cleanup scripts, which are
7 # Major number for OBD devices
10 # Module configuration file
11 [ -f /etc/conf.modules ] && MODCONF=/etc/conf.modules
12 [ -z "$MODCONF" -a -f /etc/modules.conf ] && MODCONF=/etc/modules.conf
14 # If LOOPDEV is empty (""), then no loopback device will be configured.
15 # If TMPFILE is empty (""), then no temporary file will be created for loop.
16 [ "$TMPFILE" ] || TMPFILE="/tmp/obdfs.tmpfile"
17 [ "$TMPSIZE" ] || TMPSIZE=10240
20 # If LOOPDEV is empty, then it is assumed that BASEDEV is a real block device
21 # that doesn't mind being overwritten - don't use a partition with data on it!!
24 # The following are mount points for the filesystems during the test.
29 # This is where the snapshot table will be stored:
30 SNAPTABLE="/tmp/obdfs.snaptable"
32 # A simple routine called by most of the scripts to help debugging. The
33 # kernel code has a lot of debugging statements, so this helps us keep
34 # track of what is going on in user-land to generate the kernel messages.
36 if [ "$1" = "log" ]; then
38 logger -p kern.info "******** $* **********"
41 logger -p kern.info "****start**** $* *****"
44 logger -p kern.info "*****end***** $* *****"
48 # A routine to display a command, and prompt user if it should be run
51 echo -n "Run '$*' [Y/n]?'";
55 n*|N*) echo "'$*' not run" ;;