]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: device: compare drive address fields separately
authorJán Tomko <jtomko@redhat.com>
Tue, 16 Nov 2021 13:46:39 +0000 (14:46 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 16 Nov 2021 15:40:33 +0000 (16:40 +0100)
commit03f9dfbb5183b3ade354a63dc16e8afb5f6d8652
tree7766edf7341c1278156ff0bfabe2d5fef6425e74
parent810b1d85a1a934f14afb4f9cfb3b6fd0d15e5077
conf: device: compare drive address fields separately

Commit 3210c8b04 introduced a separate field 'diskbus' for
internal use by the commandline formatter.

Adjust the check for address equality to compare the relevant
fields separately instead of the whole struct.

This means that the changes of the 'diskbus' field added
in commit 03ed14d2d4 no longer affect the outcome of the address
equality check.

https://bugzilla.redhat.com/show_bug.cgi?id=2023605

Fixes: 3210c8b047534f7e1d3ccde7ea3bcf11e7c92ad9
Fixes: 03ed14d2d4a4e51568b1ee5a6e6c9c3371bb4d34
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/device_conf.c