AuthorCommitMessageCommit dateIssues
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
Igor SukhihIgor Sukhih
d8e2e098e9aAutomatic filesystem repair #PSBM-95789Added functionality to pass '-y' option to fsck.ext4 Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-95789
Igor SukhihIgor Sukhih
30db713354dAUTO Version bump to 7.0.157
Igor SukhihIgor Sukhih
e2d88240d0bMMerge pull request #108 in OVZ/ploop from ~IGOR/ploop:master to master* commit '58b1214aae7fa7b5c3dc2a442adf0c8204ff126f': get_fs_info(): report SYSEXIT_NO_FSSTAT error #PSBM-95386PSBM-95386
Igor SukhihIgor Sukhih
58b1214aae7get_fs_info(): report SYSEXIT_NO_FSSTAT error #PSBM-95386Return SYSEXIT_FSTAT error in case we can not collect fs stat. Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-95386
Igor SukhihIgor Sukhih
baa2b7750daAUTO Version bump to 7.0.156
Igor SukhihIgor Sukhih
69373987352Revert "ploop shrink: discard balloon blocks directly #PSBM-94855"This reverts commit a32770b95bed9172f6999d3cf9f6ebd98da38fb2. https://jira.sw.ru/browse/PSBM-953132 Jira Issues
Igor SukhihIgor Sukhih
c1bf66175e5AUTO Version bump to 7.0.155
Igor SukhihIgor Sukhih
0f6249d9c74MMerge pull request #107 in OVZ/ploop from ~IGOR/ploop:master to master* commit '59b85cec31a4a5521383b5a569309f6a409590be': ploop_resize_image(): Error in ioctl(BLKDISCARD): Invalid argument #PSBM-95314PSBM-95314
Igor SukhihIgor Sukhih
59b85cec31aploop_resize_image(): Error in ioctl(BLKDISCARD): Invalid argument #PSBM-95314fixed typo - ret = ploop_get_size(devname, &part_dev_size); + ret = ploop_get_size(partname, &part_dev_size); Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-95314
Igor SukhihIgor Sukhih
91ead887091AUTO Version bump to 7.0.154
Igor SukhihIgor Sukhih
1a860e64709MMerge pull request #106 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'be00050fa424364825e8f71c558ddce7067ae2ee': get_part_devname(): incorrect device name #PSBM-95286PSBM-95286
Igor SukhihIgor Sukhih
be00050fa42get_part_devname(): incorrect device name #PSBM-95286device name is not updated Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-95286
Igor SukhihIgor Sukhih
e63bbbeec6cAUTO Version bump to 7.0.153
Igor SukhihIgor Sukhih
7c38ffc3884MMerge pull request #105 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'a32770b95bed9172f6999d3cf9f6ebd98da38fb2': ploop shrink: discard balloon blocks directly #PSBM-94855PSBM-94855
Igor SukhihIgor Sukhih
a32770b95beploop shrink: discard balloon blocks directly #PSBM-94855On ploop with native discard supported, we punch holes in a file directly from kernel. So, we won't get free blocks related to balloon in userspace. It looks like, on online shrink we should do the following in userspace: 1)get balloon extents via fiemap; 2)issue blkdev discard into such the blocks [fe_physical, fe_physical+fe_length] aligned to cluster size (start -- aligned up, end -- aligne...PSBM-94855
Konstantin BukharovKonstantin Bukharov
0c171c03b47MMerge pull request #104 in OVZ/ploop from ~IGOR/ploop:master to master* commit '6ced309482f77a7abe882989c071b0c1cd0c2999': Update Copyright
Igor SukhihIgor Sukhih
6ced309482fUpdate CopyrightCopyright (c) 2017-2019 Virtuozzo International GmbH. All rights reserved. Signed-off-by: Igor Sukhih <igor@virtuozzo.com>
Konstantin BukharovKonstantin Bukharov
df57b39a76aAUTO Version bump to 7.0.152
Konstantin BukharovKonstantin Bukharov
818ac4ae190MMerge pull request #103 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'fd5e7d0c8759fa08b2ba1d1515aef041553ea4ac': failed to start push backup: operation with mnt_type=0 in progress #PSBM-94718PSBM-94718
Igor SukhihIgor Sukhih
fd5e7d0c875failed to start push backup: operation with mnt_type=0 in progress #PSBM-94718maintanence state PLOOP_MNTN_BALLOON was not dropped in native disacrd mode on image shrink Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-94718
Igor SukhihIgor Sukhih
31d7422c118AUTO Version bump to 7.0.151
Igor SukhihIgor Sukhih
efbfcbcb26fMMerge pull request #102 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'b0ccd009d6c14c78fdf3f44bd1ac43848ea3c593': Introduce ploop disacrd mode #PSBM-94639 fill_hole(): remove is_native_discard() condition fill_hole(): logging enhancementPSBM-94639
Igor SukhihIgor Sukhih
b0ccd009d6cIntroduce ploop disacrd mode #PSBM-94639A new file /sys/block/ploopXXX/pstate/discard_mode as added to indicate, whether we support discard or not on a specific partition. Possible values are: 0 - discard disabled (not implemented) -- do nothing in pcompact (maybe, print some info for user) 1 - maintaince mode-based discard -- old ioctls scheme should be used 2 - hole-based discard -- only FITRIM is needed 3 - move-tail-block disca...PSBM-94639
Igor SukhihIgor Sukhih
b99a2002c95fill_hole(): remove is_native_discard() conditionThe repair sparce logic do not depends on discard mode Signed-off-by: Igor Sukhih <igor@virtuozzo.com>
Igor SukhihIgor Sukhih
188f8b77bf5fill_hole(): logging enhancementprint error message about sparce repair only in case real zeroing Signed-off-by: Igor Sukhih <igor@virtuozzo.com>
Igor SukhihIgor Sukhih
b585206895bMMerge pull request #101 in OVZ/ploop from ~IGOR/ploop:master to master* commit '2ab0939882ad491fef0530ae9f083be16ff33cf5': Error in __ploop_discard (balloon.c:1110): Can't filter free blocks: Invalid argument #PSBM-94727PSBM-94727
Igor SukhihIgor Sukhih
2ab0939882aError in __ploop_discard (balloon.c:1110): Can't filter free blocks: Invalid argument #PSBM-94727The keep_intact=1 do state modification in some cases Lets introduce keep_intact=2 mode keep ploop mantainence unchanged Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-94727
Igor SukhihIgor Sukhih
754919c1564AUTO Version bump to 7.0.150
Igor SukhihIgor Sukhih
01ccd8fee61MMerge pull request #100 in OVZ/ploop from ~IGOR/ploop:master to master* commit 'ccfbacce500a53aaba221635288317930bc881ff': Error in ioctl(PLOOP_IOC_FREEBLKS): Invalid argument #PSBM-94597PSBM-94597
Igor SukhihIgor Sukhih
ccfbacce500Error in ioctl(PLOOP_IOC_FREEBLKS): Invalid argument #PSBM-94597Do not use old logic in ploop_balloon_change_size() if native discard supported Signed-off-by: Igor Sukhih <igor@virtuozzo.com>PSBM-94597
Igor SukhihIgor Sukhih
4baa533114aAUTO Version bump to 7.0.149
Igor SukhihIgor Sukhih
b05b7c6c903MMerge pull request #99 in OVZ/ploop from ~IGOR/ploop:master to master* commit '934422fea1b701769fbb916c718a601d4dc93cad': Unable to get discard granularity #PSBM-94425PSBM-94425