vfs_fake_dfq - remove support for generating EDQUOT
authorUri Simchoni <uri@samba.org>
Fri, 27 May 2016 18:42:49 +0000 (21:42 +0300)
committerJeremy Allison <jra@samba.org>
Tue, 31 May 2016 22:57:32 +0000 (00:57 +0200)
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>
source3/modules/vfs_fake_dfq.c

index bf498600ef30cfcea0fdcb34449bef373677f44f..51ab7bb46d99723d622f8f1f0e3c04d5016870b3 100644 (file)
@@ -154,11 +154,6 @@ static int dfq_get_quota(struct vfs_handle_struct *handle, const char *path,
        qt->curinodes = dfq_load_param(snum, rpath, section, "cur inodes", 0);
        qt->qflags = dfq_load_param(snum, rpath, section, "qflags", QUOTAS_DENY_DISK);
 
-       if (dfq_load_param(snum, rpath, section, "edquot", 0) != 0) {
-               errno = EDQUOT;
-               rc = -1;
-       }
-
        goto out;
 
 dflt: