Home | History | Annotate | Download | only in mongo
      1 #!/bin/bash
      2 #
      3 # Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
      4 #
      5 if [ $# -lt 2 ]
      6 then
      7    echo
      8    echo "Usage : run_mogo <device> <processes>"
      9    echo
     10    echo "Example :"
     11    echo "# run_mogo /dev/hdx1 2"
     12    echo
     13    exit
     14 fi
     15 
     16 DEVICE=$1
     17 NPROC=$2
     18 
     19 y="Yes"
     20 echo "WARNING : All data will be erased on device=$DEVICE "
     21 echo "Run ? (Yes | no)"
     22 read x
     23 
     24 if [ -z $x ]
     25 then
     26   exit
     27 fi
     28 
     29 if ! [ $x = $y ]
     30 then
     31    exit
     32 fi
     33 
     34 ./mongo.pl reiserfs $DEVICE /testfs reiserfs $NPROC
     35 ./mongo.pl ext2     $DEVICE /testfs ext2    $NPROC
     36 ./mongo_compare  ./results/ext2.tbl ./results/reiserfs.tbl ./results/html/ext2_vs_reiserfs
     37