From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Karuna sagar K" Subject: Re: Testing framework Date: Mon, 23 Apr 2007 16:55:52 +0530 Message-ID: <2e4afe1e0704230425vb66892la4cc3c2ef14a1470@mail.gmail.com> References: <2e4afe1e0704221346u6d6baec1uab88dc273ff08de9@mail.gmail.com> <1177319379.4579.13.camel@garfield> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: "Kalpak Shah" Return-path: Received: from wx-out-0506.google.com ([66.249.82.230]:41580 "EHLO wx-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161427AbXDWLZ6 (ORCPT ); Mon, 23 Apr 2007 07:25:58 -0400 Received: by wx-out-0506.google.com with SMTP id h31so1746822wxd for ; Mon, 23 Apr 2007 04:25:57 -0700 (PDT) In-Reply-To: <1177319379.4579.13.camel@garfield> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 4/23/07, Kalpak Shah wrote: > On Mon, 2007-04-23 at 02:16 +0530, Karuna sagar K wrote: ..... >> The file system is looked upon as a set of blocks (more precisely >> metadata blocks). We randomly choose from this set of blocks to >> corrupt. Hence we would be able to overcome the deficiency of the >> previous approach. However this approach makes it difficult to have a >> replayable corruption. Further thought about this approach has to be >> given. > > Fill a test filesystem with data and save it. Corrupt it by copying a > chunk of data from random locations A to B. Save positions A and B so > that you can reproduce the corruption. > Hey, thats a nice idea :). But, this woundnt reproduce the same corruption right? Because, say, on first run of the tool there is metadata stored at locations A and B and then on the second run there may be user data present. I mean the allocation may be different. > Or corrupt random bits (ideally in metadata blocks) and maintain the > list of the bit numbers for reproducing the corruption. > ..... >> The corrupted file system is repaired and recovered with 'fsck' or any >> other tools; this phase considers the repair and recovery action on >> the file system as a black box. The time taken to repair by the tool >> is measured > > I see that you are running fsck just once on the test filesystem. It > might be a good idea to run it twice and if second fsck does not find > the filesystem to be completely clean that means it is a bug in fsck. You are right. Will modify that. > > > ...... >> State of the either file system is stored, which may be huge, time >> consuming and not necessary. So, we could have better ways of storing >> the state. > > Also, people may want to test with different mount options, so something > like "mount -t $fstype -o loop,$MOUNT_OPTIONS $imgname $mountpt" may be > useful. Similarly it may also be useful to have MKFS_OPTIONS while > formatting the filesystem. > Right. I didnt think of that. Will look into it. > Thanks, > Kalpak. > > > > > Comments are welcome!! > > > > Thanks, > > Karuna > > Thanks, Karuna