diff options
| author | Bharata B Rao | 2013-12-21 10:21:26 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2014-01-22 12:07:16 +0100 |
| commit | cf7f616b9d846b1cc21c7b692b5c9ff6f757a5e7 (patch) | |
| tree | f8dd0c43828b4f332b3605c91e2555e5c3b6f161 /include | |
| parent | gluster: Implement .bdrv_co_write_zeroes for gluster (diff) | |
| download | qemu-cf7f616b9d846b1cc21c7b692b5c9ff6f757a5e7.tar.gz qemu-cf7f616b9d846b1cc21c7b692b5c9ff6f757a5e7.tar.xz qemu-cf7f616b9d846b1cc21c7b692b5c9ff6f757a5e7.zip | |
gluster: Add support for creating zero-filled image
GlusterFS supports creation of zero-filled file on GlusterFS volume
by means of an API called glfs_zerofill(). Use this API from QEMU to
create an image that is filled with zeroes by using the preallocation
option of qemu-img.
qemu-img create gluster://server/volume/image -o preallocation=full 10G
The allowed values for preallocation are 'full' and 'off'. By default
preallocation is off and image is not zero-filled.
glfs_zerofill() offloads the writing of zeroes to the server and if
the storage supports SCSI WRITESAME, GlusterFS server can issue
BLKZEROOUT ioctl to achieve the zeroing.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
