[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 15/17] libxl: allow usage of char devices as block backends
On FreeBSD ZVOLs/disks/partitions are char devices, so libxl must allow it's usage. Signed-off-by: Roger Pau Monnà <roger.pau@xxxxxxxxxx> Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Cc: Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/libxl/libxl_device.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index fa99f77..7dd359c 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -266,7 +266,8 @@ int libxl__device_disk_set_backend(libxl__gc *gc, libxl_device_disk *disk) { return ERROR_INVAL; } if (!S_ISBLK(a.stab.st_mode) & - !S_ISREG(a.stab.st_mode)) { + !S_ISREG(a.stab.st_mode) & + !S_ISCHR(a.stab.st_mode)) { LOG(ERROR, "Disk vdev=%s phys path is not a block dev or file: %s", disk->vdev, disk->pdev_path); return ERROR_INVAL; -- 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 |