# Utility script to create an OBD snapshot. If an existing filesystem is
# not already mounted on /mnt/obd, we call the basic OBD setup script to
# create and mount a filesystem for us.
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
plog umount $MNTOBD
-plog insmod $OBDDIR/snap/obdsnap.o
+#plog insmod $OBDDIR/snap/obdsnap.o
rm -f $SNAPTABLE
# second will be a snapshot of the filesystem taken "now" (in obd device 2)
# that will remain static (historical read-only) filesystem as changes
# are made to the current snapshot.
-$OBDDIR/class/obdcontrol -f << EOF
+$OBDDIR/utils/obdcontrol -f << EOF
snaptable
$SNAPTABLE
a
y
snapset 0 $SNAPTABLE
device /dev/obd1
-attach snap_obd 0 1 0
+attach obdsnap 0 1 0
setup
device /dev/obd2
-attach snap_obd 0 2 0
+attach obdsnap 0 2 0
setup
quit
EOF