search for: _linux_quota_version

Displaying 11 results from an estimated 11 matches for "_linux_quota_version".

2017 Oct 17
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...) > > When I use the quota.h with glibc-headers-2.25, the filesystem quota limits are badly displayed. > When using the same glibc-2.25 library but replacing ONLY one quota.h file from the older version of glibc-2.24, after compilation, the limits are correct. Looks like they removed the _LINUX_QUOTA_VERSION define from quota.h. This causes Dovecot to assume it's quota v1. I wonder if there's a way to detect that it's a new quota.h or should we just drop support for _LINUX_QUOTA_VERSION==1..
2017 Jun 21
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...DVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifndef _SYS_QUOTA_H #define _SYS_QUOTA_H 1 #include <features.h> #include <sys/types.h> /* * Select between different incompatible quota versions. * Default to the version used by Linux kernel version 2.4.22 * or later. */ #ifndef _LINUX_QUOTA_VERSION # define _LINUX_QUOTA_VERSION 2 #endif /* * Convert diskblocks to blocks and the other way around. * currently only to fool the BSD source. :-) */ #define dbtob(num) ((num) << 10) #define btodb(num) ((num) >> 10) /* * Convert count of filesystem blocks to diskquota blocks, meant...
2006 Jun 16
1
RHEL 3 and quota problems...
.../* * Select between different incompatible quota versions. - - * Default to the version used by Linux kernel version 2.4.22 - - * or later. */ + * Default to the version used by Linux kernel version 2.4.21 + * or earlier (in RHEL version 1 is AS2.1, version 2 is RHEL3 and later). */ #ifndef _LINUX_QUOTA_VERSION - -# define _LINUX_QUOTA_VERSION 2 +# define _LINUX_QUOTA_VERSION 1 #endif /* if I edit the quota-fs.h file to load "sysquota.h" instead of <sys/quota.h> for the linux quotas, it won't compile. (i tried this instead of editing system header files directly) so I suspect the...
2006 Jun 26
0
RHEL 3 and quota issues.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks to code provided by Geo Carncross, I was able to determine what the problem was with v2 quota support on RHEL 3 using ext3 filesystems. I've included a patch file for quota-fs.c <sys/quota.h> on RHEL 3 sets _LINUX_QUOTA_VERSION to 1 if it's not defined by default. I copied <sys/quota.h> to ./sysquota.h and edited it to set _LINUX_QUOTA_VERSION to 2 if not defined since that's the version i'm using on my machine. I don't know if that's necessarily appropriate so I'm not including that file....
2017 Oct 17
0
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...; #ifndef _SYS_QUOTA_H > #define _SYS_QUOTA_H 1 > > #include <features.h> > #include <sys/types.h> > > /* > ?* Select between different incompatible quota versions. > ?* Default to the version used by Linux kernel version 2.4.22 > ?* or later.? */ > #ifndef _LINUX_QUOTA_VERSION > # define _LINUX_QUOTA_VERSION 2 > #endif > > /* > ?* Convert diskblocks to blocks and the other way around. > ?* currently only to fool the BSD source. :-) > ?*/ > #define dbtob(num) ((num) << 10) > #define btodb(num) ((num) >> 10) > > /* > ?* Conve...
2017 Jun 20
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
Hi, I have problem with quota storage information in dovecot-2.2.29 (and newer versions, too - 2.2.30.2). I use FS quota backend. ............................ # 2.2.29.1 (e0b76e3): /etc/dovecot/dovecot.conf # OS: Linux 4.4.68-1 x86_64 mail_plugins = quota plugin { quota = fs:User quota:mount=/poczta:user quota2 = fs:Group quota:mount=/poczta:group } protocol imap {
2007 Feb 18
1
Possible Bug in quota-fs.c
Hi, I'm using filesystem quotas with dovecot 1.0rc22 on my Linux 2.4.27 box. The quota limit gets correctly reported in kilobytes to the client but the amount of used space is reported in megabytes. In quota-fs.c I noticed that only the currently used space is divided by 1024: Line 241: *value_r = dqblk.dqb_curblocks / 1024; *limit_r = dqblk.dqb_bsoftlimit; After
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...i]), + root->mount->device_path, + what[i], (caddr_t)&dqblk) < 0) { + if (errno == EINVAL) { i_error("Dovecot was compiled with Linux quota " "v%d support, try changing it " "(--with-linux-quota configure option)", _LINUX_QUOTA_VERSION); + quota_error = quota_error + 1; + } } - quota_set_error(_root->setup->quota, - "Internal quota error"); + + value_r_t = dqblk.dqb_curblocks / 1024; + limit_r_t = dqblk.dqb_bsoftlimit; + } +#elif defined(HAVE_QUOTACTL) + /* BSD, AIX */ + if (quotactl(root-&...
2008 Feb 17
0
--without-linux-quota
Hi, compiling dovecot 1.1.beta16 with configure option "--without-linux-quota" failed in line 444 of quota-fs.c as _LINUX_QUOTA_VERSION is an unquoted "no". Additionally using "--without-linux-quota" does not remove the quota code from dovecot as I expected. This is not a problem to me but it would be more clear if configure failed if "--without-linux-quota" is used and it is not possible to strip the...
2008 Nov 07
6
Cannot get the libwrap patch work
Hello there, I have been trying to make the patch work for libwrap(TCP Wrappers) posted on http://dovecot.org/patches <http://dovecot.org/patches%20Patch%20of%201.1> Patch of 1.1 but could not get it work. Any help will be highly appreciated. After compiling and running it I get error "Error: login_tcp_wrappers can't be used because Dovecot wasn't built with
2008 Nov 08
1
dovecot Digest, Vol 67, Issue 19
...wrap Build with libwrap, ie. TCP-wrappers (default)], + if test x$withval = xno; then + want_libwrap=no + else + want_libwrap=yes + fi, + want_libwrap=yes) + AC_ARG_WITH(linux-quota, [ --with-linux-quota=n Linux quota version to use (default: system's)], AC_DEFINE_UNQUOTED(_LINUX_QUOTA_VERSION, $withval, @@ -1554,6 +1563,30 @@ fi dnl ** +dnl ** TCP wrappers +dnl ** + +if test "$want_libwrap" = "yes"; then + AC_CHECK_HEADER(tcpd.h, [ + old_LIBS=$LIBS + LIBS="$LIBS -lwrap" + AC_TRY_LINK([ + #include <tcpd.h> + int allow_severity;...