Hi Bart, I looked a bit more at the history of this, and it seems like the only issue with commit 17d5363b83f8 here is using the blk_status_t type for the ret variable. Even before that the negative error code leaked out to userspace. We can try to just turn that back into an int, but I'll also send out an RFC patch to use bsg-lib for the SAS transport in a bit.