smbd: use owner uid for free disk calculation if owner is inherited
authorUri Simchoni <uri@samba.org>
Thu, 11 Aug 2016 20:37:42 +0000 (23:37 +0300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Sep 2016 10:27:27 +0000 (12:27 +0200)
commit475131c89819a2ad77c2e9c7896ea8dbd0f5fc70
tree30e6227ab8d84925549b85bba11fb0ba3a74afe4
parentf776b51dde0f4ab6ae7b7865fd1146aabfa17b95
smbd: use owner uid for free disk calculation if owner is inherited

If "inherit owner" is enabled, then new files created under a
directory shall consume the quota of the directory's owner, so
the free disk calculation should take that quota into account,
not the quota of the user creating the file.

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

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(backported from commit ea73bcd87b6113f77ccda683d15b5a39003b8eaa)
source3/smbd/quotas.c