From: Roger Pau Monne Date: Thu, 19 Jun 2014 16:32:47 +0000 (+0200) Subject: libxl: remove the gate that only allows block or regular backing images X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4761 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ebbcc0bf0f052e70de2e6d68731dd3224eed4bbe;p=xen.git libxl: remove the gate that only allows block or regular backing images On FreeBSD ZVOLs/disks/partitions are char devices, so libxl must allow it's usage. This is already taken care in the OS-specific bits of libxl by libxl__try_phy_backend, so remove the generic gate. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Ian Campbell Acked-by: Ian Campbell --- diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 788895b9b2..f8a2e1ba92 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -265,12 +265,6 @@ int libxl__device_disk_set_backend(libxl__gc *gc, libxl_device_disk *disk) { disk->vdev, disk->pdev_path); return ERROR_INVAL; } - if (!S_ISBLK(a.stab.st_mode) & - !S_ISREG(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; - } } if (disk->backend != LIBXL_DISK_BACKEND_UNKNOWN) {