12-byte SAT support for libatasmart
authorMatthew Garrett <mjg59@srcf.ucam.org>
Mon, 16 Mar 2009 19:00:37 +0000 (19:00 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Mar 2009 20:04:48 +0000 (21:04 +0100)
commit8e07ffd3047362423a3ba4e5b240031996a26aac
treeac2272bcb68f057f1994e1eff81cf94050e8092d
parentf6c77e667797c121e76121ed80e957325ca0a9f2
12-byte SAT support for libatasmart

Hi Lennart,

My USB enclosure (a Maxtor basics of some description) supports SAT, but
only the 12-byte version. I've included a patch that implements it.
RIght now it tries the 16 byte one and then falls back, which is
possibly not ideal - there's a significant pause before the 16 byte one
finishes and the 12 byte one is tried. I'd reverse the order, but I've
no idea if that would confuse other devices. Are we able to check for
which commands the firmware claims to support?

Signed-off-by: Lennart Poettering <lennart@poettering.net>
atasmart.c