Skip to contentSkip to conversation

writev to SCSI disks: Does sg work?

DISCUSSION Dheeraj Pandey 1 participant 1 message Apr 19, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

Hi!

I was wondering if I did a simple writev to a SCSI disk, does it take the sg path to the device? I am guessing this sg (REQ_SPECIAL) is only true for character devices (and ioctl's) and not block devices.

These are my questions:
- Is sg a common feature among SCSI disks these days? How do I know
what disks support this feature?
- How does one make writev work for SCSI disk (as a block device)
in direct_io?
- If I use SCSI disks as character device, can I use writev on the
character device file, and will sg codepath be taken?

Thanks
Dheeraj