]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStorageSource: Add fields for storing last I/O error message
authorPeter Krempa <pkrempa@redhat.com>
Mon, 27 Jan 2025 15:20:43 +0000 (16:20 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 4 Feb 2025 13:40:55 +0000 (14:40 +0100)
commit2f6c9fa4f6f4c0a36ffc2b24892eee78e1e4cf53
tree5f20c7f36ed2506ecf66435908aab0d828c80e25
parent0525323175253b1fe1a161181e58bd348d9c605b
virStorageSource: Add fields for storing last I/O error message

Hypervisors may report a I/O error message (unstable; for human use)
to libvirt. In order to store it with the appropriate virStorageSource
so that it can be later queried we need to add fields to
virStorageSource to store the timestamp and message.

The message is deliberately not copied via virStorageSourceCopy.

The messages are also not serialized to the status XML as losing them on
a daemon restart as they're likely to be stale anyways.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/storage_source_conf.c
src/conf/storage_source_conf.h