[libvirt] [PATCH v2 1/2] util: mdev: Improve the error msg on non-existent mdev prior to VM start

Peter Krempa pkrempa at redhat.com
Fri Mar 16 12:48:43 UTC 2018


On Fri, Mar 16, 2018 at 13:37:53 +0100, Erik Skultety wrote:
> What one currently gets is:
> failed to read '/sys/bus/mdev/devices/<UUID>/mdev_type/device_api': No
> such file or directory
> 
> This indicates that something is missing within the device's sysfs tree
> which likely might be not be the case here because the device simply
> doesn't exist yet. So, when creating our internal mdev obj, let's check
> whether the device exists first prior to trying to verify the
> user-provided model within domain XML.
> 
> Signed-off-by: Erik Skultety <eskultet at redhat.com>
> ---
>  src/util/virmdev.c | 16 +++++++++++++---
>  1 file changed, 13 insertions(+), 3 deletions(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180316/7c31907f/attachment-0001.sig>


More information about the libvir-list mailing list