OpenVZ-legacy
  1. OpenVZ-legacy

ploop

Public
AuthorCommitMessageCommit dateIssues
Kir KolyshkinKir Kolyshkin
1a825e6b27aReleased ploop 1.10Changelog: see https://openvz.org/Download/ploop/1.10/changes Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b6cc77fdbb0dynload.h: note there are no new functions in 1.7Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
4ca6e93a66echeck_and_repair_sparse(): rm excessive "the"There is too much "the" in these messages. > Warning: the extent with unexpected flags We haven't yet refered to any extent, so there should be no "the". > Unable to statfs the delta file One rule is if there's an adjective before noun, "the" should be used because the adjective makes the noun specified/particular. Following that rule, it should always be "the delta file". In the meantime, ...
Kir KolyshkinKir Kolyshkin
e55181cde3fcheck_and_repair_sparse(): fix a log messageIt is "file" not "files". Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fb5701acc78Use "ing" in log messagesIt is more appropriate in these two cases. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
cd2c3663fbcDo not end log messages with periodWhen printing log messages, we usually don't end them with a period. In a few cases, though, we do. Fix it to unify message style. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Igor SukhihKir KolyshkinIgor Sukhih
14148e7a39fcheck_and_repair_sparse() repair unaligned unwritten extentsFix an issue when an unwritten extent is slit by an unfinished write, resulting in an unaligned extent. Zero the extent to merge it back. Before this fix, the following error was observed: # vzctl start 110683333 Mount image: /vz/private/110683333/root.hdd Failed to mount image /vz/private/110683333/root.hdd: /vz/private/110683333/root.hdd/root.hds (rw): irrecoverable errors Failed to mo...PSBM-24092
Kir KolyshkinKir Kolyshkin
eee8cec88bcploop(8): add reference to vzctl compactSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
cfa3423ff62ploop(8): add vzmigrate and ploop wiki to SEE ALSOSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
241eb42bbd1ploop(8): describe copySigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
646d1ed462aploop(8): describe 'info' and 'list'Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
3d747d7c277ploop(8): fix ploop snapshot-switch synopsysOption -A was eaten by .OP and therefore not visible. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5aadbd43121ploop(8): document ploop balloon discardSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
95c3e5dba4dploop(8): lowercase image formats section nameSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
afa637073f3ploop(8): remove 'Advanced commands' sectionIt only describes low-level and unsafe version of ploop snapshot, and therefore is not just useless but also dangerous. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
ce051169071ploop(8): add subsection and intro for snapshotsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b868e1fd3c2ploop(8): do not typeset subsections in uppercaseSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
390ddc7dafeploop(8): document check commandSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b9790d8e5d1ploop(8): convert can only be offlineBoth version conversion and format conversion can only be offline. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
d57a36be72dploop(8): better resize descriptionMore words on what is online and offline resize. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b72830b7c58ploop(8): mounted ploop fs is optionalSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
77f6030b1cfploop(8): fix a typo in mount descriptionSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
60b4db9cdf8ploop(8): describe way to get helpSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
aa6ea2bfc8bploop(8): add vertical space before .SS3 headingsThis makes them more readable. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
45710ae8c67ploop(8): improve .SS3 macroMake sub-sub-headings 4 character indented so they are more visible. Add .P to the end of macro to restore all the parameters we screwed up. Therefore, we don't need .P after using this macro. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Igor SukhihKir KolyshkinIgor Sukhih
8663ae54e75make_fs(): create ext4 fs with 128M journalJournal is used for online resize, it should be at least 32M to resize up to 16T. For image with initial size <= 1G journal is 4096 blocks, and then resize fails with somewhat cryptic error: old_desc_blocks = 1, new_desc_blocks = 1 /usr/libexec/resize2fs: No space left on device While checking for on-line resizing support Reference: PSBM-23707 Reference: ploop@951769PSBM-23707
Kir KolyshkinKir Kolyshkin
a94e83b9007[style] init_delta_array(): return voidSince commit r744482 init_delta_array() does not do any memory allocation, so made it return void and don't check its return. This is an addition to commit 8f2a7f1 (r744482). Reference: ploop@952139 Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
40894498e7bploop(8): describe exit codesSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
6cd1074f6cdploop(8): make IMAGE FORMATS a subheaderIMAGE FORMATS doesn't deserve being a separate section, it is rather a subsection of OPTIONS. Make it so. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a75f727f684ploop(8): add missing OPTIONS sectionNot sure why it was not there... Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
0006ad03661STYLE Change SYSEXIT_NOMEM -> SYSEXIT_MALLOCWe have two exit codes to say "not enough memory". One is enough. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
59e4386eb17include/libploop.h: remove unused exit codesThese ones are not currently used, so rename them to _RESERVED_N (rather than remove) to not change the enumeration of existing codes. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
3c242ca2d25Replace SYSEXIT_BAD_DELTA with SYSEXIT_PLOOPFMTIndroducing yet another "ploop image has an issue" exit code was a mistake, since we already have SYSEXIT_PLOOPFMT for this purpose. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
3d56c2d7d62ploop_check(): fix exit codesWhen an image in 'changing version' state, it does not mean it is corrupted, so do not return SYSEXIT_PLOOPFMT. Instead, use SYSEXIT_EBUSY. When there are no errors in the image, but we can't reset its "in use" flag because read-only flag was specify, do not return SYSEXIT_PLOOPFMT. Instead, use SYSEXIT_WRITE (as a closest alternative to non-existent SYSEXIT_READONLY). Signed-off-by: Kir Koly...
Kir KolyshkinKir Kolyshkin
0088af13617Use SYSEXIT_SYSFS not SYSEXIT_SYS where appropriateWhen dealing with /sys/block/ploop* and failing, we should return SYSEXIT_SYSFS. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
888f8f598f0ploop convert -f: do not return SYSEXIT_PLOOPFMTWhen trying to convert ploop image from v2 to v1, we check for its size and return an error if it is too big for v1. Exit code SYSEXIT_PLOOPFMT is used for corrupted ploop images, so it should not be used in this case. Use SYSEXIT_PARAM instead, the meaning is one can not specify -v1 format for large ploop images. Fix to commit 17ebb77/r891129. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e8749df32d3Remove SYSEXIT_BLKDEV exit codeIt is only used once, and in the place that we usually return SYSEXIT_DEVIOC. So replace it with the latter, and remove the definition. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
24f2a5731edMakefile: add Coverity generation logicSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
9d9c75c8826plooptool_stat(): close file descriptorsIssue with dp reported by Coverity, CID 1135313. Issue with fd, interestingly, was not reported. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
baa3e270fafploop(8): improve convert descriptionSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
12117e3c45etools/ploop-copy: remove a stand-alone binaryMerge it to main ploop binary, keeping the source separate. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
49887c80085tools/ploop-stat: remove a stand-alone binaryMerge it to main ploop binary, keeping the source separate. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fc0de741953tools/ploop-stat.c: remove global varsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
ba2305f964etools/ploop-merge: remove a stand-alone binaryMerge it to ploop binary, keeping the source separate. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
709e49563ddtools/ploop-grow: remove a stand-alone binaryMerge it to main ploop binary, keeping the source separate. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e3c5adc343dtools/ploop-fsck: removeAdd its functionality to tools/ploop.c Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
51eab3fdfe8tools/ploop-check.c: remove a stand-alone binaryMerge it to main ploop binary, keeping the source separate. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b2a422fb0detools/Makefile: add PLOOP_OBJSThese are the object files needed by ploop binary. No changes, just a cosmetic thing. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
738b35ebc89tools/Makefile: simplify SOURCES defineSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
70a5af1e212plooptool_init(): fix long linesSigned-off-by: Kir Kolyshkin <kir@openvz.org>