Vladimir Sementsov-Ogievskiy 307261b243 block: consistently use bdrv_is_read_only()
It's better to use accessor function instead of bs->read_only directly.
In some places use bdrv_is_writable() instead of
checking both BDRV_O_RDWR set and BDRV_O_INACTIVE not set.

In bdrv_open_common() it's a bit strange to add one more variable, but
we are going to drop bs->read_only in the next patch, so new ro local
variable substitutes it here.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210527154056.70294-2-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2021-06-02 14:23:20 +02:00
..
2019-10-10 10:56:17 +02:00
2021-04-30 12:27:48 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2021-02-15 15:10:14 +01:00
2021-03-19 10:15:06 +01:00
2020-11-09 15:44:21 +01:00
2021-01-08 15:13:38 +00:00
2021-03-11 13:57:08 +00:00
2020-09-15 11:05:13 +02:00
2020-07-06 10:34:14 +02:00