Subject: Re: SCSI Mode Sense on page 0
To: ITOH Yasufumi <>
From: Manuel Bouyer <>
List: tech-kern
Date: 11/19/2006 21:00:10
On Sun, Nov 19, 2006 at 10:05:34PM +0900, ITOH Yasufumi wrote:
> Hello,
> Tracking down kern/26537, I noticed our cd(4) and sd(4)
> drivers issue SCSI Mode Sense command on page 0.
> The SCSI specification says the page 0 is ``vendor-specific'' and
> even the parameter format may be non-standard.
> For what reasons our drivers use such a vendor-specific behavior?

I suspect it was the way to retrieve the block size on older scsi
devices. Maybe we should try to use READ_FORMAT_CAPACITIES before going
to Mode Sense page 0.

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference