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é <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
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) {