From ec0fe3170e5c783451ea1020f0ab331079b28fcd Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Tue, 20 Oct 2020 08:27:22 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/virt-top#fde280018e8d2c0651ae669967f07689aaa7020a --- .gitignore | 5 + ...-Handle-VIR_DOMAIN_PMSUSPENDED-state.patch | 40 ++ gating.yaml | 7 + processcsv.py | 65 +++ processcsv.py.pod | 64 +++ sources | 1 + tests/basic-test.sh | 11 + tests/tests.yml | 13 + virt-top-1.0.9-processcsv-documentation.patch | 26 ++ virt-top.spec | 435 ++++++++++++++++++ 10 files changed, 667 insertions(+) create mode 100644 0001-libvirt-Handle-VIR_DOMAIN_PMSUSPENDED-state.patch create mode 100644 gating.yaml create mode 100755 processcsv.py create mode 100644 processcsv.py.pod create mode 100644 sources create mode 100755 tests/basic-test.sh create mode 100644 tests/tests.yml create mode 100644 virt-top-1.0.9-processcsv-documentation.patch create mode 100644 virt-top.spec diff --git a/.gitignore b/.gitignore index e69de29..1362986 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,5 @@ +*~ + +/.build*.log +/clog +/virt-top-*.tar.gz diff --git a/0001-libvirt-Handle-VIR_DOMAIN_PMSUSPENDED-state.patch b/0001-libvirt-Handle-VIR_DOMAIN_PMSUSPENDED-state.patch new file mode 100644 index 0000000..c29b6d6 --- /dev/null +++ b/0001-libvirt-Handle-VIR_DOMAIN_PMSUSPENDED-state.patch @@ -0,0 +1,40 @@ +From 24a461715d5bce47f63cb0097606fc336230589f Mon Sep 17 00:00:00 2001 +From: Stephane Glondu +Date: Wed, 21 Aug 2019 17:24:47 +0200 +Subject: [PATCH] libvirt: Handle VIR_DOMAIN_PMSUSPENDED state. + +Fixes FTBFS with ocaml-libvirt 0.6.1.5. + +RWMJ: Added documentation and changed the letter to 'M'. +--- + src/screen.ml | 1 + + src/virt-top.pod | 4 ++++ + 2 files changed, 5 insertions(+) + +diff --git a/src/screen.ml b/src/screen.ml +index 0d847a2..8a66ba6 100644 +--- a/src/screen.ml ++++ b/src/screen.ml +@@ -50,3 +50,4 @@ let show_state = function + | D.InfoShutdown -> 'D' + | D.InfoShutoff -> 'O' + | D.InfoCrashed -> 'X' ++ | D.InfoPMSuspended -> 'M' +diff --git a/src/virt-top.pod b/src/virt-top.pod +index 4d81608..76ad3f9 100644 +--- a/src/virt-top.pod ++++ b/src/virt-top.pod +@@ -492,6 +492,10 @@ Shutdown. + + Crashed. + ++=item B ++ ++Suspended by guest power management. ++ + =back + + =item B