device-mapper-multipath-0.8.5-6

Change patch format to remove Git version
  * Patches 0001-0122 only have the patch format modified
Update to the head of the upstream staging branch plus redhat patches
  * Patches 0123-0134 & 1036-0142 are from the upstream staging branch
  * Patches 0143-1046 have been submitted upstream
  * Patch 0156 is a Red Hat only patch. Red Hat udev rules set ID_SERIAL
    from 60-persistent-storage.rules instead of 55-scsi-sg3_id.rules.
    Multipath's parse_vpd_pg83() function needs to match the ID_SERIAL
    value from udev.
Rename files
  * Previous patches 0123-0132 are now patches 1035 & 0147-0155
This commit is contained in:
Benjamin Marzinski 2021-03-26 13:33:56 -05:00
parent 7812c0e396
commit b05147c356
157 changed files with 2633 additions and 423 deletions

View File

@ -25,6 +25,3 @@ index d2101ed6..7242d39b 100644
.RE
.
.
--
2.17.2

View File

@ -22,6 +22,3 @@ index b9bdbdbc..df0f8f45 100644
return NULL;
vector_foreach_slot (mptable, mpe, i)
--
2.17.2

View File

@ -255,6 +255,3 @@ index a4abbb27..eedc6c10 100644
if (setup_map(mpp, params, PARAMS_SIZE, vecs)) {
condlog(0, "%s: failed to setup map for"
" removal of path %s", mpp->alias, pp->dev);
--
2.17.2

View File

@ -26,6 +26,3 @@ index 7f093617..0bc1d16e 100644
goto out;
dm_task_no_open_count(dmt);
--
2.17.2

View File

@ -38,6 +38,3 @@ index d944e1e3..a940b576 100644
{
struct dmmp_context *ctx = NULL;
struct dmmp_mpath **dmmp_mps = NULL;
--
2.17.2

View File

@ -48,6 +48,3 @@ index 599d1d88..26754f78 100644
int prio_getprio (struct prio *, struct path *, unsigned int);
void prio_get (char *, struct prio *, char *, char *);
void prio_put (struct prio *);
--
2.17.2

View File

@ -85,6 +85,3 @@ index 3a718ba5..c92bde7f 100644
return 0;
}
--
2.17.2

View File

@ -91,6 +91,3 @@ index 62ba16e8..40028556 100644
$(INSTALL_PROGRAM) -d $(DESTDIR)$(syslibdir)
$(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(syslibdir)/$(LIBS)
$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir)
--
2.17.2

View File

@ -82,6 +82,3 @@ index d26b3ce7..9658c9fd 100644
$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $< $($@_TESTDEPS) $($@_OBJDEPS) \
$(LIBDEPS) $($@_LIBDEPS) \
$(shell cat $<.wrap) $(foreach dep,$($@_TESTDEPS),$(shell cat $(dep).wrap))
--
2.17.2

View File

@ -298,6 +298,3 @@ index 00000000..a6bf8218
+local:
+ *;
+};
--
2.17.2

View File

@ -76,6 +76,3 @@ index 00000000..dc648ce6
+
+local: *;
+};
--
2.17.2

View File

@ -69,6 +69,3 @@ index 00000000..f1006280
+local:
+ *;
+};
--
2.17.2

View File

@ -33,6 +33,3 @@ index 1f9817ed..4b3f3e0d 100644
}
return MPATH_PR_SUCCESS ;
}
--
2.17.2

View File

@ -135,6 +135,3 @@ index eedc6c10..fa53e963 100644
sync_maps_state(mpvec);
vector_foreach_slot(mpvec, mpp, i){
if (remember_wwid(mpp->wwid) == 1)
--
2.17.2

View File

@ -62,6 +62,3 @@ index fa53e963..53a22a43 100644
}
}
--
2.17.2

View File

@ -26,6 +26,3 @@ index 53a22a43..c264351c 100644
sd_notify(0, "READY=1");
startup_done = true;
}
--
2.17.2

View File

@ -37,6 +37,3 @@ index c264351c..e3f2328d 100644
}
#endif
--
2.17.2

View File

@ -26,6 +26,3 @@ index e3f2328d..d081b3e9 100644
pid_t daemon_pid;
pthread_mutex_t config_lock = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t config_cond;
--
2.17.2

View File

@ -67,6 +67,3 @@ index d081b3e9..1fb0ee62 100644
pthread_cleanup_pop(1);
return st;
}
--
2.17.2

View File

@ -50,6 +50,3 @@ index 1fb0ee62..39aea4ad 100644
}
pthread_cleanup_pop(1);
return rc;
--
2.17.2

View File

@ -56,6 +56,3 @@ index 39aea4ad..d1f8cc1b 100644
pthread_join(check_thr, NULL);
pthread_join(uevent_thr, NULL);
pthread_join(uxlsnr_thr, NULL);
--
2.17.2

View File

@ -160,6 +160,3 @@ index d1f8cc1b..5cc34357 100644
dm_lib_exit();
/* We're done here */
--
2.17.2

View File

@ -501,6 +501,3 @@ index b7c09cc2..e7663f9a 100644
select_minio(conf, mp);
put_multipath_config(conf);
--
2.17.2

View File

@ -432,6 +432,3 @@ index bee117ac..b7c5122b 100644
assert_ptr_equal((struct test_data *)dmt, &data);
if (data.names) {
--
2.17.2

View File

@ -93,6 +93,3 @@ index 62906e98..06666ccf 100644
extern struct keyword * find_keyword(vector keywords, vector v, char * name);
int snprint_keyword(char *buff, int len, char *fmt, struct keyword *kw,
const void *data);
--
2.17.2

View File

@ -199,6 +199,3 @@ index 97acdbb2..3e780fce 100644
+ init_config;
+ uninit_config;
+} LIBMULTIPATH_2.1.0;
--
2.17.2

View File

@ -151,6 +151,3 @@ index 7cf4faf9..91606efc 100644
/*
* DESCRIPTION :
--
2.17.2

View File

@ -62,6 +62,3 @@ index dc4974b9..4bbfce9a 100644
udev_unref(udev);
if (dev)
FREE(dev);
--
2.17.2

View File

@ -50,6 +50,3 @@ index a6a3bcf6..278e48f7 100644
udev_unref(udev);
return (ret >= 0) ? ret : MPATH_PR_OTHER;
--
2.17.2

View File

@ -163,6 +163,3 @@ index 3e780fce..0c300c81 100644
+ libmultipath_init;
+ libmultipath_exit;
+} LIBMULTIPATH_2.2.0;
--
2.17.2

View File

@ -43,6 +43,3 @@ index 4bbfce9a..9ae46ed5 100644
if (dev)
FREE(dev);
#ifdef _DEBUG_
--
2.17.2

View File

@ -91,6 +91,3 @@ index 91606efc..5435eae4 100644
* RESTRICTIONS:
*
* RETURNS: 0->Success, 1->Failed.
--
2.17.2

View File

@ -47,6 +47,3 @@ index 278e48f7..3c2e6576 100644
return (ret >= 0) ? ret : MPATH_PR_OTHER;
}
--
2.17.2

View File

@ -52,6 +52,3 @@ index 00b66ba4..c5c374b7 100644
libmp_udev_set_sync_support(0);
while ((arg = getopt(argc, argv, ":dsv:k::Bniw")) != EOF ) {
--
2.17.2

View File

@ -35,6 +35,3 @@ index cd65afcc..c1d6f7ae 100644
},
/*
* Promise Technology
--
2.17.2

View File

@ -40,6 +40,3 @@ index c1d6f7ae..a54cc0a3 100644
{
/* 3000 / 6000 Series */
.vendor = "VIOLIN",
--
2.17.2

View File

@ -112,6 +112,3 @@ index 1c8aac08..d36f0d0d 100644
return ret;
}
--
2.17.2

View File

@ -26,6 +26,3 @@ index a54cc0a3..921aadc5 100644
.product = "^NetApp ONTAP Controller",
.pgpolicy = MULTIBUS,
.no_path_retry = NO_PATH_RETRY_QUEUE,
--
2.17.2

View File

@ -100,6 +100,3 @@ index 1c5ce9d2..ce2b6800 100644
if (polls[i].revents & POLLIN) {
struct timespec start_time;
--
2.17.2

View File

@ -93,6 +93,3 @@ index c5c374b7..ce14bb66 100644
setup_thread_attr(&misc_attr, 64 * 1024, 0);
setup_thread_attr(&uevent_attr, DEFAULT_UEVENT_STACKSIZE * 1024, 0);
--
2.17.2

View File

@ -141,6 +141,3 @@ index ce14bb66..abc6a9f7 100644
#ifdef _DEBUG_
dbg_free_final(NULL);
#endif
--
2.17.2

View File

@ -120,6 +120,3 @@ index abc6a9f7..3da0d7cc 100644
cleanup_foreign();
cleanup_checkers();
cleanup_prio();
--
2.17.2

View File

@ -40,6 +40,3 @@ index 3da0d7cc..eb760a71 100644
static inline enum daemon_status get_running_state(void)
{
--
2.17.2

View File

@ -159,6 +159,3 @@ index eb760a71..9eb658d4 100644
#ifdef _DEBUG_
dbg_free_final(NULL);
#endif
--
2.17.2

View File

@ -51,6 +51,3 @@ index 9eb658d4..07973e85 100644
#ifdef _DEBUG_
dbg_free_final(NULL);
#endif
--
2.17.2

View File

@ -37,6 +37,3 @@ index 07973e85..fc1f8d7f 100644
condlog(2, "--------shut down-------");
if (logsink == 1)
--
2.17.2

View File

@ -40,6 +40,3 @@ index fc1f8d7f..f6b80668 100644
struct config *conf;
char *envp;
enum daemon_status state;
--
2.17.2

View File

@ -55,6 +55,3 @@ index f6b80668..07068e4a 100644
}
static int
--
2.17.2

View File

@ -47,6 +47,3 @@ index 07068e4a..6b9e323e 100644
}
static int
--
2.17.2

View File

@ -23,6 +23,3 @@ index b561cbfd..f52f5970 100644
pthread_mutex_lock(&waiter->events_lock);
vector_foreach_slot(waiter->events, dev_evt, i)
free(dev_evt);
--
2.17.2

View File

@ -25,6 +25,3 @@ index 6b9e323e..7ab3eab8 100644
if (verbosity)
conf->verbosity = verbosity;
--
2.17.2

View File

@ -87,6 +87,3 @@ index fa6b3c53..e29b4d41 100644
void libmp_udev_set_sync_support(int on);
struct dm_task *libmp_dm_task_create(int task);
int dm_simplecmd_flush (int, const char *, uint16_t);
--
2.17.2

View File

@ -35,6 +35,3 @@ index 7ab3eab8..4c4e2eab 100644
libmultipath_init();
if (atexit(libmultipath_exit))
condlog(3, "failed to register exit handler for libmultipath");
--
2.17.2

View File

@ -24,6 +24,3 @@ index 15baef88..0c327ffc 100644
logdbg(stderr,"enter log_thread_stop\n");
pthread_mutex_lock(&logev_lock);
--
2.17.2

View File

@ -90,6 +90,3 @@ index 4c4e2eab..50cc3356 100644
return sd_notify_exit(exit_code);
}
--
2.17.2

View File

@ -143,6 +143,3 @@ index 0c327ffc..3a2566ae 100644
pthread_mutex_destroy(&logq_lock);
pthread_mutex_destroy(&logev_lock);
--
2.17.2

View File

@ -88,6 +88,3 @@ index 50cc3356..4de0978e 100644
if (poll_dmevents)
cleanup_dmevent_waiter();
--
2.17.2

View File

@ -105,6 +105,3 @@ index 9ae46ed5..1949a1cd 100644
#ifdef _DEBUG_
dbg_free_final(NULL);
#endif
--
2.17.2

View File

@ -27,6 +27,3 @@ index 3c2e6576..14245cc3 100644
return (ret >= 0) ? ret : MPATH_PR_OTHER;
}
--
2.17.2

View File

@ -90,6 +90,3 @@ index 1949a1cd..043d8fa7 100644
}
static int
--
2.17.2

View File

@ -57,6 +57,3 @@ index 00000000..0537fd56
+ ...
+ fun:_dl_init
+}
--
2.17.2

View File

@ -436,6 +436,3 @@ index 84a3ba2f..0b42e255 100644
return 0;
}
--
2.17.2

View File

@ -180,6 +180,3 @@ index 57f832b7..4dd0873b 100644
struct config *get_multipath_config(void)
{
--
2.17.2

View File

@ -147,6 +147,3 @@ index 2c878c63..6d22cd23 100644
void expect_condlog(int prio, char *string);
#endif
--
2.17.2

View File

@ -82,6 +82,3 @@ index 867f0f84..b6a5f5b7 100644
err = uxclnt(s, uxsock_timeout + 100);
free_config(conf);
return err;
--
2.17.2

View File

@ -152,6 +152,3 @@ index ce2b6800..cd462b6d 100644
if (polls[i].revents & POLLIN) {
struct timespec start_time;
--
2.17.2

View File

@ -102,6 +102,3 @@ index 3a2566ae..0d48c52c 100644
+ flush_logqueue();
log_close();
}
--
2.17.2

View File

@ -500,6 +500,3 @@ index 67a7379f..2e3583f5 100644
+ dm_prereq;
+ skip_libmp_dm_init;
+} LIBMULTIPATH_4.1.0;
--
2.17.2

View File

@ -527,6 +527,3 @@ index 00000000..5ffabb9d
+ r += test_mpathvalid();
+ return r;
+}
--
2.17.2

View File

@ -85,6 +85,3 @@ index e7084664..877e8f2b 100644
!strcmp(pp->uid_attribute, ""))));
}
--
2.17.2

View File

@ -40,6 +40,3 @@ index 877e8f2b..c74f13bf 100644
len = uid_fallback(pp, path_state, &origin);
}
}
--
2.17.2

View File

@ -155,6 +155,3 @@ index 4ce30551..cfa7b649 100644
struct vpd_vendor_page {
int pg;
const char *name;
--
2.17.2

View File

@ -333,6 +333,3 @@ index 7242d39b..ea66a01e 100644
.B bindings_file
The full pathname of the binding file to be used when the user_friendly_names
option is set.
--
2.17.2

View File

@ -32,6 +32,3 @@ index b6a5f5b7..2eab4854 100644
vecs->mpvec = mpvec;
/*
--
2.17.2

View File

@ -61,6 +61,3 @@ index add7bb97..f901e9ff 100644
if (pg == 0x80)
len = parse_vpd_pg80(buff, str, maxlen);
else if (pg == 0x83)
--
2.17.2

View File

@ -86,6 +86,3 @@ index fa4ac5d9..f771a830 100644
return 0;
len = get_vpd_sgio(pp->fd, 0xC9, 0, buff, 44);
if (len <= 0)
--
2.17.2

View File

@ -136,6 +136,3 @@ index 0d48c52c..65992101 100644
}
void log_thread_stop (void)
--
2.17.2

View File

@ -105,6 +105,3 @@ index d2448f6a..fa224e4d 100644
-void free_logarea (void);
#endif /* LOG_H */
--
2.17.2

View File

@ -279,6 +279,3 @@ index 2e3583f5..751099dc 100644
+global:
+ start_checker_thread;
+} LIBMULTIPATH_4.2.0;
--
2.17.2

View File

@ -146,6 +146,3 @@ index c076be72..d9fd9cb8 100644
return;
}
if (cmpp->nextpg != mpp->bestpg) {
--
2.17.2

View File

@ -107,6 +107,3 @@ index 2eab4854..4417860b 100644
if (bindings_read_only)
conf->bindings_read_only = bindings_read_only;
check_alias_settings(conf);
--
2.17.2

View File

@ -144,6 +144,3 @@ index fc6e0e0c..8d34ae32 100644
install: $(LIBS)
$(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
--
2.17.2

View File

@ -25,6 +25,3 @@ index 751099dc..2228f4ec 100644
+global:
+ get_next_string;
+} LIBMULTIPATH_4.3.0;
--
2.17.2

View File

@ -25,6 +25,3 @@ index 54da774e..50673fae 100644
valgrind --leak-check=full --error-exitcode=128 ./$< >$@ 2>&1
OBJS = $(TESTS:%=%.o) $(HELPERS)
--
2.17.2

View File

@ -48,6 +48,3 @@ index 5ffabb9d..cfe4bae1 100644
}
#define setup_test(name) \
--
2.17.2

View File

@ -29,6 +29,3 @@ index 79322e86..41789c46 100644
condlog(0, "%s: configured reservation key doesn't match: 0x%" PRIx64, alias, get_be64(mpp->reservation_key));
ret = MPATH_PR_SYNTAX_ERROR;
goto out1;
--
2.17.2

View File

@ -34,6 +34,3 @@ index 41789c46..08077936 100644
memcpy(&mpp->reservation_key, paramp->sa_key, 8);
if (update_prkey_flags(alias, get_be64(mpp->reservation_key),
paramp->sa_flags)) {
--
2.17.2

View File

@ -37,6 +37,3 @@ index 163ffbc9..c70243c3 100644
out:
FREE(buf);
free_uniques(uniques);
--
2.17.2

View File

@ -32,6 +32,3 @@ index 9f3cb38d..a643703e 100644
j = i + 1;
vector_foreach_slot_after(mptable, mp2, j) {
if (strcmp(mp1->wwid, mp2->wwid))
--
2.17.2

View File

@ -23,6 +23,3 @@ index 6498c88c..10fa32cd 100644
static int _log_enqueue(int prio, const char * fmt, va_list ap)
{
int len, fwd;
--
2.17.2

View File

@ -29,6 +29,3 @@ index a643703e..be310159 100644
continue;
condlog(1, "%s: duplicate multipath config section for %s",
__func__, mp1->wwid);
--
2.17.2

View File

@ -60,6 +60,3 @@ index ea66a01e..8ef3a747 100644
.RS
.TP
The default is: in \fB/sys/block/sd<x>/device/timeout\fR
--
2.17.2

View File

@ -31,6 +31,3 @@ index 4417860b..7612430a 100644
return 1;
}
if (!pp->mpp) {
--
2.17.2

View File

@ -46,6 +46,3 @@ index d9fd9cb8..999f3106 100644
mpp->action = ACT_NOTHING;
condlog(3, "%s: set ACT_NOTHING (map unchanged)",
mpp->alias);
--
2.17.2

View File

@ -60,6 +60,3 @@ index 999f3106..3263bb01 100644
conf = get_multipath_config();
allow_queueing = conf->allow_queueing;
put_multipath_config(conf);
--
2.17.2

View File

@ -56,6 +56,3 @@ index 7612430a..92c45d44 100644
}
goto out;
}
--
2.17.2

View File

@ -22,6 +22,3 @@ index 5363049d..2e48ee81 100644
{
int i;
struct io_err_stat_path *pp;
--
2.17.2

View File

@ -252,6 +252,3 @@ index 2e48ee81..feb66469 100644
+ free_io_err_pathvec();
io_destroy(ioctx);
}
--
2.17.2

View File

@ -141,6 +141,3 @@ index feb66469..775e7259 100644
}
static void cleanup_exited(__attribute__((unused)) void *arg)
--
2.17.2

View File

@ -106,6 +106,3 @@ index 775e7259..92871f40 100644
vector_foreach_slot(io_err_pathvec, pp, i) {
for (j = 0; j < CONCUR_NR_EVENT; j++) {
rc = try_to_cancel_timeout_io(pp->dio_ctx_array + j,
--
2.17.2

Some files were not shown because too many files have changed in this diff Show More