We support SG_IO on various block devices, including but not limited to: SCSI disks, CDROMs and tapes, virtio-blk and nvmve. Instead of checking a filename prefix just treat anything that isn't an iscsi:// url as a device node. The ioctl checks after open will weed out devices (or files) that don't support SG_IO. Signed-off-by: Christoph Hellwig <hch@lst.de>
39 KiB
39 KiB