Loopback support for filesystems class

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@634 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/samples/filesystem b/client/samples/filesystem
index c59682e..09d0d4a 100755
--- a/client/samples/filesystem
+++ b/client/samples/filesystem
@@ -1,6 +1,9 @@
 # Uncomment this line, and replace the device with something sensible
 # for you ...
 # fs = job.filesystem('/dev/hda2', job.tmpdir)
+# or ...
+
+fs = job.filesystem('/tmp/looped', job.tmpdir, loop_size = 1024)
 
 # dbench 1024, ltp, 1024-byte blocksize, a few other things.  Lots of fscking.
 # I haven't tested nobh mode yet, 
@@ -14,6 +17,7 @@
 		job.run_test('fsx', job.tmpdir, tag=fstype)
 		job.run_test('iozone', job.tmpdir, tag=fstype)
 		job.run_test('dbench', dir=job.tmpdir, tag=fstype)
+		fs.fsck()
 	finally:
 		fs.unmount()