Add filesystem class for handling fs operations

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



git-svn-id: http://test.kernel.org/svn/autotest/trunk@261 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/samples/filesystem b/samples/filesystem
new file mode 100755
index 0000000..f50ad83
--- /dev/null
+++ b/samples/filesystem
@@ -0,0 +1,12 @@
+# Uncomment this line, and replace the device with something sensible
+# for you ...
+# fs = job.filesystem('/dev/hda2', job.tmpdir)
+
+for fstype in ('ext2', 'ext3'):
+	fs.mkfs(fstype)
+	fs.mount()
+	try:
+		job.runtest(fstype, 'fsx', job.tmpdir)
+	finally:
+		fs.unmount()
+