]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storagefile: Drop image format probing by file suffix
authorPeter Krempa <pkrempa@redhat.com>
Mon, 17 Feb 2020 08:26:46 +0000 (09:26 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Feb 2020 06:57:08 +0000 (07:57 +0100)
commit181fccc2ed67a79d462dfcf5b6fcfd2fbb1702b9
tree4cbdd5400c0fbf4133c5ab8b80893cd373eec5bf
parent0905f222f1bfd9d741e94a8d653e05bb174846d3
util: storagefile: Drop image format probing by file suffix

Probing by file suffix was meant to be a last resort if probing by
contents fails or is not supported. For most formats we never specified
any suffix. There's a few formats implementing both magic bytes and
suffix and finally DMG which had only suffix probing. Since suffix
probing is nowhere reliable and only one format depends on in which has a
comment that qemu doesn't do the probing either drop the whole
infrastructure.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/util/virstoragefile.c