From e73817b22649b2045f40a3801a8367c9d8321b6c Mon Sep 17 00:00:00 2001 From: Wang Chao Date: Thu, 24 Oct 2024 09:10:44 +0800 Subject: [PATCH] pybind/rados: add note for reversed arguments to WriteOp.zero() Signed-off-by: Wang Chao (cherry picked from commit e9ca8a01323d49c656c54d622a34280adc5b244b) --- PendingReleaseNotes | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 444c0b478f80..c1289d2fd10f 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -58,6 +58,10 @@ fuse client for `fallocate` for the default case (i.e. mode == 0) since CephFS does not support disk space reservation. The only flags supported are `FALLOC_FL_KEEP_SIZE` and `FALLOC_FL_PUNCH_HOLE`. +* pybind/rados: Fixes WriteOp.zero() in the original reversed order of arguments + `offset` and `length`. When pybind calls WriteOp.zero(), the argument passed + does not match rados_write_op_zero, and offset and length are swapped, which + results in an unexpected response. >=19.2.2 -- 2.47.3