Merge remote branch 'cros/upstream' into tempbranch2

Merged to trunk@4816.

BUG=
TEST=we will build a new autotest server instance, and keep cautotest running and then later do a cname switch.

Review URL: http://codereview.chromium.org/3511003

Change-Id: Iee5f52f45f28f84927d6c6f9a74edc370d40288a
diff --git a/client/samples/filesystem b/client/samples/filesystem
index 87abe0f..2fd1b9d 100644
--- a/client/samples/filesystem
+++ b/client/samples/filesystem
@@ -1,9 +1,9 @@
 # Uncomment this line, and replace the device with something sensible
 # for you ...
-# fs = job.filesystem('/dev/hda2', job.tmpdir)
+# fs = job.partition('/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 @@
 # (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)