]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: fix mdev add udev event data handling
authorBoris Fiuczynski <fiuczy@linux.ibm.com>
Tue, 23 Apr 2024 18:08:47 +0000 (20:08 +0200)
committerJonathon Jongsma <jjongsma@redhat.com>
Tue, 18 Jun 2024 13:58:10 +0000 (08:58 -0500)
commit7ccf76ea345ad5ad3e77e62301854b2db01705fe
treefbc71948d78312ea5374f01d2436db15d0078294
parente145d182a68344859d95b70230a324b72ecf232d
nodedev: fix mdev add udev event data handling

Two situations will trigger an udev add event:
 1) the mdev is created when started (transient) or
 2) the mdev was defined and is started
In case 1 there is no node object existing and no config data is copied.
In case 2 copying the active config data of an existing node object will
only copy invalid data. Instead copying the defined config data will
store valid data into the newly added node object.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
src/node_device/node_device_udev.c