Jeff Cody 45803a0396 block: introduce bdrv_can_set_read_only()
Introduce check function for setting read_only flags.  Will return < 0 on
error, with appropriate Error value set.  Does not alter any flags.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: e2bba34ac3bc76a0c42adc390413f358ae0566e8.1491597120.git.jcody@redhat.com
2017-04-24 15:09:33 -04:00
..
2017-04-21 15:59:27 +01:00
2017-04-24 14:49:48 +01:00
2017-03-06 11:46:02 +08:00
2017-04-21 15:59:27 +01:00
2017-01-24 13:10:35 -08:00
2017-02-28 09:03:39 +03:00
2017-02-28 20:47:50 +01:00