#!/bin/bash
#
# Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
#

if [ $# -lt 1 ]
then
   echo
   echo "Usage : run_mogo <device>"
   echo
   echo "Example :"
   echo "# run_mogo /dev/hdx1"
   echo
   exit
fi 

DEVICE=$1

y="Yes"
echo "WARNING : All data will be erased on device=$DEVICE "
echo "Run ? (Yes | no)" 
read x

if [ -z $x ]
then
  exit
fi

if ! [ $x = $y ]
then
   exit
fi
   
#./mongo.sh reiserfs $DEVICE /testfs reiserfs 1
./mongo.sh ext2     $DEVICE /testfs ext2     1
./mongo_compare  ./results/ext2.tbl ./results/reiserfs.tbl ./results/html/ext2_vs_reiserfs
