hi Bryn:

2014-07-08 0:25 GMT+08:00 Bryn M. Reeves <b...@redhat.com>:
> On Tue, Jul 08, 2014 at 12:15:54AM +0800, loody wrote:
>> so sg_read will not hammer on the page cache like dd without "iflags=direct"
>>
>> thanks for your kind help,
>
> The sg_read program (and other programs in sg3_utils) sends a command directly
> to the device using an SG_IO ioctl. This bypasses all the caching layers in
> the kernel and always results in IO to the device (if it succeeds).
>
I download sg utility but I found if I need to use sg_read only, I
need to install sg_lig on my target system.
is there any simple source I can reference for just doing the scsi
read through IOCTL as you explained to us before?

appreciate your kind help,


-- 
Regards,
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to