On Wed, Aug 03, 2011 at 03:11:38PM -0300, Luiz Capitulino wrote: > > > It's already possible for QMP clients to implement this feature by using > > > the BLOCK_IO_ERROR event. However, the event can be missed. When this > > > happens QMP clients need a way to query if any block device has hit a > > > no space condition. > > > > We have a mode where we stop the VM when it hits ENOSPC, and that is > > the only reliably way to handle it. > > This series just complements that mode by allowing a mngt application > to query which device triggered the ENOSPC. Well, that's my intention :)
Oh, so you only plan to use the QMP command post-mortem? That makes a lot more sense. But relying on that fact should also help to simplify the implementation and make it more robust by storing the error code from the same place that we stop them VM.