build: fix disk-free quota support on Solaris 10
authorUri Simchoni <uri@samba.org>
Wed, 3 Feb 2016 04:41:42 +0000 (06:41 +0200)
committerJeremy Allison <jra@samba.org>
Sun, 13 Mar 2016 00:37:58 +0000 (01:37 +0100)
commit0a9acd445d246c7758e994b0c69cc90bdbbef2fe
treeaf51d2468e7cc7ed71a5d0db4a88faf3c1c0d3cb
parent5fc6d2dabdf2aeef74fdefaa67eae0348bbf7a44
build: fix disk-free quota support on Solaris 10

Samba has no code to support quota on Solaris 10 (and possibly other
os's such as AIX) using the new quota interface. The new interface
serves both disk size/free space reporting (clamping the underlying
file system numbers with quota), and direct manipulation of the user's
quota.

However, there's legacy code that supports only disk size/free space on
Solaris 10. In the waf build, this code is not compiled because there is
no test for it.

This patch adds a test to see whether the legacy code can be used.

Issue reported and fix tested by Andrew Morgan <morgan@orst.edu>.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11788

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sun Mar 13 01:37:58 CET 2016 on sn-devel-144
source3/wscript
source3/wscript_build
tests/oldquotas.c [new file with mode: 0644]