]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: encode an empty data_bl for empty sparse reads 67356/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 13 Jan 2026 19:32:14 +0000 (20:32 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 15 Feb 2026 19:51:05 +0000 (20:51 +0100)
commit2dc0f00a9202335cf44bd83c7a704c422b8f4383
tree1c934341108837812a5bf013e201158ba0a80a6f
parent283431c091dafc302f5753f809d0bd1eddce0869
osd/PrimaryLogPG: encode an empty data_bl for empty sparse reads

Commit 0cf383da0741 ("ReplicatedPG: clamp SPARSE_READ to object size
for ec pool") didn't handle the case of a sparse read that ends up
being empty correctly: the OSD encodes only an empty extent map whereas
clients (both userspace and kernel) also expect to see an empty data
buffer.  IOW the reply contains one 32-bit zero instead of the expected
two.

Fixes: https://tracker.ceph.com/issues/74394
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit c694c35bbfce6e3033b34fe6994b40b00fad11d9)
src/osd/PrimaryLogPG.cc