You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
622 B
37 lines
622 B
7 months ago
|
#!/bin/bash
|
||
|
#
|
||
|
# Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
|
||
|
#
|
||
|
if [ $# -lt 2 ]
|
||
|
then
|
||
|
echo
|
||
|
echo "Usage : run_mogo <device> <processes>"
|
||
|
echo
|
||
|
echo "Example :"
|
||
|
echo "# run_mogo /dev/hdx1 2"
|
||
|
echo
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
DEVICE=$1
|
||
|
NPROC=$2
|
||
|
|
||
|
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.pl reiserfs $DEVICE /testfs reiserfs $NPROC
|
||
|
./mongo.pl ext2 $DEVICE /testfs ext2 $NPROC
|
||
|
./mongo_compare ./results/ext2.tbl ./results/reiserfs.tbl ./results/html/ext2_vs_reiserfs
|