Damien, > The SG driver can make use of this field to keep the io header resid > as an int, with negative values indicating overflows and positive > values underflows. I am all for synthesizing what SG returns to userland. That is also the case in the context of Hannes' SCSI result revamp. I would much prefer to have well-defined and consistent internal kernel status fields and then transmogrify those into something compatible with what userland applications might expect. As opposed to perpetuating the train wreck that is the current scsi_cmnd result. -- Martin K. Petersen Oracle Linux Engineering