good sharing. following up on your comments:
On Fri, 08 Feb 2013 07:48:39 +0800, Peter Teoh said:The reason that good disk drivers are hard to write is because it isn't
> So the drivers just literally concatenate these command into a string and
> send it over to the device.
*just* literally concatenating the commands - it also has to do memory
management (make sure that everybody's data ends up in the right buffers),
command queue management, elevator management (if there's multiple I/O
requests pending from userspace, what order do we issue them in?), error
recovery, power management, and a ton of other stuff...