<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto;">We have a script that adds corruption to ext2/3/4 filesystems and runs </div><div style="-webkit-text-size-adjust: auto;">e2fsck on it. It definitely could be improved, but it still catches some</div><div style="-webkit-text-size-adjust: auto;">occasional errors:</div><div style="-webkit-text-size-adjust: auto;"><br></div><div><span style="-webkit-text-size-adjust: auto;"><a href="http://git.whamcloud.com/?p=tools/e2fsprogs.git;a=commit;h=aee44c669bebe29bfdb8a1c86da443234f8bc257">http://git.whamcloud.com/?p=tools/e2fsprogs.git;a=commit;h=aee44c669bebe29bfdb8a1c86da443234f8bc257</a></span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">It tries to format the filesystem with different features and options, then</span></div><div><span style="-webkit-text-size-adjust: auto;">adds corruption from both random data and copying parts of the</span></div><div><span style="-webkit-text-size-adjust: auto;">filesystem internally to some other part of the filesystem. It might be useful to corrupt some random bits and bytes in the filesystem also,</span></div><div><span style="-webkit-text-size-adjust: auto;">but it doesn't do that today.</span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">There is also fsfuzzer, which writes random data to the filesystem and</span></div><div><span style="-webkit-text-size-adjust: auto;">tries to mount it, but I don't know if that has been tried with e2fsck. </span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">The other major question I have is why you are trying to create a new</span></div><div><span style="-webkit-text-size-adjust: auto;">proprietary filesystem? That is really a ten year effort, and you would</span></div><div><span style="-webkit-text-size-adjust: auto;">be much better off to use one of the many existing filesystems. If</span></div><div><span style="-webkit-text-size-adjust: auto;">the current ones don't meet your exact needs, add the missing</span></div><div><span style="-webkit-text-size-adjust: auto;">features you need instead of creating a whole new one from scratch.</span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">While I'm a big fan of ext4, there are many other good filesystems out</span></div><div><span style="-webkit-text-size-adjust: auto;">there - XFS, Btrfs, ZFS, and several flash filesystems. </span></div><div><br><span style="-webkit-text-size-adjust: auto;">Cheers, Andreas</span></div><div style="-webkit-text-size-adjust: auto;"><br>On Jan 18, 2014, at 5:13, "Lakshmipathi.G" <<a href="mailto:lakshmipathi.g@gmail.com">lakshmipathi.g@gmail.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><div dir="ltr">Hi - <br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I'm searching for file system corruption tool, say it inject disk-errors like<br></div><div><div>multiply owned blocks etc. Later an integrity scan process (like e2fsck) will</div>
<div>verify on-disk layout and fix these errors. </div><div><br></div><div>I'd like to read/understand such tools before writing one for an proprietary</div><div>on-disk file system. </div><div><br></div>
<div>Do we have such tools for ext{2,3,4}fs ? Thanks for any help or pointers!</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div><span style="color:rgb(34,34,34)">-- </span><br>
</div></font></span></div></div>----<br>Cheers,<br>Lakshmipathi.G<br>FOSS Programmer.<br><a href="http://www.giis.co.in" target="_blank">www.giis.co.in</a>
</div>
</div></blockquote><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><span>_______________________________________________</span><br><span>Ext3-users mailing list</span><br><span><a href="mailto:Ext3-users@redhat.com">Ext3-users@redhat.com</a></span><br><span><a href="https://www.redhat.com/mailman/listinfo/ext3-users">https://www.redhat.com/mailman/listinfo/ext3-users</a></span></div></blockquote></body></html>