OSDN Git Service

block: Fix update of BDRV_O_AUTO_RDONLY in update_flags_from_options()
authorAlberto Garcia <berto@igalia.com>
Mon, 12 Nov 2018 14:00:48 +0000 (16:00 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 22 Nov 2018 15:43:52 +0000 (16:43 +0100)
commit2a3d4331fa2d40708188b8000f98ff1f7dcd33bc
treec08d025f93ad66e5d267b6a5954d639c580a36ab
parent1c7f618f689b0b5b6bbed23a7c159e7dad7b996f
block: Fix update of BDRV_O_AUTO_RDONLY in update_flags_from_options()

Commit e35bdc123a4ace9f4d3fcca added the auto-read-only option and the
code to update its corresponding flag in update_flags_from_options(),
but forgot to clear the flag if auto-read-only is false.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reported-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c