RTEMS Filesystem check

Wendell Silva silvawp at gmail.com
Sat Nov 30 23:55:54 UTC 2013


Hello,

I'm testing RTEMS RFS file system using qemu (pc386) and huge virtual disk
file (10G).
I've created a rfs partition with 8GB with a block size = 4096, which
allows for huge single file (~ 21 GiB).

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.

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.

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.

If such code does not exist, can you provide me directions on how to do
that? I think this could be an interesting contribution.

--Wendell.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20131130/a9aeb24b/attachment.html>


More information about the users mailing list