Commits
Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Kir Kolyshkin | af435c91f58 | Released ploop 1.2CHANGES (since 1.1) * Added ploop_get_dev() function * Added ploop_set_component_name() function * Fix: do not clear in-use flag in ploop_fsck() * ploop-fsck: add -d flag to forcefully drop "in use" image flag * Fixed handling blocksize for raw images * Added user_xattr,acl to default mount options * ploop_mount(): added ability to pass MS_NOATIME flag * ploop-balloon: add discard command to co... | |||
Kir Kolyshkin | 2e53206b88a | ploop.spec: add changes for 1.1 to %changelogSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Igor Sukhih | c5f943897fc | ploop_get_info(): return old info in case statfs() failedReference: ploop@751386 | |||
Igor Sukhih | 62c7dc5169d | expanded2preallocated: if fallocate not supported, use ftruncateReference: PSBM-12445 | PSBM-12445 | ||
Kir Kolyshkin | 828e1b19c58 | lib/ploop.c: fix 32-bit compiler warningploop.c: In function ‘ploop_resize_image’: ploop.c:1499:4: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘off_t’ [-Werror=format] cc1: all warnings being treated as errors Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Igor Sukhih | e979c7d4982 | Fixed merge all snapshotsIteratively merge top snapshot with the parent one. | |||
Kir Kolyshkin | b3761ada848 | MINOR Change 'f.e.' to 'e.g.' in ploop-balloon usageThere is no such thing as 'f.e.' in English, they either use 'for example' or 'e.g.' which is an abbreviation of exempli gratia, "for example" in Latin. Towards better English^W Latin! Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | ce127dcab04 | STYLE fix a few function namess/baloon/balloon/ for following function names: - ploop_baloon_relocation - ploop_baloon_complete - ploop_baloon_check_and_repair Fortunately they are all internal so no change in API. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b387b26ce8f | MINOR fix a few log messagesa discard mode -> discard mode finialize -> finalize Waiting of -> Waiting for Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Andrey Vagin | ec86aa4ffeb | ploop-balloon: add discard commandAcked-by: "Maxim V. Patlasov" <mpatlasov@openvz.org> Acked-by: Igor Sukhih <igor@openvz.org> Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Andrey Vagin | f080c972a12 | Add ability to compact ploop deviceploop-balloon forks a process, which calls FITRIM on a file system and the main process handles discard requests. Acked-by: "Maxim V. Patlasov" <mpatlasov@openvz.org> Acked-by: Igor Sukhih <igor@openvz.org> Signed-off-by: Andrey Vagin <avagin@openvz.org> | |||
Andrey Vagin | 78e20085c0f | Finalize discard mode in ploop_balloon_completeAcked-by: "Maxim V. Patlasov" <mpatlasov@openvz.org> Acked-by: Igor Sukhih <igor@openvz.org> Signed-off-by: Andrey Vagin <avagin@openvz.org> | |||
Andrey Vagin | 496d3b60659 | split ploop_balloon into two partsThe fist part completes relocation and the second part switches ploop into MNTN_OFF. Acked-by: "Maxim V. Patlasov" <mpatlasov@openvz.org> Acked-by: Igor Sukhih <igor@openvz.org> Signed-off-by: Andrey Vagin <avagin@openvz.org> | |||
Andrey Vagin | 1fce5ef1443 | Add discard constants to headerSync with the kernel header Acked-by: "Maxim V. Patlasov" <mpatlasov@openvz.org> Acked-by: Igor Sukhih <igor@openvz.org> Signed-off-by: Andrey Vagin <avagin@openvz.org> | |||
Igor Sukhih | 505b1facc9f | Added functionality to set component_nameAdded int ploop_set_component_name(struct ploop_disk_images_data *di, const char *component_name); Reference: PSBM-12369 | PSBM-12369 | ||
Kir Kolyshkin | a3d81b4a49d | resize_fs(): use ploop_log() not ploop_err() for loggingSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | d9e01a2cfe3 | Fix ploop info outputIt was like this: resource Size Used 1k-blocks 2268760 720424 inodes 144288 24384 Note that "Used" header is not aligned properly. Fix it. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Igor Sukhih | 8c60b2eb161 | Fix 'failed to create preallocated image'When creating a preallocated image, use ftruncate() if fallocate() is not supported. | |||
Igor Sukhih | e266ed5ba12 | ploop tool: remove shrink action from usage | |||
Igor Sukhih | 165265114b8 | ploop tool: Fixed ploop mount usageThe mount syntax were changed from base to top | |||
Igor Sukhih | 810a10e300f | ploop_resize_image: Check is it possible to fallocate before inflating balloon file | |||
Igor Sukhih | 31aac335f35 | Fixed handling blocksize for raw images* added -b <blocksize> mount option to specify blocksize for raw images * if blocksize is not specified, use one from DiskDescriptor.xml, otherwise fail [kir@: whitespace nitpicks, fixed usage_mount()] | |||
Igor Sukhih | fe9d01ad18a | ploop-fsck: add -d flag to forcefully drop "in use" image flag[kir@: patch splitting] | |||
Igor Sukhih | 871793a80d2 | ploop_fsck(): introduce FSCK_DROPINUSE flagDrop image "in use" flag only if FSCK_DROPINUSE flag is set. This flag is set by ploop_mount() if mounting is done by DiskDescriptor.xml (in this case proper locking is supposed to be done via /dev/ploop/* entries). [kir@: patch splitting] | |||
Igor Sukhih | bd9fb3561de | ploop_fsck(): refactor flagsUse binary flags for various fsck options. No functionality change. [kir@openvz.org: patch splitting] | |||
Igor Sukhih | 7e47931b802 | Add user_xattr,acl to default mount optionsSo that ACLs and extended attrs will work. Reference: PSBM-12279 Reference: ploop@748388 | PSBM-12279 | ||
Kir Kolyshkin | c038b80aa33 | Added scriptery to do nightly buildsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | d31612a2e92 | ploop.spec: add dist tag to release, use %name in SourceSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | eccbaf02c39 | Added ploop_get_dev()This is almost the same as ploop_find_dev_by_uuid() but for external use. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 533fb0449e9 | ploop tool: fix indentation in usage_*()Things like this: -t - file system type -m - target mount point Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Alexander Kirov | bfb42df0913 | Added ability to pass MS_NOATIME flagReference: PSBM-11839 Signed-off-by: Kir Kolyshkin <kir@openvz.org> | PSBM-11839 | ||
Kir Kolyshkin | 489cf7f3963 | A log message fixs/delete/Removing/ Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 37c22a5345f | ploop_err(): add function name, source file name and line numberIn case we are compiling with DEBUG Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Thorsten Schifferdecker | bb3948d45da | Fix missing LIBDIR varLIBDIR vars are missing in Makefile.inc, libs are installed in DESTDIR ;-( | |||
Kir Kolyshkin | f416b1a3cee | Makefiles: mark phony targets as suchSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 7286db5047d | ploop.spec: move lockdir to ploop-lib packagelockdir is required by library functions. Also add lockdir installation to lib/Makefile, so system build by 'make install' will work, too. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 167917c05ff | Released ploop 1.1CHANGES (since 1.0) * support for variable block size * default block size changed from 256K to 1M * ploop_set_log_file(): make NULL a valid argument * logger: introduce, use and expose PLOOP_LOG_NOCONSOLE * ploop_getdevice(): expose * ploop_store_diskdescriptor(): fix for a case when image is in root dir * Fixed expanded to preallocated conversion * Remove some unused functions and non-existen... | |||
Kir Kolyshkin | 5f177ddabfb | merge.c: fix a compiler warningmerge.c: In function ‘merge_image’: merge.c:363:27: error: ‘prev_blocksize’ may be used uninitialized in this function [-Werror=uninitialized] cc1: all warnings being treated as errors Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0e3bf94d9f5 | Fix a compiler warningploop.c: In function ‘ploop_mount’: ploop.c:1130:14: error: ‘prev_blocksize’ may be used uninitialized in this function [-Werror=uninitialized] In fact it's a bit too complicated for gcc to understand Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | f1a89d46310 | lib/*: introduce and use B2S macroThis is the opposite of S2B. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 7d2636ee251 | lib/merge.c: a whitespace cleanup nitpickSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | da7b4adba24 | lib/*.c: use S2B macro where possibleInstead of hardcoded '<< 9'. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 9ecb0d24bb4 | Fixed log messages ("remove" -> "Removing")Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Maxim Patlasov | 6a17d37e9b2 | Fix non-aligned pread in open_delta()ploop-resize calls open_delta with O_DIRECT. Consequently pread args should be sector-aligned. | |||
Kir Kolyshkin | d03404fb55d | tools/ploop-grow.c: fix wrt variable block sizeThis is a forgotten hunk of commit 8f2a7f1. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | c55991ca7ea | include/ploop1_image.h: do not hardcode 9Use supplied define instead Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 4a94b43ed09 | lib/ploop.h: add parentheses around S2B macro argumentVery useful in case of say S2B(a + b) Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Igor Sukhih | e49f67318ca | Set default blocksize to 1MReference: PSBM-10074 | PSBM-10074 | ||
Igor Sukhih | bc2f690c75d | Add blocksize validation while creating new image | |||
Igor Sukhih | b1c32f2b8be | tools/ploop: remove unused and untested replace & add commands |