The filesystem sample for the client is broken, it uses the deprecated
filesystem interface.  This isn't good for people who are looking at the samples
for an example of how to run tests, so update it to use the partition interface.

Signed-off-by: Josef Bacik <[email protected]>
---
 client/samples/filesystem |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/client/samples/filesystem b/client/samples/filesystem
index 87abe0f..3fb6f02 100644
--- a/client/samples/filesystem
+++ b/client/samples/filesystem
@@ -3,7 +3,7 @@
 # fs = job.filesystem('/dev/hda2', job.tmpdir)
 # or ...
 
-fs = job.filesystem('/tmp/looped', job.tmpdir, loop_size = 1024)
+part = job.partition('/tmp/looped', 1024, job.tmpdir)
 
 # dbench 1024, ltp, 1024-byte blocksize, a few other things.  Lots of fscking.
 # I haven't tested nobh mode yet, 
@@ -11,15 +11,15 @@ fs = job.filesystem('/tmp/looped', job.tmpdir, loop_size = 
1024)
 # (different mount options for ext3)
 
 def test_fs():
-       fs.mkfs(fstype)
-       fs.mount()
+       part.mkfs(fstype)
+       part.mount()
        try:
-               job.run_test('fsx', dir=job.tmpdir, tag=fstype)
-               job.run_test('iozone', dir=job.tmpdir, tag=fstype)
-               job.run_test('dbench', dir=job.tmpdir, tag=fstype)
+               job.run_test('fsx', dir=part.mountpoint, tag=fstype)
+               job.run_test('iozone', dir=part.mountpoint, tag=fstype)
+               job.run_test('dbench', dir=part.mountpoint, tag=fstype)
        finally:
-               fs.unmount()
-               fs.fsck()
+               part.unmount()
+               part.fsck()
 
 for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
        job.run_group(test_fs)
-- 
1.6.6.1

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to