Bug 1315654 - unable to create preallocated images with gluster native driver for qemu
unable to create preallocated images with gluster native driver for qemu
Status: NEW
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfs-devel (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Chris Wright
: ZStream
Depends On:
  Show dependency treegraph
Reported: 2016-03-08 06:03 EST by SATHEESARAN
Modified: 2017-03-25 12:26 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description SATHEESARAN 2016-03-08 06:03:32 EST
Description of problem:
qemu has got a gluster native driver implemented with gluster api.

When an attempt was made to create a preallocated image with qemu-img command,
the image creation happens but not preallocated.

version-Release number of selected component (if applicable):
RHEL 6.7
RHGS 3.1.2

How reproducible:

Steps to Reproduce:
1. Create a preallocated image using gluster native driver using qemu-img command

(i.e) qemu-img create -f qcow2 -o preallocation=full gluster://<gluster-server>/<volume>/vm1.img 10G

Actual results:
Image gets created but its not preallocated fully

Expected results:
Image should get preallocated

Additional info:
[root@ ]# qemu-img create -f qcow2 -o preallocation=full gluster://localhost/rep3vol/vm1.img 5G
Formatting 'gluster://dhcp37-61.lab.eng.blr.redhat.com/rep3vol/newvm3.img', fmt=qcow2 size=3221225472 encryption=off cluster_size=65536 preallocation='full'
Unknown option 'preallocation'

I could inspect the image using qemu-img info, but still its not preallocated,

[root@ ]# qemu-img info newvm3.img
image: newvm3.img
file format: qcow2
virtual size: 3.0G (3221225472 bytes)
disk size: 588K
cluster_size: 65536

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