]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: dfree - ignore quota if not enforced
authorUri Simchoni <uri@samba.org>
Wed, 27 Apr 2016 20:22:25 +0000 (23:22 +0300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 1 Jun 2016 14:23:59 +0000 (16:23 +0200)
commit445e678626dc2a97c8d03d5515fef741fb8a1352
tree861e68222b4c2995e222c6a4d4984bc0f1599fa5
parentb0f727534b062e3c2d73a18cbe039860999e30c5
smbd: dfree - ignore quota if not enforced

When calculating free disk space, do not take user quota
into account if quota is globally not enforced on the file
system.

This is meant to fix a specific problem with XFS. One might
say "why don't you fix the XFS-specific code instead?". The
reason for that is that getting and setting quota must not
be affected by whether quota is actually enforced. NTFS has
the same notion of separating quota accounting (and being
able to configure / retrieve configured quota), from quota
enforcement.

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

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): Sat May 28 00:09:05 CEST 2016 on sn-devel-144

(cherry picked from commit 42151f6fa25fefc8a6ae7388ca85379c07c93e1e)

Autobuild-User(v4-4-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-4-test): Wed Jun  1 16:23:59 CEST 2016 on sn-devel-144
selftest/knownfail
source3/smbd/quotas.c