OpenVZ-legacy
  1. OpenVZ-legacy

vzctl.ovzl

Public
AuthorCommitMessageCommit dateIssues
Kir KolyshkinKir Kolyshkin
84a97338ccaReleased vzctl-3.1CHANGES (since vzctl 3.0.30.2) New features * preliminary beta support for ploop (aka container-in-a-file) technology - new global config parameter VE_LAYOUT={simfs|ploop} - new vzctl create options --layout and --diskspace - new vzctl convert command to convert from simfs to ploop (not back!) - vzctl mount/umount implemented for ploop case - vzctl set --diskspace does ploop image re...
Kir KolyshkinKir Kolyshkin
01727713e51src/lib/Makefile.am: make library version the same as vzctl versionSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b124a9357f9bash_completion: change snapshot-create to snapshotSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
c5d4395c816man/vzctl.8: describe snapshot* commandsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
535a3806da1vzlist: uninline find_ve()vzlist.c: In function ‘get_ub’: vzlist.c:673:31: warning: inlining failed in call to ‘find_ve’: call is unlikely and code size would grow [-Winline] vzlist.c:706:5: warning: called from here [-Winline] vzlist.c:673:31: warning: inlining failed in call to ‘find_ve’: call is unlikely and code size would grow [-Winline] vzlist.c:706:5: warning: called from here [-Winline] vzlist.c: In function ‘ge...
Kir KolyshkinKir Kolyshkin
a19a4581ef0vps_setup_veth(): fix a compiler warningveth.c: In function 'vps_setup_veth': veth.c:470:11: warning: variable 'dev_num' set but not used [-Wunused-but-set-variable] Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a8c7cfe57c5cp_file(): fix a compiler warningutil.c: In function 'cp_file': util.c:203:22: warning: variable 'len' set but not used [-Wunused-but-set-variable] Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
349e4c01d78parse_netif_cmd(): fix a compiler warningSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
dc764921857modules.c: fix compiler warningsmodules.c: In function 'mod_save_config': modules.c:117:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable] modules.c: In function 'mod_cleanup': modules.c:156:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
d0657222707parse_netif(): in case of an error, return proper error codeSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a856159de83vzctl chkpnt: create dumpdir if not existAmong the other things, it fixes the vzctl snapshot case: ... Setting up checkpoint... Can not create dump file /vz/private/190/dump/{beb0ca0d-4f27-4414-a7be-78e697a7311c}: No such file or directory Checkpointing failed ... Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
62b725727b1make_dir(), make_dir_mode(): made first argument constThe way it should be. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
aec4998f090vzctl restore: remove dump file if CT was restoredNot sure why it was not done, hmm, years ago. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5fb65baab41vps_chkpnt(), vps_restore(): simplify logic of getting dumpfileUse the macro since the code is almost the same in both functions. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
bbb3b9d3157src/lib/xml.c: fix log messages/store/Storing/ Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
cdbb969dec1vzctl.spec: requirements for libxml2 addedThis is an addition to commit 6ee905f Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
963f09274dfvzctl snapshot-*: add bash_completion rulesTODO: completion for --id argument Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5c7f17c48d3ploop snapshots: wire callsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1e26ae602c0ploop: add snapshotting functionalitySigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
6ee905f62b1ploop: add lib/xml.cTo be used by next commits. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1b84054c430vzctl chkpnt: fix ignoring DUMPDIRWe were using dumpdir from g_p, but since commit 1f6a74a this was changed to cmd_p, so we need to propagate the parameter. Assignment is non-conditional since dumpdir can't come from cmdline. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
6f977bfa78asrc/vzctl-actions.c: fix a compiler warningWith newer gcc we have this: vzctl-actions.c: In function ‘parse_chkpnt_opt’: vzctl-actions.c:406:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Fix it. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
67f626c06fecpt_cmd(): move network config out to chkpnt(), simplify argumentsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1f6a74a467bvps_chkpnt(): move network config and unlink out to chkpnt()Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
396465e1de6ploop snapshots: introducing new commands and optionsThis is the first patch, adding vzctl snapshot* commands, their appropriate options, and relevant structures. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
8243b0d3542include/logger.h: introduce vzctl_err() wrapperThe idea is to replace if (smth) { logger(-1, errno, "Smth bad"); return E_BAD; } with if (smth) return vzctl_err(E_BAD, errno, "Smth bad"); Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
c3adb6e11e8Fix a typos/succesfully/successfully/ Interesting thing is how I found this one. I was filing a bug and copy/pasted some vzctl output into browser's text area input field. Apparently it had a spell checking on and I saw this. Wow. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
114de8e8d21Fix vzctl convert w/o --layout option case.For layout, "unset" value is 0. This is an addition to commit 16840ad Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
6da8c90ac04etc/init.d/vz*: quote grep argumentThis is how it was: # /etc/init.d/vz start ... grep: #: No such file or directory grep: Use: No such file or directory grep: vswap-256m: No such file or directory grep: on: No such file or directory grep: RHEL6: No such file or directory grep: kernel$: No such file or directory Quote the argument to prevent this madness. Strange that no one noticed it. This is a fix to commit e2cb23b...
Kir KolyshkinKir Kolyshkin
dd3aebaef9fetc/init.d/vz*: Improve a messages/Set/Setting/ to avoid misunderstanding. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
ae3ce45874bploop 2nd-level quota: untangle the messSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
7df6703d53evzctl restore: fix "container already running" exit codeIt should be VZ_VE_RUNNING Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e73c3384990Fix passing ve_private to vps_quota_configure()Apparently param->fs is not initialized in vps_configure(), so we need to pass the whole fs_param to it instead of just ve_root. Fix for commit 3526917 Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
ebbf33980c1ploop 2nd-level quota support part 2/2This is script-related stuff. In case of ploop/ext4 we only need to run appropriate quotaon/quotaoff commands. Check for proper quota utils version is also added. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
352691768fcploop 2nd-level quota support part 1/2In ploop case, quota is native ext4, so we don't have to do much about it, just create a device and grant appropriate permissions. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
89dbd930630etc/dists/scripts/*set_ugid_quota: move code to a functionThis is a preparation for native (ploop) quota support patch Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
c8e3beea4f8vzctl --help: add convert commandIt was somehow forgotten. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fe02c0a42c7man/vzctl.8: fix --config typesetting for vzctl createWhen using .BI there's no space. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
22535c8d998vzctl create: add --diskspace parameterWhen creating a new CT on a ploop image, it is handy to specify its size. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a435647e9a6man/vzctl.8: --diskquota, --diskinodes and --quotatime are ignored for ploopSay so. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
900d1a03e90man/vzctl.8: fix --diskspace description for ploop caseSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
16840ad2c36vzctl convert: add --layout optionSo now you can specify ploop mode (either explicitly or implicitly, via VE_LAYOUT parameter in vz.conf). Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
ebf19a97f7aman/vzctl.8: list ploop layout options in proper order...which is expanded, plain, raw (because expanded is default). Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
77d2d6c54d7Add --velayout as a synonym for --layoutFor compatibility with commercial version. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
ff538ecd51dploop: resize ploop image when vzctl set --diskspace is runPrevious commit ebc46fc was incorrect, because vps_setup_res() is run for every vzctl start and, if a container is running, for vzctl set. This is the right place for vzquota, but not for ploop. For ploop we only need to do it on vzctl set stage, never minding the container status, and we don't have to do anything on vzctl start. Move the ploop resizing call to set(). Signed-off-by: Kir Koly...
Kir KolyshkinKir Kolyshkin
338544ca3b1ploop env.c: fix a warning CC env.lo env.c:701:10: warning: implicit declaration of function 've_private_is_ploop' is invalid in C99 [-Wimplicit-function-declaration] ploop = ve_private_is_ploop(res->fs.private); ^ This is an addition to commit f380a3c Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
33bbd967354ploop: introduce ploop format for --layout/VE_LAYOUTploop format (expanded, plain or raw) can be specified after a colon, like this: VE_LAYOUT=ploop:plain vzctl create 101 --layout ploop:expanded Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
eb3b91a0473man/vzctl.8: add CTID to commands where it was absense... and s/ctid/CTID/ for quota* commands Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
caf89997e21man/vzctl.8: simplify SYNOPSYSAlways wanted to do that, didn't know how to address it. Looks like I do now. (1) Remove options for vzctl set and vzctl create from SYNOPSYS. (2) ...except for set's --save, --force and --setmode. (3) Add these to where vzctl create and vzctl set are described. Now it - looks better and is easier to read - create and set comes with (I hope) full descriptions - (previously some options were f...
Kir KolyshkinKir Kolyshkin
d5b3b511bf5man/vzctl.8: add missing --name to SYNOPSYS for vzctl createSigned-off-by: Kir Kolyshkin <kir@openvz.org>