Commits
Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Alexander | 5834f7a1fcb | src/quotaon.c: fix compilation with clangFix the following error: quotaon.c:1005:7: error: variable 'ugid' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized] if (argc != 5 ^~~~~~~~~ quotaon.c:1017:17: note: uninitialized use occurs here quota_setugid(ugid, &stat, NULL); ^~~~ quotaon.c:1005:7: note: remove the... | |||
Kir Kolyshkin | 5309a1dc318 | quotacheck.c: fix POWER compileFix the following error while compiling for POWER: > quotacheck.c: In function ‘scan’: > quotacheck.c:260:2: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘qint’ [-Werror=format=] Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0502e514022 | quota_io.c: fix power compilationFix a couple of printf format errors: > quota_io.c: In function ‘chksum_quota_file’: > quota_io.c:1394:2: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘chksum_t’ [-Werror=format=] Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | aead4093ddb | Mark error() and debug_print() as format(printf)1 Add attribute(format(printf)) to error() and debug_print() function so that compiler knows that these functions expect printf-style arguments. 2 Fix the errors discovered by the above change. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 4aee8b865c4 | Fix POWER compilationOn POWER, __u64 type is "unsigned long", while on x86_64 it is defined as "unsigned long long". To work around this discrepancy, we need to typecast some printf arguments. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Ola Lundqvist | d6334912c84 | [build] fix mandir installationWhen building and installing (build for Debian package at least) it creates a directory /man8 that should not exist. The reason for this is that src/Makefile use MANDIR while this directory is set in man/Makefile. At the same time man/Makefile have problem to create the man8 directory, because INSTALL is not defined. Fix both. [kir@openvz.org: remove MANDIR= from make install line in .spec] ... | |||
Kir Kolyshkin | fb4bdc7d09a | Released vzquota 3.1Changes ======= See http://wiki.openvz.org/Download/vzquota/3.1/changes Thanks ====== OpenVZ project would like to thank the following people who contributed patches and/or provided bug reports for this release: * Dmitry V. Levin * Peter Volkov * Peter Linnell * Maxim Shchelokov Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | afcc025ec24 | src/quotacheck.c: fix compilation on old platformsWe only need linux/magic.h for a single define which we already have defined. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 223daa4b951 | Makefile: remove --exclude-vcs from tar optionsOlder tar does not understand it. Use --exclude .git instead Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b7ad6b6dcc6 | vzquota(8): -s, --sub-quotas is in fact accepted by setlimithttp://bugzilla.openvz.org/2310 Reported-by: Maxim Shchelokov <maks3004@inbox.ru> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | d59dc786e47 | vzquota(8): document reload2 commandhttp://bugzilla.openvz.org/2310 Reported-by: Maxim Shchelokov <maks3004@inbox.ru> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 9ca6834ae5a | Makefile: add rpms targetSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 6a3fe271eb2 | Makefile: add dist targetSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1738b1bea38 | man: add missing macros (.SY/.OP/.YS and .EX/.EE)Apparently, even RHEL6 uses very old groff version (1.18) in which all the above macros are not available, leading to ugly rendering. We want those macros since they make the pages look better, so to avoid the above ugliness we can just add the macros into each and every man page. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 117505d7668 | Makefile: better tar targetModern tar complains that directory is being changed as we read it. Fix it by making tar in .. dir and then moving it here. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 18260212860 | Improve quotactl_syscall()Do proper chroot() and return back, checking for errors on every stage. Based on a patch by Andrey Mirkin. Reference: vzquota@118755 | |||
Igor Sukhih | 610c7406670 | Add processing EIO on quota offReference: vzquota@118757 | |||
Kir Kolyshkin | cbab188bfde | [style] remove EOL whitespaceSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Igor Sukhih | cc37e1c530b | Fix to compile with older kernel headersThis is an addition to commit da0ae5a. | |||
Kir Kolyshkin | 3ff352901f8 | man/*: fixed dates and copyright yearsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1edfbd7e477 | src/syscall.c: fix using GNU old-style structure field designatorThe following warning given when trying to use clang: syscall.c:41:6: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator] cmd : _cmd, ^~~~~~~~~~~~~ .cmd = Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Konstantin Volkov | 3395ba05746 | vzdqdump, vzdqload: add -F to dump/load first level quotasNeeded for migration to a different arch (32 <-> 64) over shared storage. Reference: PCLIN-27498 Reference: vzquota@592370 | PCLIN-27498 | ||
Kir Kolyshkin | 525c334f84e | vzdqdump(8): fix -G -U -T in SYNOPSYSEarlier commit 956433f made options -G, -U, -T exclusive. In fact, they can be used together. Fix it. The only thing I don't know how to achieve is marking it in synopsys that at least one of these options should be used. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 85d600dd7fe | print_status(): simplifyNo code change, just merging if/else blocks into one. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 34d35f494d5 | Fix error message when native quota is running on /vzMessage was incorrectly saying "another quota check is running" (it has nothing to do with quota check). Change that to "Native quota is running". New text message is provided by vlikhanov@. Reference: PCLIN-27571 Reference: vzquota@603951 Signed-off-by: Kir Kolyshkin <kir@openvz.org> | PCLIN-27571 | ||
Kir Kolyshkin | 9cc52de455d | vzdqdump, vzdqload: fix typo in usageqouta -> quota Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 3da0381581f | Remove jquota filesjquota was an experimental feature never merged to this vzquota, except for these files accidentally added by commit 278afb0e. Remove those. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Igor Sukhih | da0ae5aaa30 | Make ext4 delalloc work with vzquota (rhel6 only)Many applications access private area beyond vzquota, after this many inodes probably will have delayed blocks. For example: tar zxf ve-private-area.tar.vz -C /vzt/private/$VEID Later application must call quota recalc in order to update quota numbers: vzquota init $VEID ...... But delayed blocks allocation happened, so quota is inconsistent, and inodes still contain delayed blocks which... | PCLIN-27714 | ||
Igor Sukhih | 565f1342ef3 | Fixed compilation warningquotacheck.c:252: error: ignoring return value of 'fchdir', declared with attribute warn_unused_result Reference: vzquota@737078 | |||
Igor Sukhih | a3d1b4c464d | Fix ker2block() macroFix to work with > 1TB quotas Reference: vzquota@748438 Reference: PSBM-12268 | PSBM-12268 | ||
Igor Sukhih | f5f6218ee59 | Skip quota file locking on 'vzquota show' actionReference: PCLIN-30979 Reference: vzquota@774858 | PCLIN-30979 | ||
Kir Kolyshkin | bf4673062dd | man/vzquota.8: describe command and quota_id in DESCRIPTION...and use italics. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | c901dd6ce5e | man/vzquota: improve DISPLAY section(1) Use .TP (2) Fixed/improved English. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | f887939bcdc | man/vzquota.8: better subsectioning(1) Get rid of sub-sub-sections faked using .TP, make only these ones: General Quota Commands Setting quota limits Other options This might not be the best but it's much better than before (2) Add vertical space before/after .SS | |||
Kir Kolyshkin | f65bac74674 | man/vzquota.8: simplify formattingUse .B/.BI/.BR where possible/easy. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | f22df2a5432 | man/vzquota.8: remove EOL whitespaceSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | cc0c613879a | man/*: use EXIT STATUS not DIAGNOSTICSDIAGNOSTICS is for various error messages printed by a program etc. The proper name is EXIT STATUS, use it. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | f4efddfe376 | man/vzquota.8: use DIAGNOSTICSTo be in line with other man pages from vzquota and vzctl. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 956433f9791 | man/*: fixes(1) Do not highlight program name in NAME (2) Beautified SYNOPSYS using .SY/.OP/.YS (3) vzdqcheck: expanded DESCRIPTION (4) Simplified formatting in OPTIONS (5) Added SEE ALSO Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | d311b251dbb | man/vzquota.8: fix dash in NAMESigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 278afb0e056 | Add .gitignore filesSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 78d30fd5bf5 | inline functions must me static if using -std=gnu99Fixes the following compilation error: cc -pipe -I../include -std=gnu99 -g -Wall -Werror -Wformat -D_FILE_OFFSET_BITS=64 -D_LINUX_QUOTA_VERSION=6 -D_LARGEFILE64_SOURCE -DVARDIR=\"/var\" -o vzquota common.o quota_io.o syscall.o main.o stat.o quotaon.o quotacheck.o quota_io.o: In function `lookup_dquot_': /home/kir/git/vzquota/src/quota_io.c:67: undefined reference to `hash_dquot' quota_io.o: ... | |||
Kir Kolyshkin | eb1c9f7ee6c | Fix playing with __USE_ISOC99, use -std=gnuc99 insteadhttp://bugzilla.openvz.org/1664 Reported-by: peter.linnell@inria.fr Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | c98a3453afd | include/quota_io.h: use hex for constantsIt looks better this way :) Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kirill Korotaev | 7729559b1df | Enable detailed info on vzquota off fail by default | |||
Kir Kolyshkin | 4276bb11c15 | quota on: more info on failed quota on with EEXISTIt is impossible to have both native (i.e. uid/gid) Linux quota on and vzquota. So, if native quota is enabled on /vz, vzquota can't be turned on. Explain it in error message, making it a bit more descriptive. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | cdcba663757 | Makefile: use simpler construction for submakeUse make -C $SUBDIR instead of cd $SUBDIR && make Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e0f40412568 | Minor cleanup: do not use generic name: version()Rename to print_version() Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Igor Sukhih | e12729fd6b7 | Fix quota init fail then run from deleted directoryTo reproduce this bug: 1. create some directory 2. cd there 3. from other console remove directory from p.1 4. run vzctl create ... 5. it fails: # vzctl create 73000 ... Running command: /usr/sbin/vzquota init 73000 -s 0 -R -p /vz/private/73000.new/fs -b 1048576 -B 1153024 -i 200000 -I 220000 -e 0 -n 0 vzquota : (error) quota check : getcwd: Invalid argument Running vzquota ... | |||
Kir Kolyshkin | 5a7a659e977 | Fix exit code in case quota file does not existsIn one place we were returning EC_QUOTAFILE (4 -- Quota file error) while it should be EC_NOQUOTAFILE (11 -- Quota file does not exist). Fix it. Signed-off-by: Kir Kolyshkin <kir@openvz.org> |