Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932786AbVITRqT (ORCPT ); Tue, 20 Sep 2005 13:46:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932783AbVITRqT (ORCPT ); Tue, 20 Sep 2005 13:46:19 -0400 Received: from rwcrmhc11.comcast.net ([216.148.227.117]:21199 "EHLO rwcrmhc11.comcast.net") by vger.kernel.org with ESMTP id S932781AbVITRqR (ORCPT ); Tue, 20 Sep 2005 13:46:17 -0400 Message-ID: <43304AE4.9050209@namesys.com> Date: Tue, 20 Sep 2005 10:46:12 -0700 From: Hans Reiser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pavel Machek CC: Horst von Brand , thenewme91@gmail.com, Christoph Hellwig , Denis Vlasenko , chriswhite@gentoo.org, LKML , ReiserFS List , vitaly@thebsh.namesys.com, "E. Gryaznova" Subject: Re: I request inclusion of reiser4 in the mainline kernel References: <200509182004.j8IK4JNx012764@inti.inf.utfsm.cl> <432E5024.20709@namesys.com> <20050920075133.GB4074@elf.ucw.cz> In-Reply-To: <20050920075133.GB4074@elf.ucw.cz> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2294 Lines: 98 Thanks much for this test script, Vitaly, please give it a try and tell me how it goes. Hans Pavel Machek wrote: >Hi! > > > >>V3 is obsoleted by V4 in every way. V3 is old code that should be >>marked as deprecated as soon as V4 has passed mass testing. V4 is far >>superior in its coding style also. Having V3 in and V4 out is at this >>point just stupid. >> >> > >Really? Last time I checked, even V3's fsck was not too great. [In >fact I never could make it run stable enough to even _test_ it >properly]. > >Do you have working fsck for V4? Until then, you should not claim that >users should switch. Journalling does not help you, if you have >unexpected kernel problem or hardware trouble, fsck _is_ mandatory. > >Can V4 survive few hours of test below? > Pavel > >#!/bin/bash ># ># fscktest ># ># Usage: ># Make sure output is logged somewhere ># First, run fscktest -p as root ># Then you can run fscktest as normal user... ># > >prepare() { > SIZE=100000 > echo "Creating file..." > cat /dev/zero | head -c $[$SIZE*1024] > test > echo "Making filesystem..." > mkfs.$FS test > echo "Mounting..." > mount test -o loop /mnt || exit "Cant mount" > echo "Copying files..." > cp -a /bin /mnt > cp -a /usr/bin /mnt > cp -a /usr/src/linux /mnt > echo "Syncing..." > sync > echo "Unmounting..." > umount /mnt > echo "Moving..." > mv test fsck.okay > echo "All done." >} > >FS=ext2 >if [ .$1 == .-p ]; then > prepare > exit > fi >RUN=0 >while true; do > RUN=$[$RUN+1] > echo "Run #$RUN" > echo Preparing... > cat fsck.okay > fsck.damaged > echo Damaging... > dd if=/dev/urandom of=fsck.damaged count=10240 seek=7 conv=notrunc > cp fsck.damaged fsck.test > echo First check... > fsck.$FS -fy fsck.damaged > RESULT=$? > if [ $RESULT != 1 -a $RESULT != 2 -a $RESULT != 0 ]; then > echo "Fsck failed in bad way (result = $RESULT)" > exit > fi > echo Second check... > fsck.$FS -fy fsck.damaged > RESULT=$? > if [ $RESULT != 0 ]; then > echo "Fsck lied about its success (result = $RESULT)" > exit > fi > done > > > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/