vfs_gpfs: Check group quota for directory when SGID is set
authorChristof Schmitt <cs@samba.org>
Wed, 7 Aug 2019 17:42:26 +0000 (10:42 -0700)
committerChristof Schmitt <cs@samba.org>
Wed, 14 Aug 2019 16:27:43 +0000 (16:27 +0000)
commit72c4e33decbaa19f9e7845240fdcf02029ded82c
treeaf6c24a602d8986fb53f75c690ad61e8c4207efe
parent02b7e6c79b866ba0d339cad6c4fc9eb0d0be8968
vfs_gpfs: Check group quota for directory when SGID is set

On directories with the "set group id" (SGID) bit is set, new files and
subfolders will be created with the group of the directory, and not with
the primary group of the user. Checking for free space in this case
should query the group quota for the gid of the directory.

This is the same change as the common smbd code, but since vfs_gpfs
still has its own check for available space and quotas, add it here as
well. A future goal would be to use the common free space check instead
of duplicating code in vfs_gpfs.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/modules/vfs_gpfs.c