summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_fake_dfq.c
Commit message (Collapse)AuthorAgeFilesLines
* vfs_fake_dfq - remove support for generating EDQUOTUri Simchoni2016-06-011-5/+0
| | | | | | | | | Remove the option to retrieve valid user/group quota while returning -1 and EDQUOT errno - this is no longer part of the protocol between the quota backend and smbd. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs_fake_dfq: add more mocking optionsUri Simchoni2016-05-271-1/+14
| | | | | | | | | | | | | | | | | | Add support for mocking FS user/group quotas (default quota and quota flags). Make the default block size 4096 instead of 0. This turns the default into "no quota" instead of "punt to lower VFS module" (that is, if the mock module is asked to retrieve quota of a user/group/default for which there is no config). Add support for ENOSYS error 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>
* vfs_fake_dfq: remove quota code from disk_freeUri Simchoni2016-01-261-96/+0
| | | | | | | | When mocking disk-free, do not take quota into account since this is now done in the SMB layer. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* vfs: add path parameter to get_quotaUri Simchoni2016-01-261-17/+9
| | | | | | | | | Adding a path parameter would allow the VFS get_quota function to be used for determining the quota/usage when calculating size and free spacei. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* vfs_fake_dfq: add vfs moduleUri Simchoni2016-01-261-0/+278
Add a vfs module "vfs_fake_dfq" for mocking disk-free and user/group quota functions. In this commit there are quota considerations in disk_free calculations, based on the mocking of quota. Those considerations will later be removed once we refactor the server code to weigh the disk-free and quota in the smb layer and not in individual vfs implementations. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>