Messages in this thread | | | Date | Tue, 17 Jul 2012 23:12:11 +0200 | From | Paolo Bonzini <> | Subject | Re: [PATCH] sd: do not set changed flag on all unit attention conditions |
| |
Il 17/07/2012 20:49, Mike Christie ha scritto: > > Not sure if we are talking about the same thing. > > > > So can virtio-scsi send a UA with asc/ascq that indicates the lun > > changed size? Other drivers do this. I updated Hannes's patches the > > other day to support UAs like those in userspace. > > > > I just saw the code in the patch where virtio-scsi gets that event. > Was not done. I meant I saw that patch where virtio-scsi gets that > virtio_scsi_event and kicks of a rescan based off of that.
Yes, it sends both (event + UA). Right now Linux ignores the UA, and I wanted virtio-scsi to match real hardware as much as possible so I copied what aacraid does. The event also has the advantage over UA that it the revalidate is done immediately, not the next time the unit is accessed.
Paolo
| |