[Ocfs2-tools-devel] [PATCH] Compress dirs option in fsck
Goldwyn Rodrigues
rgoldwyn at gmail.com
Thu Aug 20 12:52:24 PDT 2009
Hi,
> Please can you add a test for this in ocfs2-test. Create a dir with a
> sizable number of files. Touch should be enough. Delete half the number of
> files randomly. Run fsck with -D. Run again without -D. Something like that.
> You can look at the existing tests for the tools.
A good test case would be:
1. Create files under directories
2. Remove random files from the directory
3. Get recursive directory listing and store in listing-1
4. Perform fsck -D
5. Get recursive directory listing and store in listing-2
6. Compare listing-1 and listing-2 to check if any files are missing.
I haven't looked at the test suite as yet. I will do it soon and post
a message with the test once I am done understanding it.
>
> If you want the test to be more thorough, you could make use of the dirblock
> command in debugfs.ocfs2.
>
I will check this option as well.
Regards,
--
Goldwyn
More information about the Ocfs2-tools-devel
mailing list