2020-10-14 21:36:17 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Martin Wilck <mwilck@suse.com>
|
2021-01-21 16:56:27 +00:00
|
|
|
Date: Wed, 16 Sep 2020 16:08:43 +0200
|
2020-10-14 21:36:17 +00:00
|
|
|
Subject: [PATCH] mpathpersist: remove logsink and udev
|
|
|
|
|
|
|
|
We can use libmultipath's internal symbols now. The libmultipath
|
|
|
|
initialization is taken care of by libmpathpersist_init().
|
|
|
|
|
2021-01-21 16:56:27 +00:00
|
|
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
2020-10-14 21:36:17 +00:00
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
---
|
|
|
|
mpathpersist/main.c | 6 ------
|
|
|
|
1 file changed, 6 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/mpathpersist/main.c b/mpathpersist/main.c
|
2021-01-21 16:56:27 +00:00
|
|
|
index 278e48f7..3c2e6576 100644
|
2020-10-14 21:36:17 +00:00
|
|
|
--- a/mpathpersist/main.c
|
|
|
|
+++ b/mpathpersist/main.c
|
|
|
|
@@ -42,13 +42,10 @@ void * mpath_alloc_prin_response(int prin_sa);
|
|
|
|
void mpath_print_transport_id(struct prin_fulldescr *fdesc);
|
|
|
|
int construct_transportid(const char * inp, struct transportid transid[], int num_transportids);
|
|
|
|
|
|
|
|
-int logsink;
|
|
|
|
-
|
|
|
|
void rcu_register_thread_memb(void) {}
|
|
|
|
|
|
|
|
void rcu_unregister_thread_memb(void) {}
|
|
|
|
|
|
|
|
-struct udev *udev;
|
|
|
|
|
|
|
|
static int verbose, loglevel, noisy;
|
|
|
|
|
2021-01-21 16:56:27 +00:00
|
|
|
@@ -641,16 +638,13 @@ int main(int argc, char *argv[])
|
2020-10-14 21:36:17 +00:00
|
|
|
exit (1);
|
|
|
|
}
|
|
|
|
|
|
|
|
- udev = udev_new();
|
|
|
|
if (libmpathpersist_init()) {
|
|
|
|
- udev_unref(udev);
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
ret = handle_args(argc, argv, 0);
|
|
|
|
|
|
|
|
libmpathpersist_exit();
|
|
|
|
- udev_unref(udev);
|
|
|
|
|
|
|
|
return (ret >= 0) ? ret : MPATH_PR_OTHER;
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.17.2
|
|
|
|
|