<div dir="ltr">Hello,<div><br></div><div style>I'm testing RTEMS RFS file system using qemu (pc386) and huge virtual disk file (10G). </div><div style>I've created a rfs partition with 8GB with a block size = 4096, which allows for huge single file (~ 21 GiB).</div>
<div style><br></div><div style>The test program (adapted from fileio example) uses synchronized cache and create large files (~1GiB). After creation, the file is deleted and during the deletion I just close the qemu window in order to simulate a system crash an assess the impact of such event on the file system integrity. </div>
<div style><br></div><div style>After repeating this (destructive) test lots of times, I've found that rfs survives well, but the free disc space is inconsistent because of the non-deleted (marked as free) blocks.</div>
<div style><br></div><div style>The question is: is there any program/example on how to "sanitize" an RFS filesystem, in order the recover these lost/orphans blocks? Something like checkdisk.</div><div style><br>
</div><div style>If such code does not exist, can you provide me directions on how to do that? I think this could be an interesting contribution.</div><div style><br></div><div style>--Wendell.<br></div><div style><br></div>
<div style><br></div><div style><br></div></div>