On Mon, Jul 23, 2012 at 11:17 AM, Benoît Canet <benoit.ca...@irqsave.net> wrote:
> Would
>
> int bdrv_are_busy(void)
> {
>     BlockDriverState *bs;
>
>     QTAILQ_FOREACH(bs, &bdrv_states, list) {
>         if (bs->job || bdrv_in_use(bs)) {
>             return -EBUSY;
>         }
>     }
>
>     return 0;
> }
>
> be more acceptable ?

Looks fine to me.

Stefan

Reply via email to