vfs_fake_dfq: add more mocking options
authorUri Simchoni <uri@samba.org>
Thu, 26 May 2016 18:59:38 +0000 (21:59 +0300)
committerJeremy Allison <jra@samba.org>
Fri, 27 May 2016 18:36:06 +0000 (20:36 +0200)
commitb5ac30e96ede7a68bc191b983b068b62cbc160ec
treeeab0329c3ca5b3f158a53e9124661165af5eecce
parent7a725eea25f905fc5f611e8f3d7cfe414d5cf913
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>
source3/modules/vfs_fake_dfq.c