Blame SOURCES/bz1457382-portblock-suppress-dd-output.patch

bb196a
From 1e7921fe7b257973b4c27c30627e9bdb4b1a8ae2 Mon Sep 17 00:00:00 2001
bb196a
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
bb196a
Date: Fri, 7 Jul 2017 15:27:50 +0200
bb196a
Subject: [PATCH] portblock: dont log dd "0+0 records in/out"
bb196a
bb196a
---
bb196a
 heartbeat/portblock | 2 +-
bb196a
 1 file changed, 1 insertion(+), 1 deletion(-)
bb196a
bb196a
diff --git a/heartbeat/portblock b/heartbeat/portblock
bb196a
index 776ad17e4..a518f49fe 100755
bb196a
--- a/heartbeat/portblock
bb196a
+++ b/heartbeat/portblock
bb196a
@@ -253,7 +253,7 @@ save_tcp_connections()
bb196a
 		netstat -tn |awk -F '[:[:space:]]+' '
bb196a
 			$8 == "ESTABLISHED" && $4 == "'$OCF_RESKEY_ip'" \
bb196a
 			{printf "%s:%s\t%s:%s\n", $4,$5, $6,$7}' |
bb196a
-			dd of="$statefile".new conv=fsync && 
bb196a
+			dd of="$statefile".new conv=fsync status=none &&
bb196a
 			mv "$statefile".new "$statefile"
bb196a
 	else
bb196a
 		netstat -tn |awk -F '[:[:space:]]+' '