vfs_fake_dfq: add more mocking options
authorUri Simchoni <uri@samba.org>
Thu, 26 May 2016 18:59:38 +0000 (21:59 +0300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 1 Jun 2016 10:51:18 +0000 (12:51 +0200)
commit76abfe79178a73e74485000129f065ab41fd6b51
tree55ba2161ca79d514cb3d3aaf206f60da5fc8032c
parent8f142c8a0e7545e55fed56290c06c21838bd7d11
vfs_fake_dfq: add more mocking options

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>
(cherry picked from commit b5ac30e96ede7a68bc191b983b068b62cbc160ec)
source3/modules/vfs_fake_dfq.c