mirror of
https://github.com/opnsense/src.git
synced 2026-05-15 18:49:57 -04:00
The hotplug script will be executed only once for each backend, regardless of the frontend triggering reconnections. Fix blkback to deal with the hotplug script being executed only once, so that reconnections don't stall waiting for a hotplug script execution that will never happen. As a result of the fix move the initialization of dev_mode, dev_type and dev_name to the watch callback, as they should be set only once the first time the backend connects. This fix is specially relevant for guests wanting to use UEFI OVMF firmware, because OVMF will use Xen PV block devices and disconnect afterwards, thus allowing them to be used by the guest OS. Without this change the guest OS will stall waiting for the block backed to attach. Fixes: |
||
|---|---|---|
| .. | ||
| balloon | ||
| blkback | ||
| blkfront | ||
| console | ||
| control | ||
| debug | ||
| evtchn | ||
| gntdev | ||
| grant_table | ||
| netback | ||
| netfront | ||
| pci | ||
| pcifront | ||
| privcmd | ||
| pvcpu | ||
| timer | ||
| xenpci | ||
| xenstore | ||