mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
This patch resurrects11a63a166. The previous patch had a bug that wrong "physical-device" was written to xenstore causing block script execution fail. This patch fixes that problem. Following configurations have been tested: 1. Raw file and PV 2. Raw file and HVM 3. Block device and PV 4. Block device and HVM Creation / destruction / local migration all worked. Original commit message from11a63a166: Modify libxl and hotplug script to allow raw format file to use phy backend. The block script now tests the path and determine the actual type of file (block device or regular file) then use the actual type to determine which branch to run. With these changes, plus the current ordering of backend preference (phy > qdisk > tap), we will use phy backend for raw format file by default. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>