提交 c44bfe46 编写于 作者: K Kevin Wolf

qcow2: Don't ignore failure to clear autoclear flags

Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 99b5beba
......@@ -300,7 +300,10 @@ static int qcow2_open(BlockDriverState *bs, int flags)
if (!bs->read_only && s->autoclear_features != 0) {
s->autoclear_features = 0;
qcow2_update_header(bs);
ret = qcow2_update_header(bs);
if (ret < 0) {
goto fail;
}
}
/* Check support for various header values */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册