Use specific utility for Ceph/RADOS conversions
Use specific utility for Ceph/RADOS conversions

The 'Ceph/RADOS' block devices provide an alternative way to transfer
their data when they are used either as source or target devices during
the disk template conversion operation. The rbd utility for manipulating
RADOS block devices contains the 'rbd import' and 'rbd export' commands
for importing and exporting RADOS images.

This patch overrides the default 'dd' functionality for the RADOS block
devices, which will now use their specific utility. The 'rbd import'
operation will try to create sparse rbd images, if possible. Also, when
we make use of the 'access=userspace' option, both commands can be used
to transfer data from/to a RADOS device directly without going through a
block device.

Signed-off-by: Dimitris Bliablias <56dc08131759a716534a4a0da56f0029eaf4af5d@gmail.com>
Signed-off-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>
Reviewed-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>

apyrgio/ganeti,bitemyapp/ganeti,dimara/ganeti,grnet/snf-ganeti,andir/ganeti,mbakke/ganeti,ganeti/ganeti,apyrgio/ganeti,ganeti-github-testing/ganeti-test-1,mbakke/ganeti,bitemyapp/ganeti,yiannist/ganeti,leshchevds/ganeti,mbakke/ganeti,andir/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,onponomarev/ganeti,ganeti/ganeti,dimara/ganeti,onponomarev/ganeti,yiannist/ganeti,andir/ganeti,grnet/snf-ganeti,leshchevds/ganeti,leshchevds/ganeti,yiannist/ganeti