]> xenbits.xensource.com Git - xen.git/commit
libxl, hotplug/Linux: default to phy backend for raw format file
authorWei Liu <wei.liu2@citrix.com>
Thu, 5 Sep 2013 14:11:31 +0000 (15:11 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 13 Sep 2013 10:09:21 +0000 (11:09 +0100)
commit11a63a1660453269ddd1893c15d0a98133b33ca7
tree36896e07fb2166b7f832e19e5fba5e5929864439
parentcadbe2f9e768585fad52156be2433d49ec9feaf1
libxl, hotplug/Linux: default to phy backend for raw format file

Modify libxl to allow raw format file to use phy backend.

For the hotplug script part, learn from NetBSD's block hotplug script --
test 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: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/block
tools/libxl/libxl_linux.c