Re: Block-level access

2016-09-02 Thread Alex Austin
My access is almost purely sequential and primarily writing, so read-ahead doesn't help me. What's problematic with pread/pwrite is the lack of error channel from media errors. BSG looks very interesting. I'll look further into that today. On Thu, Sep 1, 2016 at 5:16 PM, Bart Van Assche wrote: >

Re: Block-level access

2016-09-01 Thread Bart Van Assche
On 09/01/2016 02:48 PM, Alex Austin wrote: CC'ing linux-scsi and linux-block. Also, please CC me in replies. On Thu, Sep 1, 2016 at 4:43 PM, Alex Austin wrote: Hello, What is the most performant way to directly interface with an attached hard drive? I've so far used read()/write() on /dev/sd_

Re: Block-level access

2016-09-01 Thread Alex Austin
CC'ing linux-scsi and linux-block. Also, please CC me in replies. On Thu, Sep 1, 2016 at 4:43 PM, Alex Austin wrote: > Hello, > What is the most performant way to directly interface with an attached hard > drive? I've so far used read()/write() on /dev/sd_ but I find error handling > exceedingly