]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - block/vhdx-log.c
block: Use bdrv_refresh_filename() to pull
[thirdparty/qemu.git] / block / vhdx-log.c
index ecd64266c5ef167f9b07ec42613f46a8918f014f..3149ff08d803d8a358606b941096ad2608ec355d 100644 (file)
@@ -803,6 +803,7 @@ int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed,
 
     if (logs.valid) {
         if (bs->read_only) {
+            bdrv_refresh_filename(bs);
             ret = -EPERM;
             error_setg(errp,
                        "VHDX image file '%s' opened read-only, but "