Commits
Igor Sukhih authored and Kir Kolyshkin committed 14148e7a39f
check_and_repair_sparse() repair unaligned unwritten extents Fix an issue when an unwritten extent is slit by an unfinished write, resulting in an unaligned extent. Zero the extent to merge it back. Before this fix, the following error was observed: # vzctl start 110683333 Mount image: /vz/private/110683333/root.hdd Failed to mount image /vz/private/110683333/root.hdd: /vz/private/110683333/root.hdd/root.hds (rw): irrecoverable errors Failed to mount image: /vz/private/110683333/root.hdd/root.hds (rw): irrecoverable errors [152] # ploop-check /vz/private/110683333/root.hdd/root.hds Image is clean, check is skipped Delta files /vz/private/110683333/root.hdd/root.hds contains uninitialized blocks (offset=79931899904 len=299008) which are not aligned to cluster size # ploop-check -f /vz/private/110683333/root.hdd/root.hds Delta files /vz/private/110683333/root.hdd/root.hds contains uninitialized blocks (offset=79931899904 len=299008) which are not aligned to cluster size Reviewed-by: mpatlasov Observers: avagin Reference: ploop@953747 Reference: PSBM-24092 Signed-off-by: Kir Kolyshkin <kir@openvz.org>