Skip to content

Commit

Permalink
qa: make rbd-fuse exit cleanly with lttng
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jdurgin committed Mar 7, 2015
1 parent 3ca182a commit 918afc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qa/workunits/rbd/merge_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 918afc0

Please sign in to comment.