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
18 [ -b /dev/loop/0 ] && LOOPDEV=/dev/loop/0
19 [ -z "$LOOPDEV" -a -b /dev/loop0 ] && LOOPDEV="/dev/loop0"
21 # If LOOPDEV is empty, then it is assumed that BASEDEV is a real block device
22 # that doesn't mind being overwritten - don't use a partition with data on it!!
25 # The following are mount points for the filesystems during the test.
30 # This is where the snapshot table will be stored:
31 SNAPTABLE="/tmp/obdfs.snaptable"
33 # A simple routine called by most of the scripts to help debugging. The
34 # kernel code has a lot of debugging statements, so this helps us keep
35 # track of what is going on in user-land to generate the kernel messages.
37 if [ "$1" = "log" ]; then
39 logger -p kern.info "******** $* **********"
42 logger -p kern.info "****start**** $* *****"
45 logger -p kern.info "*****end***** $* *****"
49 # A routine to display a command, and prompt user if it should be run
52 echo -n "Run '$*' [Y/n]?'";
56 n*|N*) echo "'$*' not run" ;;