src/qemu/src-pmp/block.c
/* Returns whether the image file can be written to after the reopen queue @q
 * has been successfully applied, or right now if @q is NULL. */
Returns whether the image file can be written to after the reopen queue @q
has been successfully applied, or right now if @q is NULL.
Returns whether the image file can be written to after the reopen queue @q has been successfully applied or right now if @q is NULL .
static bool bdrv_is_writable_after_reopen(BlockDriverState *bs,
                                          BlockReopenQueue *q)
{
    int flags = bdrv_reopen_get_flags(q, bs);
    return (flags & (BDRV_O_RDWR | BDRV_O_INACTIVE)) == BDRV_O_RDWR;
}
static bool bdrv_is_writable_after_reopen ( BlockDriverState * bs , BlockReopenQueue * q ) { int flags = bdrv_reopen_get_flags ( q , bs ) ; return ( flags & ( BDRV_O_RDWR | BDRV_O_INACTIVE ) ) == BDRV_O_RDWR ; }
Returns whether the image file can be written to after the reopen queue @q
 has been successfully applied, or right now if @q is NULL.
Returns whether the image file can be written to after the reopen queue @q has been successfully applied or right now if @q is NULL .