import_raw_vdi: use vhd-tool helper program

The vhd-tool helper is capable of O_DIRECT I/O and minimises
data copies.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
import_raw_vdi: log output from vhd-tool

This can be useful in diagnosing errors.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
HFX-990: Revert to using Uuid instead of Uuidm

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
HFX-990: Don't package sparse_dd in xapi-core RPM

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
HFX 990: Correct vhd-tool path for 6.0.2 backport

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1532 from simonjbeaumont/ca-118027

[SPARSE_DD_BRANCH] Don't send RPC calls that are too large
CA-120529: Wait for receiver in X-host VDI.copy

The sender was completing the VDI.copy operation after it had sent the last of
the data. This meant that any subsequent operations on the new VDI could fail
with VDI_IN_USE because the datapath on the receiver had yet to be destroyed.

Now we forward the task to the receiving host and wait for it to set it as
complete.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-120529: Propagate VDI.copy receiver failures

If the receiver fails but the sender has already sent all its data then it
would have deemed the copy a success. This is dangerous since we can end up
with VDI corruption on the receiver and the impression that the copy was
successful.

Now we re-raise any errors encountered on the receiver back on the sender side
in the case of cross-host VDI.copy.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1536 from simonjbeaumont/CA-120529

CA-120529: Wait for receiver in X-host VDI.copy
Merge pull request #1539 from xapi-project/hfx-990

[HFX-990]: Make use of vhd-tool package