block: Fix update of BDRV_O_AUTO_RDONLY in update_flags_from_options()
Commit e35bdc12 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: NAlberto Garcia <berto@igalia.com> Reported-by: NMax Reitz <mreitz@redhat.com> Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Showing
想要评论请 注册 或 登录