]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: make rbd-fuse exit cleanly with lttng
authorJosh Durgin <jdurgin@redhat.com>
Thu, 5 Mar 2015 23:45:50 +0000 (15:45 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 7 Mar 2015 02:57:32 +0000 (18:57 -0800)
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 <jdurgin@redhat.com>
qa/workunits/rbd/merge_diff.sh

index 9f84d59302c50d1e48d5a4aee5c468a6de136f41..7fbcd2f9c86ecb601d82c2c3e7d9c40368de0681 100755 (executable)
@@ -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()