diff options
author | Max Reitz <mreitz@redhat.com> | 2018-02-24 16:40:33 +0100 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2018-03-19 14:58:36 -0500 |
commit | 4f7be2806e672fa232e406ac5eec26789b9d5f85 (patch) | |
tree | ae82d86210521ff3a214b1b6102ef5c43d72e954 /block.c | |
parent | e59a0cf17b1b9932b65e6fc25d6856976f5e4831 (diff) | |
download | qemu-4f7be2806e672fa232e406ac5eec26789b9d5f85.zip |
block: Deprecate "backing": ""
We have a clear replacement, so let's deprecate it.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20180224154033.29559-8-mreitz@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2649,6 +2649,10 @@ static BlockDriverState *bdrv_open_inherit(const char *filename, if (qobject_to(QNull, qdict_get(options, "backing")) != NULL || (backing && *backing == '\0')) { + if (backing) { + warn_report("Use of \"backing\": \"\" is deprecated; " + "use \"backing\": null instead"); + } flags |= BDRV_O_NO_BACKING; qdict_del(options, "backing"); } |