]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Separate image metadata removal into a function
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 19 Nov 2019 07:43:58 +0000 (08:43 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 22 Nov 2019 09:48:04 +0000 (10:48 +0100)
commit1c12b861855cefa41f3b8abe18521d04cde9a3f2
tree232952b417fea80cbe5e3da6b9d19d97b29e1ae1
parent86085c9a2fb803573e102002903e636306fb1cbf
qemu: Separate image metadata removal into a function

There are four places where we remove image XATTRs and in all of
them we have the same for() loop with the same body. Move it into
a separate function because I'm about to introduce fifth place
where the same needs to be done.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_block.c
src/qemu/qemu_block.h
src/qemu/qemu_blockjob.c