On Mon, 2006-12-04 at 15:11 -0500, Alan Stern wrote:
> Can you please take a look at this entry in Bugzilla:
> 
>       http://bugzilla.kernel.org/show_bug.cgi?id=7026
> 
> The important part starts at Comment 21; in particular the last two 
> comments from Joerg Schilling and me are relevant to the SG driver.

The only comment I'd have is that your last path is too convoluted.  For
any cdrecord -dev=/dev/<block dev>

Then 

/sys/block/<block dev>/queue/max_sectors_kb 

should work just fine.

For the corner cases where /dev/<block dev> isn't the canonical name,
you can find the actual /sys/block/<name> by getting the major:minor and
scanning through /sys/block/*/dev

The only other thing I'd note is that there's no connection between this
value and the one returned by SG_GET_RESERVED_SIZE.  The former is the
max sectors per request.  The latter is the size of the internal buffer
used to build sg lists.

James


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to