<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi, Olaf & Eric<br><br>Thanks for your kindly reply. I will try your suggestions & if there is any interesting findings, I will let your know<br><br>Thanks & Regards.<br>Lv Wentao.<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.hmmessage P
{margin:0px;padding:0px;}
body.hmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<br><br>> Date: Mon, 13 Jul 2009 09:44:03 -0500<br>> From: sandeen@sandeen.net<br>> To: al-john@hotmail.com<br>> CC: xfs@oss.sgi.com<br>> Subject: Re: How to simulate journal corruption<br>> <br>> crow al wrote:<br>> > Hi, there<br>> > <br>> > I'm a QA engineer from Cisco. I'm working on a test case concerning XFS<br>> > journal playback failure, which needs to manually inject error to XFS.<br>> > <br>> > I did some google work but get no luck. Then I think maybe XFA-QA could<br>> > give me some advice. That why I come to here.<br>> > <br>> > Is there anyone could tell me how to inject error into XFS or is there<br>> > any tool could be used?<br>> > <br>> > Wish for your response.<br>> > <br>> > Thanks & Regards.<br>> > Lv Wentao.<br>> <br>> test 044 in xfstests runs something called "loggen" which will generate<br>> log traffic to be replayed on mount,
if I'm reading it right. Of course<br>> that's an uncorrupted log ...<br>> <br>> There is another tool called "fsfuzzer" which writes random junk over a<br>> filesystem. You could probably combine the two tools to create valid<br>> logs to replay, and then write varying degrees of junk on top with<br>> fsfuzzer, and try to replay the result.<br>> <br>> You could probably even use fsfuzzer "stock" and just restrict the<br>> fuzzing to the log portion of the filesystem.<br>> <br>> I'm not sure what kinds of errors you are trying to catch - oopses,<br>> hangs, improperly replaying a corrupted log, etc - but it sounds well<br>> worth doing. FWIW when I used fsfuzzer, it often ran into problems in<br>> the log, so I imagine you'll uncover some interesting things; if you do,<br>> please share. :)<br>> <br>> -Eric<br><br /><hr />With Windows Live, you can organize, edit, and <a href='http://www.microsoft.com/middleeast/windows
/
windowslive/products/photo-gallery-edit.aspx' target='_new'>share your photos.</a></body>
</html>