summaryrefslogtreecommitdiffstats
path: root/hack/btrfs_tag.sh
blob: 18a9d608dde303aa84370d45b35e8326a6aed43d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
if test $(${GO:-go} env GOOS) != "linux"; then
    exit 0
fi
cc -E - >/dev/null 2>/dev/null <<-EOF
#include <btrfs/ioctl.h>
EOF
if test $? -ne 0; then
    echo exclude_graphdriver_btrfs
else
    cc -E - >/dev/null 2>/dev/null <<-EOF
	#include <btrfs/version.h>
	EOF
    if test $? -ne 0; then
        echo btrfs_noversion
    fi
fi