Commit 41d995b
rbd: fix DiffIterateByID Length to exclude startingOffset
The Length parameter in DiffIterateByIDConfig was set to the full
VolSize, but rbd_diff_iterate3 treats len as the number of bytes
to scan from ofs. When startingOffset > 0, this caused the scan
range to extend past the image end (scanning [startingOffset,
startingOffset + VolSize) instead of [startingOffset, VolSize)).
Fix by subtracting startingOffset from VolSize to get the correct
scan length.
Ref: kaovilai/cephcsi-cbt-e2e#2
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>1 parent b2f6300 commit 41d995b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments