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).
This PR introduces the working
update-img
utility and the workingtest_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