From: John Spray Date: Mon, 11 Jan 2016 12:27:51 +0000 (+0000) Subject: tasks/cephfs: better message from test_full_fsync X-Git-Tag: v10.2.6~165^2^2~205^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=028a140acff8c5e4dce7ca4d48334d4273d1ecfe;p=ceph.git tasks/cephfs: better message from test_full_fsync When it gives an error from the unexpected place, say so. Signed-off-by: John Spray --- diff --git a/tasks/cephfs/test_full.py b/tasks/cephfs/test_full.py index 2d2d6ec1594c..305c575a52b0 100644 --- a/tasks/cephfs/test_full.py +++ b/tasks/cephfs/test_full.py @@ -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: