diff --git a/SOURCES/bz1207422-client_do_not_truncate_vm_domains_in_list_output.patch b/SOURCES/bz1207422-client_do_not_truncate_vm_domains_in_list_output.patch new file mode 100644 index 0000000..765fc02 --- /dev/null +++ b/SOURCES/bz1207422-client_do_not_truncate_vm_domains_in_list_output.patch @@ -0,0 +1,31 @@ +From 4a749e3f7de4c82446634a1b57d3877b7dc46223 Mon Sep 17 00:00:00 2001 +From: Ryan McCabe +Date: Fri, 17 Jul 2015 10:52:01 -0400 +Subject: [PATCH] fence-virt: client: Do not truncate VM domains in list output + +Don't truncate the domain string for VMs when listing their status +in the output of the list command. + +Resolves: rhbz#1207422 + +Signed-off-by: Ryan McCabe +--- + client/mcast.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/client/mcast.c b/client/mcast.c +index a247e8c..f2654bd 100644 +--- a/client/mcast.c ++++ b/client/mcast.c +@@ -117,7 +117,7 @@ do_read_hostlist(int fd, int timeout) + strlen((char *)hinfo.domain) == 0) + break; + +- printf("%-20.20s %s %s\n", hinfo.domain, hinfo.uuid, ++ printf("%-32s %s %s\n", hinfo.domain, hinfo.uuid, + (hinfo.state == 1) ? "on" : "off"); + + } while (1); +-- +2.4.3 + diff --git a/SPECS/fence-virt.spec b/SPECS/fence-virt.spec index 5e3a08b..7baedc3 100644 --- a/SPECS/fence-virt.spec +++ b/SPECS/fence-virt.spec @@ -1,6 +1,6 @@ Name: fence-virt Version: 0.3.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A pluggable fencing framework for virtual machines Group: System Environment/Base License: GPLv2+ @@ -12,6 +12,8 @@ ExclusiveArch: i686 x86_64 URL: http://fence-virt.sourceforge.net Source0: http://people.redhat.com/rmccabe/fence-virt/%{name}-%{version}.tar.bz2 +Patch0: bz1207422-client_do_not_truncate_vm_domains_in_list_output.patch + BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: corosynclib-devel libvirt-devel @@ -75,6 +77,8 @@ machines on a desktop. %prep %setup -q +%patch0 -p1 -b .bz1207422 + %build ./autogen.sh %{configure} --disable-libvirt-qmf-plugin @@ -157,6 +161,10 @@ fi %{_libdir}/%{name}/libvirt.so %changelog +* Fri Jul 17 2015 Ryan McCabe - 0.3.2-2 +- Do not truncate VM domains in the output of the list command. + Resolves: rhbz#1207422 + * Mon Sep 08 2014 Ryan McCabe - 0.3.2-1 - Rebase to the 0.3.2 release. Resolves: rhbz#1111384