[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/2] libxl: switch NetBSD image file handling to Qemu
This forces libxl to use Qemu when a raw image file is used as a disk backend. NetBSD currently only supports qemu-traditional, so device_model_version="qemu-xen-traditional" has to be added to the config file when using image files. Signed-off-by: Roger Pau Monnà <roger.pau@xxxxxxxxxx> --- tools/libxl/libxl_netbsd.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_netbsd.c b/tools/libxl/libxl_netbsd.c index 9587833..76e5f40 100644 --- a/tools/libxl/libxl_netbsd.c +++ b/tools/libxl/libxl_netbsd.c @@ -19,10 +19,10 @@ int libxl__try_phy_backend(mode_t st_mode) { - if (S_ISREG(st_mode) || S_ISBLK(st_mode)) - return 1; + if (!S_ISBLK(st_mode)) + return 0; - return 0; + return 1; } char *libxl__devid_to_localdev(libxl__gc *gc, int devid) -- 1.7.7.5 (Apple Git-26) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |