File 0058-Add-Name-defines-to-some-ancillary-programs.patch of Package mdadm.5365

From 42129b3f80b2c2167a79d683eb85cc04f6b3eb0d Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb@suse.de>
Date: Thu, 7 May 2015 14:46:05 +1000
Subject: [PATCH 075/359] Add "Name" defines to some ancillary programs
References: bsc#1081910

All programs now need to declare their "Name".

Signed-off-by: NeilBrown <neilb@suse.de>
Fixes: d56dd607ba43 ("Change way of printing name of a process")
Signed-off-by: Coly Li <colyli@suse.de>

---
 raid6check.c | 2 ++
 restripe.c   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/raid6check.c b/raid6check.c
index 76e57a7..66c3eea 100644
--- a/raid6check.c
+++ b/raid6check.c
@@ -30,6 +30,8 @@
 #define CHECK_PAGE_BITS (12)
 #define CHECK_PAGE_SIZE (1 << CHECK_PAGE_BITS)
 
+char const Name[] = "raid6check";
+
 enum repair {
 	NO_REPAIR = 0,
 	MANUAL_REPAIR,
diff --git a/restripe.c b/restripe.c
index 6eebb90..30849b7 100644
--- a/restripe.c
+++ b/restripe.c
@@ -882,6 +882,7 @@ unsigned long long getnum(char *str, char **err)
 	return rv;
 }
 
+char const Name[] = "test_restripe";
 main(int argc, char *argv[])
 {
 	/* save/restore file raid_disks chunk_size level layout start length devices...
-- 
2.16.1

openSUSE Build Service is sponsored by