From: Josh Durgin Date: Thu, 5 Mar 2015 23:45:50 +0000 (-0800) Subject: qa: make rbd-fuse exit cleanly with lttng X-Git-Tag: v0.94~32^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=918afc0a58fc40a4beedfcadb8046b8ca88ccf11;p=ceph.git 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 --- diff --git a/qa/workunits/rbd/merge_diff.sh b/qa/workunits/rbd/merge_diff.sh index 9f84d59302c50..7fbcd2f9c86ec 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()