]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add a workunit for fsync-tester
authorGreg Farnum <greg@inktank.com>
Fri, 14 Dec 2012 22:34:35 +0000 (14:34 -0800)
committerGreg Farnum <greg@inktank.com>
Fri, 14 Dec 2012 23:24:36 +0000 (15:24 -0800)
It turns out that our suites don't exercise fsync, at least not very much
(I couldn't find it in all the places I looked for it). This tester
was written by Ted T'so and updated by Chris Mason; I just made it
work on a smaller dataset (256MB) because 8GB against a small cluster takes
more time than we want to wait.

Signed-off-by: Greg Farnum <greg@inktank.com>
qa/workunits/suites/fsync-tester.sh [new file with mode: 0755]

diff --git a/qa/workunits/suites/fsync-tester.sh b/qa/workunits/suites/fsync-tester.sh
new file mode 100755 (executable)
index 0000000..bdb7e58
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh -x
+
+set -e
+
+wget http://ceph.com/qa/fsync-tester.c
+gcc fsync-tester.c -o fsync-tester
+
+./fsync-tester