github.com/ericjee/storage@v1.12.13/hack/btrfs_tag.sh (about)

     1  #!/bin/bash
     2  if test $(${GO:-go} env GOOS) != "linux" ; then
     3  	exit 0
     4  fi
     5  cc -E - > /dev/null 2> /dev/null << EOF
     6  #include <btrfs/version.h>
     7  EOF
     8  if test $? -ne 0 ; then
     9  	echo btrfs_noversion
    10  fi