Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1696211 - 'qemu-img map' for an image file over NBD fails
Summary: 'qemu-img map' for an image file over NBD fails
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.0
Assignee: Eric Blake
QA Contact: Tingting Mao
Depends On:
TreeView+ depends on / blocked
Reported: 2019-04-04 10:54 UTC by Tingting Mao
Modified: 2019-04-08 07:54 UTC (History)
11 users (show)

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

Attachments (Terms of Use)

Description Tingting Mao 2019-04-04 10:54:27 UTC
Description of problem:
'qemu-img map' for a image image over NBD fails.

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

How reproducible:

Steps to Reproduce:

1.Create a image file and export it by NBD
# qemu-img create -f raw test.img 512M 
Formatting 'test.img', fmt=raw size=536870912
# qemu-nbd -f raw -p 9000 test.img -t

2. Dump the metadata of the image
# qemu-img map nbd:localhost:9000

Actual results:
# qemu-img map nbd:localhost:9000
Offset          Length          Mapped to       File
qemu-img: File contains external, encrypted or compressed clusters.

# qemu-nbd -f raw -p 9000 test.img -t
Disconnect client, due to: Unexpected end-of-file before all bytes were read

Expected results:
Dump the metadata successfully, and there is no error info from the server.

Additional info:

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