2016-12-07 21:42:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
tmpdir="$PWD/tmp.$RANDOM"
|
|
|
|
mkdir -p "$tmpdir"
|
|
|
|
trap 'rm -fr "$tmpdir"' EXIT
|
2017-01-31 16:57:19 +00:00
|
|
|
cc -o "$tmpdir"/libdm_tag -ldevmapper -x c - > /dev/null 2> /dev/null << EOF
|
2016-12-07 21:42:31 +00:00
|
|
|
#include <libdevmapper.h>
|
|
|
|
int main() {
|
|
|
|
struct dm_task *task;
|
2017-01-31 16:57:19 +00:00
|
|
|
dm_task_deferred_remove(task);
|
2016-12-07 21:42:31 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
if test $? -ne 0 ; then
|
|
|
|
echo libdm_no_deferred_remove
|
|
|
|
fi
|