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)
committerJeremy Allison <jra@samba.org>
Fri, 12 Aug 2016 23:53:15 +0000 (01:53 +0200)
commitea73bcd87b6113f77ccda683d15b5a39003b8eaa
tree186560e77728f870d3d302d7337eac0ff95fab95
parentbd2ec88dca692c239397891bd35c9fa6b8e7b51a
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>
source3/smbd/quotas.c