Re: letting glabel recognise a media change

From: Andriy Gapon <avg_at_icyb.net.ua>
Date: Thu, 30 Sep 2010 23:45:51 +0300
on 30/09/2010 20:46 Alexander Motin said the following:
> Andriy Gapon wrote:
>> on 30/09/2010 01:28 Matthew Jacob said the following:
>>> If something like that was in place, I assure you that things would start to use
>>> it very quickly.
>>
>> I am not sure about this.
>> Because, e.g. I don't see an easy way to know that media is changed in scsi_cd
>> driver.  That is, without polling.  I don't consider polling to be an easy way for
>> a number of reasons.
> 
> SATA specification defines concept of Asynchronous Notification. It is
> already used by port multipliers to report about PHY events. It is also
> supposed to be used by CD drives to report media change. I haven't seen
> such devices yet, but hope they may appear sometimes.

Would this require some reverse-path from SIM driver to peripheral driver to
deliver a notification?  Do we have one?

> And even without AN support it would be nice to implement proper
> handling for SCSI "UA - media changed" errors within CAM. It still won't
> be perfect without using polling, but probably still something.

I agree.

-- 
Andriy Gapon
Received on Thu Sep 30 2010 - 18:45:53 UTC

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