On 02/06/2014 02:21 PM, Martin K. Petersen wrote: >>>>>> "Hannes" == Hannes Reinecke <h...@suse.de> writes: > > Hannes> Moving EVPD page 0x83 (and maybe 0x80, too) into sysfs will save > Hannes> quite a lot of headache we have currently; udev won't have to > Hannes> call 'sg_inq', information will be present even though the > Hannes> device itself might be temporarily unavailable yadda yadda. > > Hannes> So I've decided to bite the bullet and sent out a patch, check > Hannes> for 'Add EVPD page 0x83 entries to sysfs'. > > I'm already doing something similar since I need it for xcopy. > Hehe. Beat you to it.
> My patch provides both the original VPD 0x83 and 0x80 bits as well as a > handle identical to /sbin/scsi_id. > Bah, don't do that. That should better be handled by udev rules. I've got a set of patches moving from scsi_id to sg_inq, which can be easily adapted to using sysfs directly. Once we figure out if that's the direction we want to go ... > I'll take a look at your patch later today... > Thanks. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html