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

Fix test_track_writes failure #278

Closed skypodolsky closed 1 year ago

skypodolsky commented 1 year ago

Long story short, it was proven to be not a bug but rather an incorrect test.

In some cases, we write to the sector already being tracked, which results in a non-incrementing nr_changed_blocks counter. That happened because a small amount of data was written (about 15 bytes) and the chances of writing to the tracked sector were relatively high. The fix is to write more to increase the probability of writing to the sector which isn't tracked.

Closes #167