OpenVZ-legacy
  1. OpenVZ-legacy

vzctl.ovzl

Public
AuthorCommitMessageCommit dateIssues
Kir KolyshkinKir Kolyshkin
27c8a3dda33Released vzctl-3.0.16
Kir KolyshkinKir Kolyshkin
eace6c59f52Added bash-completion support for --ioprio
Igor SukhihIgor Sukhih
bc39887c1e6Close stderr, stdout on env_create()
Kir KolyshkinKir Kolyshkin
c7374ada743dev.h, veth.h: minor comment fixThis is not just "next" element, but rather prev/next.
Kir KolyshkinKir Kolyshkin
dc19fe74742list.h: remove no-longer needed type castsDue to previous commit 4b079d2b7ee2f8398ff67e2c40b62c50ccf06e12 it is no longer needed to type-cast list_head_t* to list_elem_t*, thus cleaning it up.
Kir KolyshkinKir Kolyshkin
4b079d2b7eeRemove compiler warnings by fixing list_elem_t and list_head_t definitionsThere were a few warnings like this: config.c: In function 'store_dev': config.c:1078: warning: dereferencing type-punned pointer will break strict-aliasing rules The problem is caused by the fact that two different types -- list_head_t and list_elem_t -- are defined in list.h and used for double linked list routines. In fact, those types are the same, but since they are defined separately,...
Kir KolyshkinKir Kolyshkin
c0ea956e55cReleased vzctl-3.0.15
Dmitry V. LevinKir KolyshkinDmitry V. Levin
e04b5e6712aRelocate cron master file from pkgdatadir to pkgconfdir.Configuration files should not be placed in datadir. [kir@openvz.org: fixed commit message] Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Acked-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5517075edf1.gitignore: added TAGS
Kir KolyshkinKir Kolyshkin
285b4bf5801etc/cron.d/.gitinore: fixAs needed after commit 873485e9b1c3d892da8b9bf9e76ac21d70130726.
Vasily TarasovKir KolyshkinVasily Tarasov
92cbab4c67cAdd ubioprio support for vzctl.
Kir KolyshkinKir Kolyshkin
ab3c0c84bf6Fix vzctl destroy logic.vzctl destroy operation is asyncronous: it moves VE private area to a temp directory on the same filesystem, and then forks rm -rf in background. The problem: that background task removes everything that is sitting under the 'tmp' directory under the filesystem root where VE private area is situated (usually /vz/tmp or /var/lib/vz/tmp). Rework the removal logic to remove only those temporary...
Kir KolyshkinKir Kolyshkin
f77d5d828a2Use correct sizeof() in snprintfUse sizeof() of var we print to. Not a bug here, since both vars are of the same size, but still looks wrong.
Kir KolyshkinKir Kolyshkin
f92323d5228bash-completion: fixed support for VE names with dashesCommit 7dd83295d36d5d83e98f5bc5bc0cfdbfa2c05141 introduced support for VE names in bash_completion script. Unfortunately it stripped all the dashes ("-") from VE names, so it was not possible to use it with names such as deb-build-amd64. This patch fixes it.
Kir KolyshkinKir Kolyshkin
257931d2dd8Really remove VE names on destroy.Really fix bug #440. Previous commit 0e167b32f2cd1670e7cac1ce81ea18bd6e84aa32 forgot to add slash. Also fix whitespace (spaces -> tab). http://bugzilla.openvz.org/440
Igor SukhihIgor Sukhih
0e167b32f2cRemove all names reffered on VE on destroy actionhttp://bugzilla.openvz.org/show_bug.cgi?id=440
Kir KolyshkinKir Kolyshkin
e07fecea0b7vzctl mount: print warning if no simfsIn case simfs mount failed returning ENODEV, print a hint. http://bugzilla.openvz.org/429
Kir KolyshkinKir Kolyshkin
5aa2d071cfcA bunch of whitespace fixesIt is mostly eight spaces to a tab conversion.
Kir KolyshkinKir Kolyshkin
258c3c2b9fbinit.d/vz-redhat: removed unused codeFunction check_is_root() is not used, thus removing it. Noticed by Thorsten Schifferdecker, see http://bugzilla.openvz.org/show_bug.cgi?id=473
Kir KolyshkinKir Kolyshkin
8f528d387f3man/vzctl.8: document --devices optionhttp://bugzilla.openvz.org/475
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
0cf7548f88dinit.d/vz-redhat: really honour MODULES_DISABLED=yesBUG: when MODULES_DISABLED="yes" set in /etc/vz/vz.conf and a non-modular kernel is used; non-OpenVZ modules are still loaded, like af_packet and the related iptables_modules. This patch fixes it.
Dmitry V. LevinKir KolyshkinDmitry V. Levin
df37d19e772src/lib/config.c: Fix "cast discards qualifiers from pointer target type" warningssrc/lib/config.c (vps_parse_opt): Remove const qualifier from "const char *val" argument, because it may be passed to parsers which in turn may modify it using strtok(3). src/lib/config.c (parse_setmode, conf_store_str, parse_meminfo, parse_ub): Add const qualifier to "char *val" argument. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Acked-by: Kir Kolyshkin <kir@openvz.org>
Dmitry V. LevinKir KolyshkinDmitry V. Levin
87a40f6f64bChange the default behaviour for AC_PROG_LIBTOOL to disable build of static libraries. The user may still override this default by specifying --enable-static.Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Acked-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
f5843614706Fixed a typo in initscriptsIntroduced by the previous commit, 873485e9b1c3d892da8b9bf9e76ac21d70130726
Kir KolyshkinKir Kolyshkin
873485e9b1cMove cronjob installation/removal logic to initscriptIf OpenVZ is not started, it doesn't make sense to execute its cron jobs every five minutes. This fills up system logs, reduces notebook battery life etc. Moving cronjobs management to initscript fixes that. Idea stolen from mailman initscript.
Kir KolyshkinKir Kolyshkin
40dfa8bb6ebinit.d/vz-redhat: display error if there's oneIn some cases vz script get a fatal error from modprobe. By not displaying the error we left user to guess what's wrong. This patch fixes that. "Idea" stolen from Red Hat netdump package initscript.
Kir KolyshkinKir Kolyshkin
18f8fe335c7Simplified vzctl cron.d entries.It makes little sense to have two separate files in /etc/cron.d/, so merge both vpsnetclean and vpsreboot into a sinlge file with a simple name. Also removed licensing blurb since it doesn't make much sense here.
Kir KolyshkinKir Kolyshkin
269855c1086src/lib/vps_configure.c: get rid of a warningRemove the following warning: vps_configure.c: In function ‘vps_ip_configure’: vps_configure.c:274: warning: cast discards qualifiers from pointer target type
Dmitry V. LevinKir KolyshkinDmitry V. Levin
fefbe762d12src/vzlist.c (*_sort_fn, *_search_fn): Add const qualifier to casts from const pointer type[kir@openvz.org: limited line width to <80 chars] Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a01572a3f76lib/env.c: comments/messages spelling fixes
Kir KolyshkinKir Kolyshkin
248b85a47a0Fix ndsend compile with Gentoo linux-headers-2.6.19.2-r2The problem is abovementioned linux-headers change linux/if.h file in a way that it does no more include linux/types.h, thus unknown types like __u8 etc. We add this include explicitly and fix the problem.
Kir KolyshkinKir Kolyshkin
eb4d8b9dc03Released vzctl-3.0.14
Kir KolyshkinKir Kolyshkin
6b29c57c493vz.conf(5): fixed dateAfter commit 8ed827ce5ad406c9920a71419cddd9196a393bd5
Kir KolyshkinKir Kolyshkin
3b659c87b81Fixed wording/spelling in a comment
Kir KolyshkinKir Kolyshkin
3dc87c6133evzctl.8: formatting/spelling fixAn addition to commit 0855ff4d69c61e4a13f1b605f30e4e4f5a012ea0
Kir KolyshkinKir Kolyshkin
6c501234dfbHappy New Year!Added 2007 to copyright statements.
Kir KolyshkinKir Kolyshkin
fbf462f49770.conf.*: removed GNU copyright header, add 2007Full GNU copyright header makes little sense for a file with only a couple of lines in it.
Kir KolyshkinKir Kolyshkin
0855ff4d69cvzctl.8: reworded netif_add/netif_del description
Kir KolyshkinKir Kolyshkin
8ed827ce5adImplement MODULES_DISABLED in gentoo initscript; document it.This is an addition to commit 37861579f02fee2f6a8aea48282586b0a45d94bc In case MODULES_DISABLED is set to "yes" in global config, no attempt is made to load/unload OpenVZ kernel modules in vz initscripts. http://bugzilla.openvz.org/132
Igor SukhihKir KolyshkinIgor Sukhih
dd466af792eMove workaround for FC5 copy bug to the common partSee commits 30c21e7a5d3dc9f3895ab8f8df4b06a3cf3c139b and e10ba105a588291d073ce57f9444d36f1f2f495a
Kir KolyshkinKir Kolyshkin
c1531545ea9Makefile.am: add vzctl.spec to EXTRA_DISTOtherwise it is not included into the dist tarball.
Kir KolyshkinKir Kolyshkin
3b041b25ef0configure: skip useless/harmful C++/F77 checks by libtoolAC_PROG_LIBTOOL configure macro wants to run a lot of C++ and Fortran checks Since vzctl does not use any C++ or Fortran code, those checks are useless. But this is not a problem -- the problem is in case of there is no C++ compiler, configure fails miserably with the following diagnostics: checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" ...
Igor SukhihIgor Sukhih
e2d8ca8ecf5Fixed build enviroment array for execve() in the run_script()
Kir KolyshkinKir Kolyshkin
71324a24fbavzctl.spec: fix to compile vzctl on 64-bit platform
Kir KolyshkinKir Kolyshkin
5e7fb69a89bReally fix installation of proper VE configs.An addition to the previous commit 82968bc396108a54c22d2e32b3a69afb57498526. The problem apparently is when variable assignment is performed in Makefile, and the line (like A = b) is preceded with a TAB character, GNU make just ignores this line. No error, no warning, just ignore...
Kir KolyshkinKir Kolyshkin
82968bc3961Install proper (arch-dependent) VE configsPrevious implementation was flawed and didn't really worked, as discovered by Thorsten (bug #419). Redone with obligatory arch-suffixes and temporary files. http://bugzilla.openvz.org/419
Kir KolyshkinKir Kolyshkin
857d64238d0Do not install directory if a corresponding feature is not enabled.Problem: even if, say, bash_completion feature is not enabled via configure, a corresponding directory (bash_completion.d) is installed anyway. Same problem with cron, logrotate, udev. Apparently it's not enough to guard "bashc_DATA" in Makefile by "if ENABLE_BASHCOMP" -- it is also required to guard the directory.
Kir KolyshkinKir Kolyshkin
5336018d135Fix to make configure working in builddir != srcdir.Apparently automake is smart enough to add $(srcdir) by itself. Without this patch, make tried to refer to ../../bin/../../bin/ files which is shows that srcdir has been added twice -- by us and by automake.
Ola LundqvistKir KolyshkinOla Lundqvist
2727096552evzmigrate: add --delete to rsync callsDuring testing and debugging of a problem on Debian systems (which I later found out was corrected in 3.0.13 version) I found that the rsync commands in vzmigrate can give quite unexpected results. The command looks basically like this: rsync -aH ${from} ${to} This means that files are copied from ${from} to ${to}, but if files already exist on ${to} from some older copy the old files that do...
Igor SukhihIgor Sukhih
a26a2dd948cSpeedup 'vz stop' action * removed 'sleep 1' * added parallel value auto calculation by the rule: num_cpu * 4http://bugzilla.openvz.org/show_bug.cgi?id=431