Re: ses enclosure stuff not working with Promise Vtrak J610S JBOD

James Bottomley
2009-11-05T15:44:16Z

On Thu, 2009-11-05 at 16:30 +0100, John Hughes wrote:
> John Hughes wrote:
> > One problem with the patch is that, since I don't have a page 7 (bay
> > names) it's using the "enclosure component index" as the name, and
> > that (at least for me) seems to be an index starting from zero, where
> > my bays are numbered from one.
> >
> > sg_ses shows a "bay number", I think I'll try to make the patch look
> > for the bay number and make the name something like "bay-nn" if there
> > is a bay number.
> Doesn't work because bays without a device don't show a bay number and
> hot-plugging a device doesn't make things change dynamically.

Let me dig around in the standards. My instinct from the implementation
notes was that page 7 was more likely to be present than page 10, so
that's how I coded it. There may still be a way to get the slot number
in a persistent fashion without the actual page telling you this.

> Buggeration.

Welcome to the wonderful world of SCSI standards implementation.

James