mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 1 | # Uncomment this line, and replace the device with something sensible |
| 2 | # for you ... |
| 3 | # fs = job.filesystem('/dev/hda2', job.tmpdir) |
mbligh | c235985 | 2007-08-28 18:11:48 +0000 | [diff] [blame] | 4 | # or ... |
| 5 | |
| 6 | fs = job.filesystem('/tmp/looped', job.tmpdir, loop_size = 1024) |
mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 7 | |
mbligh | a7c3447 | 2006-12-04 16:32:25 +0000 | [diff] [blame] | 8 | # dbench 1024, ltp, 1024-byte blocksize, a few other things. Lots of fscking. |
| 9 | # I haven't tested nobh mode yet, |
| 10 | # and I have yet to point run-bash-shared-mapping at it. |
| 11 | # (different mount options for ext3) |
| 12 | |
mbligh | b15f963 | 2006-12-04 07:27:57 +0000 | [diff] [blame] | 13 | for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'): |
mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 14 | fs.mkfs(fstype) |
| 15 | fs.mount() |
| 16 | try: |
mbligh | d016ecc | 2006-11-25 21:41:07 +0000 | [diff] [blame] | 17 | job.run_test('fsx', job.tmpdir, tag=fstype) |
mbligh | fe7c1ad | 2006-12-04 18:02:59 +0000 | [diff] [blame] | 18 | job.run_test('iozone', job.tmpdir, tag=fstype) |
mbligh | 62107be | 2006-12-04 07:49:31 +0000 | [diff] [blame] | 19 | job.run_test('dbench', dir=job.tmpdir, tag=fstype) |
mbligh | c235985 | 2007-08-28 18:11:48 +0000 | [diff] [blame] | 20 | fs.fsck() |
mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 21 | finally: |
| 22 | fs.unmount() |
| 23 | |