AuthorCommitMessageCommit dateIssues
Aleksandr LeskinAleksandr Leskin
26e49b84217AUTO Version bump to 9.0.25
Aleksandr LeskinAleksandr Leskin
0759d58563elibploop: fixed padding for ploop_resolve_functions #152511Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Aleksandr LeskinAleksandr Leskin
b89d17a3d26AUTO Version bump to 9.0.24
Alexander AtanasovAlexander Atanasov
742b0c2614fploop: check qcow2 images on device umount, #PSBM-152511Implement a check of images when umounting a qcow2 backed device. Fix order of methods in dynload.h - they need to be at the end of the struct. https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
815cc73532fploop: validate images before creating ddxml, #PSBM-152511When creating qcow2 device there is no ddxml so we create it internally - to avoid inconsistencies validate all images provided as arguments. And only if valid build ddxml from them. https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
9d3bc117247ploop: remove support for qcow2 image with specific name, #PSBM-152511Can not use fixed file name when working with multiple images. So remove the support for it. https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
99a203a4901libploop: implement get_img_fd kernel interface, #PSBM-154498It is implemented both in dm-ploop and dm-qcow2 drivers add library support for it. https://virtuozzo.atlassian.net/browse/PSBM-154498 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-154498
Alexander AtanasovAlexander Atanasov
213f3e49fa8libploop: add interface for qcow2 merge backwards, #PSBM-152511implement library function for backward merge of qcow2 images https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
66402a2e32eploop: support replace for qcow2 images, #PSBM-152511support replacing qcow2 images in device mapper device. ploop replace -d /dev/mapper/ploopNNNNN image1.qcow2 [image2.qcow2..] https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
94a97e9fd29libploop: add missing check for failed allocation, #PSBM-152511Check if strdup succeeded and cleanup if not. https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
3e7ccaef707ploop: allow passing a list of images for mounting, #PSBM-152511Introduce -a option to mount a list of qcow2 images. It is important to follow the bottom to top order of deltas. ploop mount -a img1.qcow2 img2.qcow2 .... Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
552d4e805d2libploop: qcow2: support for multiple images, #PSBM-152511Do not use just a single image but process all images referenced in struct ploop_disk_images_data. https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
3d0db3cc6c0libploop: qcow2: load backing store file names, #PSBM-152511To implement basic validation of images order we need to use backing store file names from images. Load and cache so we can perform validation. https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
50bd7cd8d83libploop: introduce helpers for managing runtime data, #PSBM-152511move managing runtime data into helper functions. Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Alexander AtanasovAlexander Atanasov
bac955d8c5dlibploop: introduce helpers for opening list of images,#PSBM-152511struct ploop_disk_images_data is filled from DiskDescriptor.xml but in the case of qcow2 images there is no such file. Build it instead from a list of images provided. https://virtuozzo.atlassian.net/browse/PSBM-152511 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-152511
Aleksandr LeskinAleksandr Leskin
9ae941fbca0AUTO Version bump to 9.0.23
Aleksandr LeskinAleksandr Leskin
6754790742eAUTO Version bump to 9.0.22
Aleksandr LeskinAleksandr Leskin
f95f0a2f134statistics: introduce public function for storing statfs #PSBM-154495Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com> Conflicts: include/dynload.h lib/ploop.cPSBM-154495
Aleksandr LeskinAleksandr Leskin
d129d167582Update targets.list for dist-vz9-u00Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Aleksandr LeskinAleksandr Leskin
9628799c2d0AUTO Version bump to 9.0.21
Aleksandr LeskinAleksandr Leskin
55eed988155MMerge pull request #294 in OVZ/ploop from ~AATANASOV/ploop:PSBM-151232-take2 to master* commit 'ec79248e2bb43fc819cb0275e7f7018adfaba722': ploop: Disable xfs defrag since it only works on files, #PSBM-151232, #PSBM-1515572 Jira Issues
Alexander AtanasovAlexander Atanasov
ec79248e2bbploop: Disable xfs defrag since it only works on files, #PSBM-151232, #PSBM-151557Disable xfs defrag until it works properly We want to defragment filesystem and release unused blocks but xfs_fsr only does defragment files. The problem is that defragmentation process makes copies of each file and allocates more clusters instead of releasing free ones. As a result after the temporary files are removed we observe x5-8 grow of used space on the undelaying device. https://virtu...2 Jira Issues
Aleksandr LeskinAleksandr Leskin
ea7b096efb9AUTO Version bump to 9.0.20
Aleksandr LeskinAleksandr Leskin
edd73540735update target.list for new spec repoSigned-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Alexander AtanasovAlexander Atanasov
66f38fa17dfploop: fix crash on umount when device is not available, #VSTOR-76762On umount a ploop_check is performed on the device and on failure it is retried with the device suspended but during HA event it is possible device to be unavailable and the second check to crash on suspend. Handle gracefuly this situation - do not attempt to suspend a NULL device. https://pmc.acronis.work/browse/VSTOR-76762 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>VSTOR-76762
Aleksandr LeskinAleksandr Leskin
b5442551302AUTO Version bump to 9.0.19
Aleksandr LeskinAleksandr Leskin
eda355fb117ploop: typo fix #PSBM-151232Fix typo for commit: 45fcd9671051293f25fabb8840c3a00c670e706e ploop: fix balloon discard for ext4 and xfs, #PSBM-151232 Alexander Atanasov <alexander.atanasov@virtuozzo.com> Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>PSBM-151232
Aleksandr LeskinAleksandr Leskin
ceb9b8b7178AUTO Version bump to 9.0.18
Aleksandr LeskinAleksandr Leskin
a4628617811AUTO Version bump to 9.0.17
Aleksandr LeskinAleksandr Leskin
a8882008494AUTO Version bump to 9.0.16
Aleksandr LeskinAleksandr Leskin
68108e1fa28update target.listSigned-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Aleksandr LeskinAleksandr Leskin
8099f923bafAUTO Version bump to 9.0.15
Aleksandr LeskinAleksandr Leskin
8ed288e519fAUTO Version bump to 9.0.14
Alexander AtanasovAlexander Atanasov
698af85cba5ploop: reduce defrag tools output when not running on a tty, #PSBM-151232Both defragmentation utilities e4defrag and xfs_fsr produce an output tailored for console with lots of escape sequencies - making progress bar. This confuses the python test tools that collect the output and they timeout. Redirect output to /dev/null to avoid that. xfs_fsr starts to log to syslog if not on a terminal but e4defrag does not have such feature. Both tools do not have quiet mode op...PSBM-151232
Alexander AtanasovAlexander Atanasov
45fcd967105ploop: fix balloon discard for ext4 and xfs, #PSBM-151232ploop ballon discard --defrag is broken for vz9 in several ways: - it uses ploop-e4defrag which is clone of e4defrag with vz7 specific additions and it is not installed by default on vz9. - xfs defragmentation is not implemented. - order of operations is wrong - it first does FITRIM and next defrag. As a result balloon discard worked as a noop. To fix this: - use e4defrag for ext4 defragmentat...PSBM-151232
Alexander AtanasovAlexander Atanasov
76e80701b85ploop: init update help message, #PSBM-151232update help to reflect changed default fs type from ext4 to xfs https://jira.vzint.dev/browse/PSBM-151232 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>PSBM-151232
EfimEfim
a46b653bad4AUTO Version bump to 9.0.13
Alexander AtanasovAlexander Atanasov
3b886cbf8fbploop: do not leak semaphore on failed dm tasks, #VSTOR-75750Currently on error dm_task_run skipped the call to dm_udev_wait. But that leaked a semaphore which was already upped. To fix that always call dm_udev_wait which takes care to down and remove the semaphore. Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>VSTOR-75750
Aleksandr LeskinAleksandr Leskin
0c9e4889024AUTO Version bump to 9.0.12
Andrey ZhadchenkoAndrey Zhadchenko
fbf55df87e5ploop: allow to specify dm target granularity #PSBM-142079Add new argument 'blocksize' for ploop_tg_init(). Currently new dm target granularity is arbitrarily decided by libploop. And we want to be able to provide this parameter, as bitmaps can use different granularity https://jira.vzint.dev/browse/PSBM-142079 Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko@virtuozzo.com>PSBM-142079
Aleksandr LeskinAleksandr Leskin
e341a854da8Updated targets.list for dist-vz9-rc1Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
EfimEfim
15149d05ce6AUTO Version bump to 9.0.11
EfimEfim
b0319d075f3MMerge pull request #289 in OVZ/ploop from ~AATANASOV/ploop:VSTOR-72842v2 to master* commit 'f0642107749210c28b5f9f0272c97e0ad7180237': ploop: clear in use flag when replacing images, #VSTOR-72842 ploop: device mapper replace image check, #VSTOR-72842VSTOR-72842
Alexander AtanasovAlexander Atanasov
f0642107749ploop: clear in use flag when replacing images, #VSTOR-72842In block ploop kernel manages the in use flag, on start/stop in device mapper based ploop it must be managed in userspace tool. When replacing a delta clear in use flag for the old delta, since it is very likely write to that image to fail in real world scenario just log an error and continue. Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>VSTOR-72842
EfimEfim
88108f76d1fAUTO Version bump to 9.0.10
EfimEfim
13d8577c218AUTO Version bump to 9.0.9
Alexander AtanasovEfimAlexander Atanasov
5b4899ce150ploop: device mapper replace image check, #VSTOR-72842Image is check performed twice - first one is too early and with wrong flags. second one is correct and uses the right flags. To fix this remove the first check. https://pmc.acronis.work/browse/VSTOR-72842 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>VSTOR-72842
Alexander AtanasovAlexander Atanasov
22466ae67d2ploop: device mapper replace image check, #VSTOR-72842Image is check performed twice - first one is too early and with wrong flags. second one is correct and uses the right flags. To fix this remove the first check. https://pmc.acronis.work/browse/VSTOR-72842 Signed-off-by: Alexander Atanasov <alexander.atanasov@virtuozzo.com>VSTOR-72842
EfimEfim
ba32ffdb79fAUTO Version bump to 9.0.8
Alexander AtanasovAlexander Atanasov
c28d25744e8ploop: implement dm-ploop replace functionality, #VSTOR-71011Replacing deltas in classic ploop and dm-ploop is very different. Main difference is that since dm-ploop does not expose currently loaded deltas via sysfs it can not support replace without ddxml file. We need to query the driver via get_img_name and match files by name. Other difference is the kernel implementation of the replace one is done by the driver the other is implemented in device map...VSTOR-71011