commit: Make base read-only if there is an early failure
commit065abf9f2b4ed61017d31da8a94f1ddc6f54beb5
authorAlberto Garcia <berto@igalia.com>
Mon, 29 Apr 2019 13:51:08 +0000 (29 15:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 30 Apr 2019 13:29:00 +0000 (30 15:29 +0200)
treeed5c3969ec02558d38867673b176af04c9beb75c
parent265a7e54efad246f4bde63f77aee6311f436f5f1
commit: Make base read-only if there is an early failure

You can reproduce this by passing an invalid filter-node-name (like
"1234") to block-commit. In this case the base image is put in
read-write mode but is never reset back to read-only.

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