]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: add in more (optional) op types
authorSage Weil <sage@inktank.com>
Wed, 18 Dec 2013 19:41:58 +0000 (11:41 -0800)
committerSage Weil <sage@inktank.com>
Wed, 18 Dec 2013 19:41:58 +0000 (11:41 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/rados.py

index 0e4f5abb9804e7f3db3c52c15ba7278ff20c6489..bc0e837dd54113bf79f158511a0a3ccdec1d5efb 100644 (file)
@@ -106,10 +106,14 @@ def task(ctx, config):
         '--max-stride-size', str(config.get('max_stride_size', object_size / 5)),
         '--max-seconds', str(config.get('max_seconds', 0))
         ]
-    if 'copy_from' in op_weights:
-        args.extend([
-                '--op', 'copy_from', str(op_weights.get('copy_from', 0))
-                ])
+    for field in [
+        'copy_from', 'is_dirty', 'undirty', 'cache_flush',
+        'cache_try_flush', 'cache_evict',
+        ]:
+        if field in op_weights:
+            args.extend([
+                    '--op', field, str(op_weights.get(field, 0))
+                    ])
 
     def thread():
         """Thread spawned by gevent"""