Bug 2189341 - libnbd should support NBD 64-bit extensions
Summary: libnbd should support NBD 64-bit extensions
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libnbd
Version: 9.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Eric Blake
QA Contact: tingting zheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-24 21:10 UTC by Eric Blake
Modified: 2023-04-25 10:30 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-155589 0 None None None 2023-04-24 21:11:53 UTC

Description Eric Blake 2023-04-24 21:10:05 UTC
Description of problem:
Upstream NBD has finally accepted a spec change for 64-bit extensions (still listed as experimental until there are enough implementations; but BZ 2182208 tracks implementing the same extensions in qemu).  Libnbd has a proof-of-concept implementation that now needs to be polished and incorporated.
https://listman.redhat.com/archives/libguestfs/2022-November/030316.html

Version-Release number of selected component (if applicable):
v1.16

How reproducible:
100%

Steps to Reproduce:
1. Create a 5G image, serve it over qemu-nbd (or qemu-storage-daemon) patched for 64-bit extensions, then use libnbd to connect to it and issue a 64-bit write zero or block status command.
3.

Actual results:
Without extension support, libnbd will flag the request as being oversized

Expected results:
With the extension active in both client and server, requests larger than 32-bit effect length should be possible

Additional info:


Note You need to log in before you can comment on or make changes to this bug.