diff options
author | Jeff Cody <jcody@redhat.com> | 2018-09-11 18:32:31 -0400 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2018-09-24 23:46:05 -0400 |
commit | 084d1d13bdb753d558b991996e7686c077bd6d80 (patch) | |
tree | d0cde7831cd932dc14732fa261374355a8973f4a /hw/mem | |
parent | f24b03b56cdb28d753b4ff9ae210d555f14cb0d8 (diff) | |
download | qemu-084d1d13bdb753d558b991996e7686c077bd6d80.zip qemu-084d1d13bdb753d558b991996e7686c077bd6d80.tar.gz qemu-084d1d13bdb753d558b991996e7686c077bd6d80.tar.bz2 |
block/rbd: Attempt to parse legacy filenames
When we converted rbd to get rid of the older key/value-centric
encoding format, we broke compatibility with image files with backing
file strings encoded in the old format.
This leaves a bit of an ugly conundrum, and a hacky solution.
If the initial attempt to parse the "proper" options fails, it assumes
that we may have an older key/value encoded filename. Fall back to
attempting to parse the filename, and extract the required options from
it. If that fails, pass along the original error message.
We do not support mixed modern usage alongside legacy keyvalue pair
usage.
A deprecation warning has been added, although care should be taken
when actually deprecating since the impact is not limited to
commandline or qapi usage, but also opening existing images.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Message-id: 15b332e5432ad069441f7275a46080f465d789a0.1536704901.git.jcody@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'hw/mem')
0 files changed, 0 insertions, 0 deletions