Re: Sense fetching [Was: cdrtools /devel ...]

From: Joerg Schilling <Joerg.Schilling_at_fokus.fraunhofer.de>
Date: Thu, 11 Nov 2010 14:45:42 +0100
Alexander Motin <mav_at_FreeBSD.org> wrote:

> > What is the requested size with the various HBAs in earlier kernels?
>
> For HBAs with automatic sense fetching -- as passed in sence_len request
> field. In case of libscg it was SSD_FULL_SIZE before and I've set it to
> be real value now. Returned sense_resid should be real in both cases,
> respecting submitted sense_len.
>
> For HBAs without sense fetching, CAM was always requesting SSD_FULL_SIZE
> and returned fake zero sense_resid, like if it just completely fulfilled
> sense_len from request. Now it should start honor sense_len on request
> and return real sense_resid on reply, relative to sense_len.

Then your patch to libscg seems to be OK and without risk.

Jörg

-- 
 EMail:joerg_at_schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js_at_cs.tu-berlin.de                (uni)  
       joerg.schilling_at_fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
Received on Thu Nov 11 2010 - 12:45:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:09 UTC