[libvirt] [PATCH 3/5] virsh: Emit warning when running on a deprecated architecture
Andrea Bolognani
abologna at redhat.com
Sat Apr 1 15:52:04 UTC 2017
This will make even users who don't compile libvirt themselves,
eg. because they're using binary packages provided by their
distribution of choice, aware of the fact that support for the
architecture they're running on will be dropped in the future.
---
tools/virsh.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/virsh.c b/tools/virsh.c
index 7eb51ab..b24686c 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -957,6 +957,12 @@ main(int argc, char **argv)
ctl->connname = vshStrdup(ctl,
virGetEnvBlockSUID("VIRSH_DEFAULT_CONNECT_URI"));
+#if ENABLE_DEPRECATED_ARCHITECTURES
+ vshPrint(ctl, "%s",
+ _("Warning: virsh is running on a deprecated architecture\n"
+ " Support for this architecture will be dropped in the future\n\n"));
+#endif
+
if (!ctl->imode) {
ret = vshCommandRun(ctl, ctl->cmd);
} else {
--
2.7.4
More information about the libvir-list
mailing list