Skip to content

Commit

Permalink
fix mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Sep 5, 2023
1 parent 99b5fae commit 730f7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtnbd-nbdkit-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def pread(h, buf, offset, flags):
log(f"DATA-RANGE: {dataRange}")
log(f"BLOCK-RANGE: {blockRange}")

if dataRange < blockRange:
if dataRange < blockRange or dataRange == blockRange:
if isData is False:
log("handle zero")
data += b"\0" * len(buf)
Expand Down

0 comments on commit 730f7e3

Please sign in to comment.