This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_QUOTA
+#ifndef HAVE_SYS_QUOTAS
+#ifdef HAVE_QUOTACTL_LINUX
+#undef HAVE_QUOTACTL_LINUX
+#endif
+#endif
+
#ifdef HAVE_QUOTACTL_LINUX
#include "samba_linux_quota.h"
D.dqb_ihardlimit = (dp->ihardlimit*dp->bsize)/bsize;
D.dqb_isoftlimit = (dp->isoftlimit*dp->bsize)/bsize;
}
+ D.dqb_valid = QIF_LIMITS;
qflags = dp->qflags;
case SMB_USER_FS_QUOTA_TYPE:
id.uid = getuid();
- if ((ret=sys_get_linux_gen_quota(path, bdev, qtype, id, dp))) {
- if ((ret=sys_get_linux_v2_quota(path, bdev, qtype, id, dp))) {
- ret=sys_get_linux_v1_quota(path, bdev, qtype, id, dp);
+ if ((ret=sys_set_linux_gen_quota(path, bdev, qtype, id, dp))) {
+ if ((ret=sys_set_linux_v2_quota(path, bdev, qtype, id, dp))) {
+ ret=sys_set_linux_v1_quota(path, bdev, qtype, id, dp);
}
}
case SMB_GROUP_FS_QUOTA_TYPE:
id.gid = getgid();
- if ((ret=sys_get_linux_gen_quota(path, bdev, qtype, id, dp))) {
- if ((ret=sys_get_linux_v2_quota(path, bdev, qtype, id, dp))) {
- ret=sys_get_linux_v1_quota(path, bdev, qtype, id, dp);
+ if ((ret=sys_set_linux_gen_quota(path, bdev, qtype, id, dp))) {
+ if ((ret=sys_set_linux_v2_quota(path, bdev, qtype, id, dp))) {
+ ret=sys_set_linux_v1_quota(path, bdev, qtype, id, dp);
}
}
}
#else /* HAVE_QUOTACTL_LINUX */
+ void dummy_sysquotas_linux(void);
+
void dummy_sysquotas_linux(void){}
#endif /* HAVE_QUOTACTL_LINUX */