From 4181742a3ba874ae1e8e961e7209076992dd6c51 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 2 Dec 2020 08:17:24 -0500 Subject: [PATCH] qa: allow arbitrary mount options on kclient mounts With this, we can pass a list of mount options to the kclient that will be added onto the default ones. This is necessary to support testing with fscache enabled (and other features activated by mount options). Fixes: https://tracker.ceph.com/issues/6373 Signed-off-by: Jeff Layton --- qa/tasks/kclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/kclient.py b/qa/tasks/kclient.py index 214a951e2a3..be75286bd0d 100644 --- a/qa/tasks/kclient.py +++ b/qa/tasks/kclient.py @@ -48,6 +48,7 @@ def task(ctx, config): -kclient: client.0: debug: true + mntopts: ["nowsync"] :param ctx: Context :param config: Configuration @@ -110,8 +111,7 @@ def task(ctx, config): remote.run(args=["sudo", "bash", "-c", "echo 'module ceph +p' > /sys/kernel/debug/dynamic_debug/control"]) remote.run(args=["sudo", "bash", "-c", "echo 'module libceph +p' > /sys/kernel/debug/dynamic_debug/control"]) - kernel_mount.mount() - + kernel_mount.mount(mntopts=client_config.get('mntopts', [])) def umount_all(): log.info('Unmounting kernel clients...') -- 2.39.5