From 918afc0a58fc40a4beedfcadb8046b8ca88ccf11 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 5 Mar 2015 15:45:50 -0800 Subject: [PATCH] qa: make rbd-fuse exit cleanly with lttng lttng requires daemons (things that call fork, clone, or daemon without exec, like fuse) to use a LD_PRELOAD library. Without this, the lttng atexit() handler crashes. Signed-off-by: Josh Durgin --- qa/workunits/rbd/merge_diff.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/workunits/rbd/merge_diff.sh b/qa/workunits/rbd/merge_diff.sh index 9f84d59302c..7fbcd2f9c86 100755 --- a/qa/workunits/rbd/merge_diff.sh +++ b/qa/workunits/rbd/merge_diff.sh @@ -33,7 +33,8 @@ function rebuild() rbd create $gen --size 100 --order $1 --stripe_unit $2 --stripe_count $3 --image-format $4 rbd create $out --size 1 --order 19 mkdir -p mnt diffs - rbd-fuse -p $pool mnt + # lttng has atexit handlers that need to be fork/clone aware + LD_PRELOAD=liblttng-ust-fork.so.0 rbd-fuse -p $pool mnt } function write() -- 2.47.3