linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tsuchiya Yoshihiro <tsuchiya@labs.fujitsu.com>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	dlion2004@sina.com.cn,
	Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Subject: Re: filesystem bug?
Date: Thu, 15 Jan 2004 15:38:59 +0900	[thread overview]
Message-ID: <40063583.3000000@labs.fujitsu.com> (raw)
In-Reply-To: <3FEA1C91.2010302@labs.fujitsu.com>


Hi,
I tried ramdisk again with more running process, and the script failed very
early just like Mr Dlion reported previously. It is about 20 minutes on 
my machines.

1. The script use nvi-1.79 tar ball
2. Prepare 64MB ramdisk, and mkfs on it.
3. edit the first three lines and run the script below(its name is xc-1.2)
4. wait half an hour and see the result will be in /tmp/xcresult

Thanks,
Yoshi
--------------------------------
#!/bin/bash

TARGETPREFIX=/mnt/foo   # filesystem that will be tested
#MOZSRC=/home/tsuchiya/src/mozilla-source-1.3.tar.gz    # tgz used for test
MOZSRC=/home/tsuchiya/src/nvi-1.79.tar.gz       # tgz used for test
RDIR="/tmp/xcresult"    # result directory
#SOURCE=mozilla
SOURCE=nvi-1.79

ERRORF=$RDIR/ERROR
INOFILE=$RDIR/INOF

touch $ERRORF

function _xtract+compare {
        echo "extracting directory to be compared against for $1"
        TARGETDIR=$TARGETPREFIX/$1
        mkdir -p $TARGETDIR
        cd $TARGETDIR
        tar zxf $MOZSRC
        echo "$1 done .... now the job is started."
# new
#       touch $INOFILE
        pwd >> $INOFILE-$1
        ls -lid $SOURCE >> $INOFILE-$1

        RESULTS=$RDIR/$1
        echo "test result will be stored under $RESULTS"
        mkdir -p $RESULTS;
#       echo "test dir is $TARGETDIR";
        mkdir -p $TARGETDIR;

        for ((i=0; i < 100000; i++))    # ext2/3 limit 32000
        do

                cd $TARGETDIR
                mkdir $TARGETDIR/dirXC$i
                cd $TARGETDIR/dirXC$i > $RDIR/CD-ERR-$1 2>&1

                if [ -s $RDIR/CD-ERR-$1 ]
                then
                        echo "something wrong happened at $1:$i-th trial "
                        df > $RDIR/DF-$1
                        exit;
                fi

                tar zxf $MOZSRC >> $ERRORF

#                echo "test dir for $TARGETDIR" >> $INOFILE-$1
                ls -lid $SOURCE >> $INOFILE-$1

                diff -rq $TARGETDIR/$SOURCE $TARGETDIR/dirXC$i/$SOURCE > 
$RESULT
S/dirXC$i.result 2>&1
                DIFFSIZE=`ls -l $RESULTS/dirXC$i.result | awk '{print $5}'`
                if [ $DIFFSIZE != 0 ];
                then
                        echo "something wrong happened at $1:$i-th trial "
                        df > $RDIR/DF-$1
                        exit;
                else
                        rm $RESULTS/dirXC$i.result
                        echo "test $1:$i-th passed"
                fi

                cd ..
                rm -rf $TARGETDIR/dirXC$i &
        done
}

for target in aa ab ac ad ae af #ag ah ai aj ak al am an
do
        _xtract+compare $target $RDIR &
done

--
Yoshihiro Tsuchiya




  reply	other threads:[~2004-01-15  6:39 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-15  9:25 filesystem bug? Tsuchiya Yoshihiro
2003-12-15  9:55 ` bert hubert
2003-12-16 13:44 ` Stephen C. Tweedie
2003-12-16 21:40   ` Bryan Whitehead
2003-12-16 21:50     ` Bryan Whitehead
2003-12-16 23:31     ` Tsuchiya Yoshihiro
2003-12-16 23:40       ` viro
2003-12-17  0:12         ` Tsuchiya Yoshihiro
2003-12-17 23:24       ` Tsuchiya Yoshihiro
2003-12-18 21:29         ` Stephen C. Tweedie
2003-12-21 23:15           ` Tsuchiya Yoshihiro
2003-12-22  1:54             ` Tsuchiya Yoshihiro
2003-12-22  4:30             ` Tsuchiya Yoshihiro
2003-12-22 12:03               ` Stephen C. Tweedie
2003-12-24  1:48                 ` Tsuchiya Yoshihiro
2003-12-24 23:09                   ` Tsuchiya Yoshihiro
2004-01-15  6:38                     ` Tsuchiya Yoshihiro [this message]
2003-12-26  9:59 ` dlion
2003-12-26 12:27   ` dlion
2003-12-26 13:22 土屋芳浩
2003-12-26 14:30 ` dlion
2003-12-28  8:26   ` dlion
2003-12-27 14:35 Tsuchiya Yoshihiro
     [not found] ` <Pine.LNX.4.58L.0312301556380.23875@logos.cnet>
     [not found]   ` <74964CA8-3B50-11D8-B879-00039341E01A@ybb.ne.jp>
     [not found]     ` <1074109164.4538.8.camel@sisko.scot.redhat.com>
     [not found]       ` <0586254E-46DA-11D8-B45E-00039341E01A@ybb.ne.jp>
2004-01-15 22:38         ` Stephen C. Tweedie
2004-01-16  2:59 Tsuchiya Yoshihiro
2004-01-16 12:29 ` Stephen C. Tweedie
2004-01-19  7:52   ` Tsuchiya Yoshihiro
2004-01-19 13:12     ` Stephen C. Tweedie
2004-01-20  8:36       ` Tsuchiya Yoshihiro
2004-01-20 16:27         ` Stephen C. Tweedie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40063583.3000000@labs.fujitsu.com \
    --to=tsuchiya@labs.fujitsu.com \
    --cc=dlion2004@sina.com.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=sct@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).