Commits
Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Kir Kolyshkin | 1a825e6b27a | Released ploop 1.10Changelog: see https://openvz.org/Download/ploop/1.10/changes Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b6cc77fdbb0 | dynload.h: note there are no new functions in 1.7Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 4ca6e93a66e | check_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 Kolyshkin | e55181cde3f | check_and_repair_sparse(): fix a log messageIt is "file" not "files". Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | fb5701acc78 | Use "ing" in log messagesIt is more appropriate in these two cases. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | cd2c3663fbc | Do 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 Sukhih | 14148e7a39f | check_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 Kolyshkin | eee8cec88bc | ploop(8): add reference to vzctl compactSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | cfa3423ff62 | ploop(8): add vzmigrate and ploop wiki to SEE ALSOSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 241eb42bbd1 | ploop(8): describe copySigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 646d1ed462a | ploop(8): describe 'info' and 'list'Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 3d747d7c277 | ploop(8): fix ploop snapshot-switch synopsysOption -A was eaten by .OP and therefore not visible. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 5aadbd43121 | ploop(8): document ploop balloon discardSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 95c3e5dba4d | ploop(8): lowercase image formats section nameSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | afa637073f3 | ploop(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 Kolyshkin | ce051169071 | ploop(8): add subsection and intro for snapshotsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b868e1fd3c2 | ploop(8): do not typeset subsections in uppercaseSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 390ddc7dafe | ploop(8): document check commandSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b9790d8e5d1 | ploop(8): convert can only be offlineBoth version conversion and format conversion can only be offline. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | d57a36be72d | ploop(8): better resize descriptionMore words on what is online and offline resize. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b72830b7c58 | ploop(8): mounted ploop fs is optionalSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 77f6030b1cf | ploop(8): fix a typo in mount descriptionSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 60b4db9cdf8 | ploop(8): describe way to get helpSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | aa6ea2bfc8b | ploop(8): add vertical space before .SS3 headingsThis makes them more readable. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 45710ae8c67 | ploop(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 Sukhih | 8663ae54e75 | make_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@951769 | PSBM-23707 | ||
Kir 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 Kolyshkin | 40894498e7b | ploop(8): describe exit codesSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 6cd1074f6cd | ploop(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 Kolyshkin | a75f727f684 | ploop(8): add missing OPTIONS sectionNot sure why it was not there... Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0006ad03661 | STYLE 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 Kolyshkin | 59e4386eb17 | include/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 Kolyshkin | 3c242ca2d25 | Replace 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 Kolyshkin | 3d56c2d7d62 | ploop_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 Kolyshkin | 0088af13617 | Use 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 Kolyshkin | 888f8f598f0 | ploop 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 Kolyshkin | e8749df32d3 | Remove 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 Kolyshkin | 24f2a5731ed | Makefile: add Coverity generation logicSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 9d9c75c8826 | plooptool_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 Kolyshkin | baa3e270faf | ploop(8): improve convert descriptionSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 12117e3c45e | tools/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 Kolyshkin | 49887c80085 | tools/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 Kolyshkin | fc0de741953 | tools/ploop-stat.c: remove global varsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | ba2305f964e | tools/ploop-merge: remove a stand-alone binaryMerge it to ploop binary, keeping the source separate. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 709e49563dd | tools/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 Kolyshkin | e3c5adc343d | tools/ploop-fsck: removeAdd its functionality to tools/ploop.c Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 51eab3fdfe8 | tools/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 Kolyshkin | b2a422fb0de | tools/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 Kolyshkin | 738b35ebc89 | tools/Makefile: simplify SOURCES defineSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 70a5af1e212 | plooptool_init(): fix long linesSigned-off-by: Kir Kolyshkin <kir@openvz.org> |