Commits
Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Kir Kolyshkin | 84a97338cca | Released 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 Kolyshkin | 01727713e51 | src/lib/Makefile.am: make library version the same as vzctl versionSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b124a9357f9 | bash_completion: change snapshot-create to snapshotSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | c5d4395c816 | man/vzctl.8: describe snapshot* commandsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 535a3806da1 | vzlist: 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 Kolyshkin | a19a4581ef0 | vps_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 Kolyshkin | a8c7cfe57c5 | cp_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 Kolyshkin | 349e4c01d78 | parse_netif_cmd(): fix a compiler warningSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | dc764921857 | modules.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 Kolyshkin | d0657222707 | parse_netif(): in case of an error, return proper error codeSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | a856159de83 | vzctl 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 Kolyshkin | 62b725727b1 | make_dir(), make_dir_mode(): made first argument constThe way it should be. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | aec4998f090 | vzctl 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 Kolyshkin | 5fb65baab41 | vps_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 Kolyshkin | bbb3b9d3157 | src/lib/xml.c: fix log messages/store/Storing/ Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | cdbb969dec1 | vzctl.spec: requirements for libxml2 addedThis is an addition to commit 6ee905f Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 963f09274df | vzctl snapshot-*: add bash_completion rulesTODO: completion for --id argument Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 5c7f17c48d3 | ploop snapshots: wire callsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1e26ae602c0 | ploop: add snapshotting functionalitySigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 6ee905f62b1 | ploop: add lib/xml.cTo be used by next commits. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1b84054c430 | vzctl 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 Kolyshkin | 6f977bfa78a | src/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 Kolyshkin | 67f626c06fe | cpt_cmd(): move network config out to chkpnt(), simplify argumentsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1f6a74a467b | vps_chkpnt(): move network config and unlink out to chkpnt()Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 396465e1de6 | ploop 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 Kolyshkin | 8243b0d3542 | include/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 Kolyshkin | c3adb6e11e8 | Fix 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 Kolyshkin | 114de8e8d21 | Fix 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 Kolyshkin | 6da8c90ac04 | etc/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 Kolyshkin | dd3aebaef9f | etc/init.d/vz*: Improve a messages/Set/Setting/ to avoid misunderstanding. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | ae3ce45874b | ploop 2nd-level quota: untangle the messSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 7df6703d53e | vzctl restore: fix "container already running" exit codeIt should be VZ_VE_RUNNING Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e73c3384990 | Fix 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 Kolyshkin | ebbf33980c1 | ploop 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 Kolyshkin | 352691768fc | ploop 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 Kolyshkin | 89dbd930630 | etc/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 Kolyshkin | c8e3beea4f8 | vzctl --help: add convert commandIt was somehow forgotten. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | fe02c0a42c7 | man/vzctl.8: fix --config typesetting for vzctl createWhen using .BI there's no space. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 22535c8d998 | vzctl 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 Kolyshkin | a435647e9a6 | man/vzctl.8: --diskquota, --diskinodes and --quotatime are ignored for ploopSay so. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 900d1a03e90 | man/vzctl.8: fix --diskspace description for ploop caseSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 16840ad2c36 | vzctl 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 Kolyshkin | ebf19a97f7a | man/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 Kolyshkin | 77d2d6c54d7 | Add --velayout as a synonym for --layoutFor compatibility with commercial version. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | ff538ecd51d | ploop: 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 Kolyshkin | 338544ca3b1 | ploop 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 Kolyshkin | 33bbd967354 | ploop: 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 Kolyshkin | eb3b91a0473 | man/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 Kolyshkin | caf89997e21 | man/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 Kolyshkin | d5b3b511bf5 | man/vzctl.8: add missing --name to SYNOPSYS for vzctl createSigned-off-by: Kir Kolyshkin <kir@openvz.org> |