elastio / elastio-snap

kernel module for taking block-level snapshots and incremental backups of Linux block devices
GNU General Public License v2.0
21 stars 6 forks source link

Implement update-img for Centos8 #269

Closed skypodolsky closed 1 year ago

skypodolsky commented 1 year ago

This PR introduces the working update-img utility and the working test_update_sequence check on Centos 8 + aarch64.

It was found that the update-img utility never actually worked on Centos 8 + aarch64. This was caused by the inconsistency of COW_BLOCK_SIZE in the driver and the utility itself because the last one didn't include the relevant kernel config (kernel-config.h).

Apart from that, the COW file overflow bug was found when __cow_file_extents_zero_fill_ahead was called from multiple places instead of just one (when the driver switches to the dormant state).

Both of these have been fixed in this PR.

Closes #266