• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2#
3# Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
4#
5if [ $# -lt 2 ]
6then
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
14fi
15
16DEVICE=$1
17NPROC=$2
18
19y="Yes"
20echo "WARNING : All data will be erased on device=$DEVICE "
21echo "Run ? (Yes | no)"
22read x
23
24if [ -z $x ]
25then
26  exit
27fi
28
29if ! [ $x = $y ]
30then
31   exit
32fi
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