add a configure check for StatFS

This way, the build log will indicate whether StatFS can be relied on.
I've tested all the failing architectures now, and on all of them,
the StatFS code now returns Nothing, rather than Just nonsense.

Also, if annex.diskreserve is set on a platform where StatFS is not
working, git-annex will complain.

Also, the Makefile was missing the sources target used when building with
cabal.
This commit is contained in:
Joey Hess 2012-01-15 13:26:17 -04:00
parent 0eed604446
commit 81856c3175
5 changed files with 28 additions and 4 deletions

5
debian/changelog vendored
View file

@ -1,6 +1,9 @@
git-annex (3.20120114) UNRELEASED; urgency=low
* Add a sanity check for bad StatFS results.
* Add a sanity check for bad StatFS results. On architectures
where StatFS does not currently work (s390, mips, powerpc, sparc),
this disables the diskreserve checking code, and attempting to
configure an annex.diskreserve will result in an error.
-- Joey Hess <joeyh@debian.org> Sat, 14 Jan 2012 17:12:04 -0400