]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
suites/rbd: add copy-on-read tests
authorJosh Durgin <jdurgin@redhat.com>
Sat, 24 Jan 2015 05:55:39 +0000 (21:55 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 24 Jan 2015 06:42:18 +0000 (22:42 -0800)
Add as a facet of librbd tests, since they all use cloning, and to a
couple tests with thrashing.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
suites/rbd/librbd/copy-on-read/off.yaml [new file with mode: 0644]
suites/rbd/librbd/copy-on-read/on.yaml [new file with mode: 0644]
suites/rbd/thrash/workloads/rbd_api_tests_copy_on_read.yaml [new file with mode: 0644]
suites/rbd/thrash/workloads/rbd_fsx_copy_on_read.yaml [new file with mode: 0644]

diff --git a/suites/rbd/librbd/copy-on-read/off.yaml b/suites/rbd/librbd/copy-on-read/off.yaml
new file mode 100644 (file)
index 0000000..ce99e7e
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd clone copy on read: true
diff --git a/suites/rbd/librbd/copy-on-read/on.yaml b/suites/rbd/librbd/copy-on-read/on.yaml
new file mode 100644 (file)
index 0000000..ce99e7e
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd clone copy on read: true
diff --git a/suites/rbd/thrash/workloads/rbd_api_tests_copy_on_read.yaml b/suites/rbd/thrash/workloads/rbd_api_tests_copy_on_read.yaml
new file mode 100644 (file)
index 0000000..bf19b34
--- /dev/null
@@ -0,0 +1,12 @@
+tasks:
+- workunit:
+    clients:
+      client.0:
+        - rbd/test_librbd.sh
+    env:
+      RBD_FEATURES: "5"
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd clone copy on read: true
diff --git a/suites/rbd/thrash/workloads/rbd_fsx_copy_on_read.yaml b/suites/rbd/thrash/workloads/rbd_fsx_copy_on_read.yaml
new file mode 100644 (file)
index 0000000..a486072
--- /dev/null
@@ -0,0 +1,10 @@
+tasks:
+- rbd_fsx:
+    clients: [client.0]
+    ops: 2000
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd cache: true
+        rbd clone copy on read: true