AuthorCommitMessageCommit dateIssues
Igor SukhihIgor Sukhih
d1ea58ddbd2AUTO Version bump to 7.0.172
Igor SukhihIgor Sukhih
9bae8c5d981range_build_rmap(): fixed reverse array size calculation- if (max && rmap[ridx] > *max) - *max = rmap[ridx]; + if (max && ridx > *max) + *max = ridx; Signed-off-by: Igor Sukhih <igor@virtuozzo.com>
Igor SukhihIgor Sukhih
14355a38227AUTO Version bump to 7.0.171
Igor SukhihIgor Sukhih
e5cb53a97bdMMerge pull request #134 in OVZ/ploop from ~IGOR/ploop:master to master* commit '9a531bd59b844a4c08cdf0553925e363e8ba951c': CBT dropped on image mount #PSBM-100989PSBM-100989
Igor SukhihIgor Sukhih
9a531bd59b8CBT dropped on image mount #PSBM-100989CBT stored at the end of image and have ho refference in BAT. So it needed to iterate to max allocated index in BAT Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-100989
Igor SukhihIgor Sukhih
cbdd3212270MMerge pull request #133 in OVZ/ploop from ~IGOR/ploop:master to master* commit '4f89722695cdca7e9da2f58fa3e497b57de9706b': fill_hole(): access memory beyond end of array
Igor SukhihIgor Sukhih
4f89722695cfill_hole(): access memory beyond end of arrayAdd check for 'rmap' array size. Signed-off-by: Igor Sukhih <igor@virtuozzo.com>
Igor SukhihIgor Sukhih
5ef304af75dAUTO Version bump to 7.0.170
Igor SukhihIgor Sukhih
a5ae2cf1dfbMMerge pull request #132 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'ca3be3c48c24a38f3a627f690e12e24f054f2ff8': check_and_repair(): use fstat() to get image size #PSBM-100975PSBM-100975
Igor SukhihIgor Sukhih
ca3be3c48c2check_and_repair(): use fstat() to get image size #PSBM-100975Broken by commit "check_and_repair(): incorect end of file calculated #PSBM-100873" Signed-off-by: Igor Sukhih <igor@virtuozzo.com>2 Jira Issues
Igor SukhihIgor Sukhih
0994c45da9aAUTO Version bump to 7.0.169
Igor SukhihIgor Sukhih
e7046153ffbMMerge pull request #131 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'c2e7e25e8951fb735ae6cf687a9eaf65e14f3d9f': check_and_repair(): incorect end of file calculated #PSBM-100873 Revert "range_build_rmap(): incorect max filled index returned #PSBM-1009592 Jira Issues
Igor SukhihIgor Sukhih
c2e7e25e895check_and_repair(): incorect end of file calculated #PSBM-100873The range_build_rmap() return number of found entries but not array length Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-100873
Igor SukhihIgor Sukhih
81d45a4342eRevert "range_build_rmap(): incorect max filled index returned #PSBM-100959This reverts commit 823a2d2635366d0e5c5da3fb03c0a50c85e00ae9.PSBM-100959
Igor SukhihIgor Sukhih
d1a077cc2f9MMerge pull request #130 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'deb754c298ef271b43619f2079c0e931930de2f6': Add tools/ploop-test.c Implement a way to shuffle ploop clusters for test #PSBM-100773PSBM-100773
Igor SukhihIgor Sukhih
deb754c298eAdd tools/ploop-test.cSigned-off-by: Igor Sukhih <igor@virtuozzo.com>
Igor SukhihIgor Sukhih
340afe2497fImplement a way to shuffle ploop clusters for test #PSBM-100773Move cluster beyond the boundaries of ploop device $ ploop-test shuffle [-n num] <IMAGE> Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-100773
Igor SukhihIgor Sukhih
4bda3b9f567AUTO Version bump to 7.0.168
Igor SukhihIgor Sukhih
823a2d26353range_build_rmap(): incorect max filled index returned #PSBM-100873After holes in ploop image was introduced 'n_found++' logic became incorrect Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-100873
Igor SukhihIgor Sukhih
a23ea9d82c5AUTO Version bump to 7.0.167
Igor SukhihIgor Sukhih
9ce66faa944MMerge pull request #126 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'cbba7b8aa3e1bb1fce4776a05c0d583b1ca9b0ad': check_and_repair(): fix repair raw image #PSBM-100719PSBM-100719
Igor SukhihIgor Sukhih
cbba7b8aa3echeck_and_repair(): fix repair raw image #PSBM-100719there no header for raw image. Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-100719
Igor SukhihIgor Sukhih
6e1821bd58aAUTO Version bump to 7.0.166
Igor SukhihIgor Sukhih
47d015b1e78MMerge pull request #124 in OVZ/ploop from ~IGOR/ploop:master to master* commit '387268766cc806f46f500aab59d0007c0e3c5f0a': ploop-check: added defrag option ploop_check(): log ftruncate() parameters
Igor SukhihIgor Sukhih
387268766ccploop-check: added defrag optionploop-check -D fname Signed-off-by: Igor Sukhih <igor@virtuozzo.com>
Igor SukhihIgor Sukhih
884f92de6e6ploop_check(): log ftruncate() parametersSigned-off-by: Igor Sukhih <igor@virtuozzo.com>
Igor SukhihIgor Sukhih
2813bec7658AUTO Version bump to 7.0.165
Igor SukhihIgor Sukhih
bddff29c94fMMerge pull request #123 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'e5f35d6b6aaf2f4ed31fd6fb52e02c6abbd1a26e': Repair ploop image with cluster block outside device #PSBM-10012PSBM-10012
Igor SukhihIgor Sukhih
e5f35d6b6aaRepair ploop image with cluster block outside device #PSBM-10012There is bug in kernel that allocate cluster block out of ploop image device size. Add logic to move such block to non allocated space on ploop image mount. Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-10012
Igor SukhihIgor Sukhih
c3a0d937bddAUTO Version bump to 7.0.164
Igor SukhihIgor Sukhih
7ea93db97dcMMerge pull request #122 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'ebdb68b7f5c08e576d399cd1fb94b20b6d360f55': Automerge snapshot in case crash #PSBM-99949PSBM-99949
Igor SukhihIgor Sukhih
ebdb68b7f5cAutomerge snapshot in case crash #PSBM-99949Mark deleted snapshot as temporary to detect failed merge and complete it. Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-99949
Igor SukhihIgor Sukhih
729e0f51d30AUTO Version bump to 7.0.163
Igor SukhihIgor Sukhih
66892a8f880MMerge pull request #114 in OVZ/ploop from ~IGOR/ploop:master to master* commit '4c059ddb7d1ce9821eb31e03f4b4056d7ba73fc4': check_and_repair(): last cluster block is not processed #PSBM-98065PSBM-98065
Igor SukhihIgor Sukhih
4c059ddb7d1check_and_repair(): last cluster block is not processed #PSBM-98065Fixed end of image file calculation Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-98065
Igor SukhihIgor Sukhih
cfd7a559e3eAUTO Version bump to 7.0.162
Igor SukhihIgor Sukhih
4c2b1be669cMMerge pull request #113 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'ef7d504da19c7fe253bc74f858950ad3a277c56c': Optional header dropped from image #PSBM-97955PSBM-97955
Igor SukhihIgor Sukhih
ef7d504da19Optional header dropped from image #PSBM-97955In commit cd018cab37 the restore holes logic was introduced. Errorneously we do iteration up to end of file but should be up to end of MAX offset in BAT. So optional header was not found in the BAT and truncated. Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-97955
Igor SukhihIgor Sukhih
0f6cea49dd7AUTO Version bump to 7.0.161
Igor SukhihIgor Sukhih
960ce13cb48MMerge pull request #112 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'cd018cab37c814ffa3fe559fc74f4e8a7f428f96': image size is much greater than used data #PSBM-97085PSBM-97085
Igor SukhihIgor Sukhih
cd018cab37cimage size is much greater than used data #PSBM-97085We use holes to remove unused space from image, but they could be filled back by some third party tools (tar,rsync ...). Introduce holes recovery logic, if block marked as unused in the BAT but use disk space in the image then make hole by fallocate(FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE) call Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-97085
Igor SukhihIgor Sukhih
8c6ba4fb82aAUTO Version bump to 7.0.160
Igor SukhihIgor Sukhih
13fde78af2eMMerge pull request #111 in OVZ/ploop from ~IGOR/ploop:master to master* commit '8e9f8354677940d9951b46c54461613266981ce9': ploop_balloon_complete(): use keep_intact = 2 to query state ploop_balloon_relocation(): wait for PLOOP_IOC_RELOCBLKS completion #PSBM-96143PSBM-96143
Igor SukhihIgor Sukhih
8e9f8354677ploop_balloon_complete(): use keep_intact = 2 to query stateTo not modify kernel maintainance state
Igor SukhihIgor Sukhih
d935ccc0132ploop_balloon_relocation(): wait for PLOOP_IOC_RELOCBLKS completion #PSBM-96143retry ioctl(PLOOP_IOC_RELOCBLKS) on EINTR otherwise we will stay in PLOOP_MNTN_RELOC state Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-96143
Igor SukhihIgor Sukhih
9bf4709c18bAUTO Version bump to 7.0.159
Igor SukhihIgor Sukhih
2ef6677dd68MMerge pull request #110 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'bd1c7cf2b4e324c43afbb5f064cffeece373df51': Switch to file system defragmentation mode #PSBM-96172PSBM-96172
Igor SukhihIgor Sukhih
bd1c7cf2b4eSwitch to file system defragmentation mode #PSBM-96172struct ploop_discard_param { int defrag; /* 0-compact only, 1-defrag&compact, 2-defrag only */ Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-96172
Igor SukhihIgor Sukhih
8cd499067baAUTO Version bump to 7.0.158
Igor SukhihIgor Sukhih
9cdb19e4c29MMerge pull request #109 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'd8e2e098e9ab1969c70ddc7dd84338cea7b32a91': Automatic filesystem repair #PSBM-95789PSBM-95789