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