Merge remote-tracking branch 'origin/wip-full-msg' into greg-fs-testing

https://github.com/ceph/ceph-qa-suite/pull/786

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
This commit is contained in:
Greg Farnum 2016-01-18 16:06:45 -08:00
commit afbc90b9a6

View File

@ -314,7 +314,12 @@ class FullnessTestCase(CephFSTestCase):
full = False
for n in range(0, {fill_mb} + 1):
bytes += os.write(f, 'x' * 1024 * 1024)
try:
bytes += os.write(f, 'x' * 1024 * 1024)
except OSError as e:
print "Unexpected error %s from write() instead of fsync()" % e
raise
try:
os.fsync(f)
except OSError as e: