OpenVZ-legacy
  1. OpenVZ-legacy

ploop.ovzl

Public
AuthorCommitMessageCommit dateIssues
Kir KolyshkinKir Kolyshkin
af435c91f58Released 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 KolyshkinKir Kolyshkin
2e53206b88aploop.spec: add changes for 1.1 to %changelogSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Igor SukhihKir KolyshkinIgor Sukhih
c5f943897fcploop_get_info(): return old info in case statfs() failedReference: ploop@751386
Igor SukhihKir KolyshkinIgor Sukhih
62c7dc5169dexpanded2preallocated: if fallocate not supported, use ftruncateReference: PSBM-12445PSBM-12445
Kir KolyshkinKir Kolyshkin
828e1b19c58lib/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 SukhihKir KolyshkinIgor Sukhih
e979c7d4982Fixed merge all snapshotsIteratively merge top snapshot with the parent one.
Kir KolyshkinKir Kolyshkin
b3761ada848MINOR 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 KolyshkinKir Kolyshkin
ce127dcab04STYLE 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 KolyshkinKir Kolyshkin
b387b26ce8fMINOR fix a few log messagesa discard mode -> discard mode finialize -> finalize Waiting of -> Waiting for Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Andrey VaginKir KolyshkinAndrey Vagin
ec86aa4ffebploop-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 VaginKir KolyshkinAndrey Vagin
f080c972a12Add 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 VaginKir KolyshkinAndrey Vagin
78e20085c0fFinalize 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 VaginKir KolyshkinAndrey Vagin
496d3b60659split 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 VaginKir KolyshkinAndrey Vagin
1fce5ef1443Add 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 SukhihKir KolyshkinIgor Sukhih
505b1facc9fAdded functionality to set component_nameAdded int ploop_set_component_name(struct ploop_disk_images_data *di, const char *component_name); Reference: PSBM-12369PSBM-12369
Kir KolyshkinKir Kolyshkin
a3d81b4a49dresize_fs(): use ploop_log() not ploop_err() for loggingSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
d9e01a2cfe3Fix 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 SukhihKir KolyshkinIgor Sukhih
8c60b2eb161Fix 'failed to create preallocated image'When creating a preallocated image, use ftruncate() if fallocate() is not supported.
Igor SukhihKir KolyshkinIgor Sukhih
e266ed5ba12ploop tool: remove shrink action from usage
Igor SukhihKir KolyshkinIgor Sukhih
165265114b8ploop tool: Fixed ploop mount usageThe mount syntax were changed from base to top
Igor SukhihKir KolyshkinIgor Sukhih
810a10e300fploop_resize_image: Check is it possible to fallocate before inflating balloon file
Igor SukhihKir KolyshkinIgor Sukhih
31aac335f35Fixed 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 SukhihKir KolyshkinIgor Sukhih
fe9d01ad18aploop-fsck: add -d flag to forcefully drop "in use" image flag[kir@: patch splitting]
Igor SukhihKir KolyshkinIgor Sukhih
871793a80d2ploop_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 SukhihKir KolyshkinIgor Sukhih
bd9fb3561deploop_fsck(): refactor flagsUse binary flags for various fsck options. No functionality change. [kir@openvz.org: patch splitting]
Igor SukhihKir KolyshkinIgor Sukhih
7e47931b802Add user_xattr,acl to default mount optionsSo that ACLs and extended attrs will work. Reference: PSBM-12279 Reference: ploop@748388PSBM-12279
Kir KolyshkinKir Kolyshkin
c038b80aa33Added scriptery to do nightly buildsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
d31612a2e92ploop.spec: add dist tag to release, use %name in SourceSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
eccbaf02c39Added 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 KolyshkinKir Kolyshkin
533fb0449e9ploop 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 KirovKir KolyshkinAlexander Kirov
bfb42df0913Added ability to pass MS_NOATIME flagReference: PSBM-11839 Signed-off-by: Kir Kolyshkin <kir@openvz.org>PSBM-11839
Kir KolyshkinKir Kolyshkin
489cf7f3963A log message fixs/delete/Removing/ Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
37c22a5345fploop_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 SchifferdeckerKir KolyshkinThorsten Schifferdecker
bb3948d45daFix missing LIBDIR varLIBDIR vars are missing in Makefile.inc, libs are installed in DESTDIR ;-(
Kir KolyshkinKir Kolyshkin
f416b1a3ceeMakefiles: mark phony targets as suchSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
7286db5047dploop.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 KolyshkinKir Kolyshkin
167917c05ffReleased 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 KolyshkinKir Kolyshkin
5f177ddabfbmerge.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 KolyshkinKir Kolyshkin
0e3bf94d9f5Fix 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 KolyshkinKir Kolyshkin
f1a89d46310lib/*: introduce and use B2S macroThis is the opposite of S2B. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
7d2636ee251lib/merge.c: a whitespace cleanup nitpickSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
da7b4adba24lib/*.c: use S2B macro where possibleInstead of hardcoded '<< 9'. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
9ecb0d24bb4Fixed log messages ("remove" -> "Removing")Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Maxim PatlasovKir KolyshkinMaxim Patlasov
6a17d37e9b2Fix non-aligned pread in open_delta()ploop-resize calls open_delta with O_DIRECT. Consequently pread args should be sector-aligned.
Kir KolyshkinKir Kolyshkin
d03404fb55dtools/ploop-grow.c: fix wrt variable block sizeThis is a forgotten hunk of commit 8f2a7f1. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
c55991ca7eainclude/ploop1_image.h: do not hardcode 9Use supplied define instead Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
4a94b43ed09lib/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 SukhihKir KolyshkinIgor Sukhih
e49f67318caSet default blocksize to 1MReference: PSBM-10074PSBM-10074
Igor SukhihKir KolyshkinIgor Sukhih
bc2f690c75dAdd blocksize validation while creating new image
Igor SukhihKir KolyshkinIgor Sukhih
b1c32f2b8betools/ploop: remove unused and untested replace & add commands