CA-108155: fix 64-bit compilation
CP-5600: Do not use full paths for lvm executable.

Moved to /sbin in CentOS 6.4 so avoid to use full paths that does not work.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
CP-5600: Use /dev/mapper names for LVM names.

Former LVM /dev/ naming end up constructing devices in /dev/mapper while
current code put only symlinks here causing snapshot parent names to be
something useless like dm-XX which is not persistent.
The patch instead of getting the real device name try to get a compatible
name.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Merge pull request #44 from freddy77/lvm_fixes

Lvm fixes

Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>
CP-5784: Move blktap packaging files to blktap repository

Currently packaging (Makefile, spec and other related files) are in
guest-packages.hg. Many components depends from blktap so every time
guest-packages.hg is changed this cause rebuilding blktap and every
component depending on it. Mostly of the other components have these
kind of files in the same repository.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Merge pull request #45 from freddy77/include_build

CP-5784: Move blktap packaging files to blktap repository

Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>
CA-113322: let vhd-util-modify canonicalize the parent path passed in.

We shouldn't rely on the caller to always pass in sanctified paths.With
the new dev mapper linking/mapping convention, the realpath function
applied on the caller (SM) won't give the kind of path vhd-util-modify
expects (I'll create another patchset in SM to address this).

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>

GitHub: closes #46 on xapi-project/blktap
SCTX-1536: Option to use the back-up footer instead of the primary one.

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
Reviewed-by: Keith Petley <keith.petley@citrix.com>

GitHub: closes #55 on xapi-project/blktap
CA-116436: Don't access pre-allocated but unwritten BAT entries

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
Reviewed-by: Keith Petley <keith.petley@citrix.com>

GitHub: closes #57 on xapi-project/blktap
CA-116448: Don't die by writing to mem address 0x0, call abort() instead.

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>

GitHub: closes #56 on xapi-project/blktap
CA-113543: Don't spam syslog for benign request failures.

This was most likely a debug print added when the NBD funcionality was
implemented. tapdisk either way complains about failed requests
elsewhere.

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
Acked-by: Germano Percossi <germano.percossi@citrix.com>

GitHub: closes #59 on xapi-project/blktap
EA-1158: rebase blktap3
EA-1158: misc fixes
EA-1128: Renamed NBD fd recv vars for clarity and use a new fd/id pair
for the UNIX domain socket.
EA-1158: use a UUID as the VBD identifier plus other fixes
EA-1158: Use absolute value when reporting error in tap-ctl
EA-1158: Fix warning because of uninitialised var.
EA-1158: Add missing break in switch
CP-5960: Add tapback init.d script

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
Reviewed-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>
CP-5960: RPM pack the tapback init script

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
Reviewed-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>