gluster: Pull truncation from qemu_gluster_create
commit36e87909f8f324a7c442444e5cc02cc5efcdf360
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Feb 2018 13:03:51 +0000 (13 14:03 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 13 Feb 2018 15:18:30 +0000 (13 16:18 +0100)
treee3fde06997a6191ca64aa32f993ee12c2fc9fba1
parent0375003df4153dce7f3ece9285b27427f00f9e01
gluster: Pull truncation from qemu_gluster_create

Pull out the truncation code from the qemu_cluster_create() function so
we can later reuse it in qemu_gluster_truncate().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/gluster.c