Test a few very basic defragmentation scenarios.

This test creates some files, runs defrag on them,
and compares the before/after fragmentation as well
as file md5sums and timestamps.

The test currently expects to find e4defrag in
/usr/bin

It should be relatively easy to add more interestingly
fragmented files to the tests, as well as to test
that memory-mapped files aren't touched, etc - 
but this gives us a framework.

V2: remount before checking file contents, and create
common.defrag.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Eric Sandeen
2009-08-10 13:10:26 -05:00
parent f11b7e5ff9
commit 76f4a7b9fa
5 changed files with 195 additions and 0 deletions
+1
View File
@@ -327,3 +327,4 @@ prealloc
215 auto metadata quick
216 log metadata auto quick
217 log metadata auto
218 auto fsr quick