diff options
| author | Changqing Li <changqing.li@windriver.com> | 2019-02-20 16:56:19 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-02-22 18:14:52 -0800 |
| commit | 48bdb941563c7858fa659632cbd701ff08341f96 (patch) | |
| tree | a43b81bbf43de676534911f1fe065a784dea6929 | |
| parent | 7126d8577f013b5e10e6a10d4d83cdebccb452e5 (diff) | |
| download | meta-openembedded-48bdb941563c7858fa659632cbd701ff08341f96.tar.gz | |
multipath-tools: upgrade 0.7.9 -> 0.8.0
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/0021-RH-fixup-udev-rules-for-redhat.patch | 24 | ||||
| -rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/0022-RH-Remove-the-property-blacklist-exception-builtin.patch | 31 | ||||
| -rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/0026-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch | 36 | ||||
| -rw-r--r-- | meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.0.bb (renamed from meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.9.bb) | 2 |
4 files changed, 38 insertions, 55 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0021-RH-fixup-udev-rules-for-redhat.patch b/meta-oe/recipes-support/multipath-tools/files/0021-RH-fixup-udev-rules-for-redhat.patch index 4ef3e708da..e88e25617d 100644 --- a/meta-oe/recipes-support/multipath-tools/files/0021-RH-fixup-udev-rules-for-redhat.patch +++ b/meta-oe/recipes-support/multipath-tools/files/0021-RH-fixup-udev-rules-for-redhat.patch | |||
| @@ -10,18 +10,21 @@ false warnings that gcc throws because of the changed options. Fix these | |||
| 10 | too. | 10 | too. |
| 11 | 11 | ||
| 12 | Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> | 12 | Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> |
| 13 | |||
| 14 | Update patch to 0.8.0 | ||
| 15 | |||
| 16 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 13 | --- | 17 | --- |
| 14 | Makefile.inc | 2 +- | 18 | Makefile.inc | 2 +- |
| 15 | kpartx/kpartx.rules | 2 +- | 19 | kpartx/kpartx.rules | 2 +- |
| 16 | multipath/Makefile | 4 ++-- | 20 | multipath/Makefile | 4 ++-- |
| 17 | multipath/main.c | 2 +- | 21 | 3 files changed, 4 insertions(+), 4 deletions(-) |
| 18 | 4 files changed, 5 insertions(+), 5 deletions(-) | ||
| 19 | 22 | ||
| 20 | diff --git a/Makefile.inc b/Makefile.inc | 23 | diff --git a/Makefile.inc b/Makefile.inc |
| 21 | index af2f5ba..0b271ea 100644 | 24 | index fc728ca..2f0bcea 100644 |
| 22 | --- a/Makefile.inc | 25 | --- a/Makefile.inc |
| 23 | +++ b/Makefile.inc | 26 | +++ b/Makefile.inc |
| 24 | @@ -51,7 +51,7 @@ endif | 27 | @@ -48,7 +48,7 @@ endif |
| 25 | prefix = | 28 | prefix = |
| 26 | exec_prefix = $(prefix) | 29 | exec_prefix = $(prefix) |
| 27 | usr_prefix = $(prefix) | 30 | usr_prefix = $(prefix) |
| @@ -64,19 +67,6 @@ index 0828a8f..b9bbb3c 100644 | |||
| 64 | $(RM) $(DESTDIR)$(man8dir)/$(EXEC).8.gz | 67 | $(RM) $(DESTDIR)$(man8dir)/$(EXEC).8.gz |
| 65 | $(RM) $(DESTDIR)$(man5dir)/$(EXEC).conf.5.gz | 68 | $(RM) $(DESTDIR)$(man5dir)/$(EXEC).conf.5.gz |
| 66 | 69 | ||
| 67 | diff --git a/multipath/main.c b/multipath/main.c | ||
| 68 | index 3f0a6aa..6fdde03 100644 | ||
| 69 | --- a/multipath/main.c | ||
| 70 | +++ b/multipath/main.c | ||
| 71 | @@ -389,7 +389,7 @@ static int find_multipaths_check_timeout(const struct path *pp, long tmo, | ||
| 72 | struct timespec now, ftimes[2], tdiff; | ||
| 73 | struct stat st; | ||
| 74 | long fd; | ||
| 75 | - int r, err, retries = 0; | ||
| 76 | + int r, err = 0, retries = 0; | ||
| 77 | |||
| 78 | clock_gettime(CLOCK_REALTIME, &now); | ||
| 79 | |||
| 80 | -- | 70 | -- |
| 81 | 2.7.4 | 71 | 2.7.4 |
| 82 | 72 | ||
diff --git a/meta-oe/recipes-support/multipath-tools/files/0022-RH-Remove-the-property-blacklist-exception-builtin.patch b/meta-oe/recipes-support/multipath-tools/files/0022-RH-Remove-the-property-blacklist-exception-builtin.patch index a5c2b5e6c8..fd10608926 100644 --- a/meta-oe/recipes-support/multipath-tools/files/0022-RH-Remove-the-property-blacklist-exception-builtin.patch +++ b/meta-oe/recipes-support/multipath-tools/files/0022-RH-Remove-the-property-blacklist-exception-builtin.patch | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | From 1fede9514566a21cdf3da99e22ddf5a7b2c856c6 Mon Sep 17 00:00:00 2001 | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From:Benjamin Marzinski <bmarzins@redhat.com> |
| 3 | Date: Fri, 23 Nov 2018 16:47:31 +0800 | 3 | Date: Wed, 2 Jul 2014 12:49:53 -0500 |
| 4 | Subject: [PATCH] From 0000000000000000000000000000000000000000 Mon Sep 17 | 4 | Subject: [PATCH] RH: Remove the property blacklist exception builtin |
| 5 | 00:00:00 2001 From: Benjamin Marzinski <bmarzins@redhat.com> Date: Wed, 2 Jul | ||
| 6 | 2014 12:49:53 -0500 Subject: [PATCH] RH: Remove the property blacklist | ||
| 7 | exception builtin | ||
| 8 | 5 | ||
| 9 | Multipath set the default property blacklist exceptions to | 6 | Multipath set the default property blacklist exceptions to |
| 10 | (ID_SCSI_VPD|ID_WWN). This has the effect of blacklisting some internal | 7 | (ID_SCSI_VPD|ID_WWN). This has the effect of blacklisting some internal |
| @@ -18,21 +15,21 @@ Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> | |||
| 18 | 15 | ||
| 19 | Upsteam-Status: Pending | 16 | Upsteam-Status: Pending |
| 20 | 17 | ||
| 21 | update this patch to new version | 18 | Update patch to 0.8.0 |
| 22 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 19 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 23 | --- | 20 | --- |
| 24 | libmultipath/blacklist.c | 13 +++++-------- | 21 | libmultipath/blacklist.c | 13 +++++-------- |
| 25 | 1 file changed, 5 insertions(+), 8 deletions(-) | 22 | 1 file changed, 5 insertions(+), 8 deletions(-) |
| 26 | 23 | ||
| 27 | diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c | 24 | diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c |
| 28 | index 318ec03..145fed3 100644 | 25 | index e0d0279..9f58313 100644 |
| 29 | --- a/libmultipath/blacklist.c | 26 | --- a/libmultipath/blacklist.c |
| 30 | +++ b/libmultipath/blacklist.c | 27 | +++ b/libmultipath/blacklist.c |
| 31 | @@ -192,12 +192,6 @@ setup_default_blist (struct config * conf) | 28 | @@ -192,12 +192,6 @@ setup_default_blist (struct config * conf) |
| 32 | char * str; | 29 | char * str; |
| 33 | int i; | 30 | int i; |
| 34 | 31 | ||
| 35 | - str = STRDUP("^(ram|raw|loop|fd|md|dm-|sr|scd|st|dcssblk)[0-9]"); | 32 | - str = STRDUP("^(ram|zram|raw|loop|fd|md|dm-|sr|scd|st|dcssblk)[0-9]"); |
| 36 | - if (!str) | 33 | - if (!str) |
| 37 | - return 1; | 34 | - return 1; |
| 38 | - if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT)) | 35 | - if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT)) |
| @@ -41,17 +38,17 @@ index 318ec03..145fed3 100644 | |||
| 41 | str = STRDUP("^(td|hd|vd)[a-z]"); | 38 | str = STRDUP("^(td|hd|vd)[a-z]"); |
| 42 | if (!str) | 39 | if (!str) |
| 43 | return 1; | 40 | return 1; |
| 44 | @@ -415,8 +409,11 @@ filter_property(struct config * conf, struct udev_device * udev) | 41 | @@ -415,8 +409,11 @@ filter_property(struct config *conf, struct udev_device *udev, int lvl) |
| 45 | } | 42 | } |
| 46 | } | 43 | } |
| 47 | 44 | ||
| 48 | - log_filter(devname, NULL, NULL, NULL, env, NULL, r); | 45 | - log_filter(devname, NULL, NULL, NULL, env, NULL, r, lvl); |
| 49 | - return r; | 46 | - return r; |
| 50 | + if (VECTOR_SIZE(conf->elist_property)) { | 47 | + if (VECTOR_SIZE(conf->elist_property)) { |
| 51 | + log_filter(devname, NULL, NULL, NULL, env, NULL, r); | 48 | + log_filter(devname, NULL, NULL, NULL, env, NULL, r, lvl); |
| 52 | + return r; | 49 | + return r; |
| 53 | + } | 50 | + } |
| 54 | + return 0; | 51 | + return 0; |
| 55 | } | 52 | } |
| 56 | 53 | ||
| 57 | static void free_ble(struct blentry *ble) | 54 | static void free_ble(struct blentry *ble) |
diff --git a/meta-oe/recipes-support/multipath-tools/files/0026-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch b/meta-oe/recipes-support/multipath-tools/files/0026-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch index 912832a084..938262ba47 100644 --- a/meta-oe/recipes-support/multipath-tools/files/0026-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch +++ b/meta-oe/recipes-support/multipath-tools/files/0026-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | From 694a2a6c7e4b523603b30a109b6efb1c30a7cec3 Mon Sep 17 00:00:00 2001 | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Benjamin Marzinski <bmarzins@redhat.com> |
| 3 | Date: Mon, 26 Nov 2018 10:17:58 +0800 | 3 | Date: Fri, 17 Oct 2014 11:20:34 -0500 |
| 4 | Subject: [PATCH] From 0000000000000000000000000000000000000000 Mon Sep 17 | 4 | Subject: [PATCH] RH: add wwids from kernel cmdline mpath.wwids with -A |
| 5 | 00:00:00 2001 From: Benjamin Marzinski <bmarzins@redhat.com> Date: Fri, 17 | ||
| 6 | Oct 2014 11:20:34 -0500 Subject: [PATCH] RH: add wwids from kernel cmdline | ||
| 7 | mpath.wwids with -A | ||
| 8 | 5 | ||
| 9 | This patch adds another option to multipath, "-A", which reads | 6 | This patch adds another option to multipath, "-A", which reads |
| 10 | /proc/cmdline for mpath.wwid=<WWID> options, and adds any wwids it finds | 7 | /proc/cmdline for mpath.wwid=<WWID> options, and adds any wwids it finds |
| @@ -19,16 +16,16 @@ Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> | |||
| 19 | 16 | ||
| 20 | Upstream-Status: Pending | 17 | Upstream-Status: Pending |
| 21 | 18 | ||
| 22 | Update this patch to new version | 19 | Update this patch to new version 0.8.0 |
| 23 | 20 | ||
| 24 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 21 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 25 | --- | 22 | --- |
| 26 | libmultipath/wwids.c | 44 +++++++++++++++++++++++++++++++++++++++++++ | 23 | libmultipath/wwids.c | 44 +++++++++++++++++++++++++++++++++++++++++++ |
| 27 | libmultipath/wwids.h | 1 + | 24 | libmultipath/wwids.h | 1 + |
| 28 | multipath/main.c | 10 ++++++++-- | 25 | multipath/main.c | 9 ++++++++- |
| 29 | multipath/multipath.8 | 3 +++ | 26 | multipath/multipath.8 | 3 +++ |
| 30 | multipathd/multipathd.service | 1 + | 27 | multipathd/multipathd.service | 1 + |
| 31 | 5 files changed, 57 insertions(+), 2 deletions(-) | 28 | 5 files changed, 57 insertions(+), 1 deletion(-) |
| 32 | 29 | ||
| 33 | diff --git a/libmultipath/wwids.c b/libmultipath/wwids.c | 30 | diff --git a/libmultipath/wwids.c b/libmultipath/wwids.c |
| 34 | index 53e7951..9ba9b62 100644 | 31 | index 53e7951..9ba9b62 100644 |
| @@ -95,19 +92,18 @@ index 0c6ee54..e32a0b0 100644 | |||
| 95 | enum { | 92 | enum { |
| 96 | WWID_IS_NOT_FAILED = 0, | 93 | WWID_IS_NOT_FAILED = 0, |
| 97 | diff --git a/multipath/main.c b/multipath/main.c | 94 | diff --git a/multipath/main.c b/multipath/main.c |
| 98 | index ffa5b22..bcf8885 100644 | 95 | index 5abb118..c751b31 100644 |
| 99 | --- a/multipath/main.c | 96 | --- a/multipath/main.c |
| 100 | +++ b/multipath/main.c | 97 | +++ b/multipath/main.c |
| 101 | @@ -120,7 +120,7 @@ usage (char * progname) | 98 | @@ -134,6 +134,7 @@ usage (char * progname) |
| 102 | { | ||
| 103 | fprintf (stderr, VERSION_STRING); | 99 | fprintf (stderr, VERSION_STRING); |
| 104 | fprintf (stderr, "Usage:\n"); | 100 | fprintf (stderr, "Usage:\n"); |
| 105 | - fprintf (stderr, " %s [-a|-c|-w|-W] [-d] [-r] [-i] [-v lvl] [-p pol] [-b fil] [-q] [dev]\n", progname); | 101 | fprintf (stderr, " %s [-a|-c|-w|-W] [-d] [-r] [-i] [-v lvl] [-p pol] [-b fil] [-q] [dev]\n", progname); |
| 106 | + fprintf (stderr, " %s [-a|-A|-c|-w|-W] [-d] [-r] [-i] [-v lvl] [-p pol] [-b fil] [-q] [dev]\n", progname); | 102 | + fprintf (stderr, " %s [-a|-A|-c|-w|-W] [-d] [-r] [-i] [-v lvl] [-p pol] [-b fil] [-q] [dev]\n", progname); |
| 107 | fprintf (stderr, " %s -l|-ll|-f [-v lvl] [-b fil] [-R num] [dev]\n", progname); | 103 | fprintf (stderr, " %s -l|-ll|-f [-v lvl] [-b fil] [-R num] [dev]\n", progname); |
| 108 | fprintf (stderr, " %s -F [-v lvl] [-R num]\n", progname); | 104 | fprintf (stderr, " %s -F [-v lvl] [-R num]\n", progname); |
| 109 | fprintf (stderr, " %s [-t|-T]\n", progname); | 105 | fprintf (stderr, " %s [-t|-T]\n", progname); |
| 110 | @@ -134,6 +134,8 @@ usage (char * progname) | 106 | @@ -147,6 +148,8 @@ usage (char * progname) |
| 111 | " -f flush a multipath device map\n" | 107 | " -f flush a multipath device map\n" |
| 112 | " -F flush all multipath device maps\n" | 108 | " -F flush all multipath device maps\n" |
| 113 | " -a add a device wwid to the wwids file\n" | 109 | " -a add a device wwid to the wwids file\n" |
| @@ -116,18 +112,18 @@ index ffa5b22..bcf8885 100644 | |||
| 116 | " -c check if a device should be a path in a multipath device\n" | 112 | " -c check if a device should be a path in a multipath device\n" |
| 117 | " -C check if a multipath device has usable paths\n" | 113 | " -C check if a multipath device has usable paths\n" |
| 118 | " -q allow queue_if_no_path when multipathd is not running\n" | 114 | " -q allow queue_if_no_path when multipathd is not running\n" |
| 119 | @@ -868,7 +870,7 @@ main (int argc, char *argv[]) | 115 | @@ -870,7 +873,7 @@ main (int argc, char *argv[]) |
| 120 | exit(1); | 116 | exit(RTVL_FAIL); |
| 121 | multipath_conf = conf; | 117 | multipath_conf = conf; |
| 122 | conf->retrigger_tries = 0; | 118 | conf->retrigger_tries = 0; |
| 123 | - while ((arg = getopt(argc, argv, ":adcChl::FfM:v:p:b:BrR:itTquUwW")) != EOF ) { | 119 | - while ((arg = getopt(argc, argv, ":adcChl::FfM:v:p:b:BrR:itTquUwW")) != EOF ) { |
| 124 | + while ((arg = getopt(argc, argv, ":aAdcChl::FfM:v:p:b:BrR:itquUwW")) != EOF ) { | 120 | + while ((arg = getopt(argc, argv, ":aAdcChl::FfM:v:p:b:BrR:itTquUwW")) != EOF ) { |
| 125 | switch(arg) { | 121 | switch(arg) { |
| 126 | case 1: printf("optarg : %s\n",optarg); | 122 | case 1: printf("optarg : %s\n",optarg); |
| 127 | break; | 123 | break; |
| 128 | @@ -935,6 +937,10 @@ main (int argc, char *argv[]) | 124 | @@ -937,6 +940,10 @@ main (int argc, char *argv[]) |
| 129 | case 't': | 125 | case 't': |
| 130 | r = dump_config(conf, NULL, NULL); | 126 | r = dump_config(conf, NULL, NULL) ? RTVL_FAIL : RTVL_OK; |
| 131 | goto out_free_config; | 127 | goto out_free_config; |
| 132 | + case 'A': | 128 | + case 'A': |
| 133 | + if (remember_cmdline_wwid() != 0) | 129 | + if (remember_cmdline_wwid() != 0) |
diff --git a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.9.bb b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.0.bb index 9cf104efa9..0cff48dc4a 100644 --- a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.9.bb +++ b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.0.bb | |||
| @@ -46,7 +46,7 @@ SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http \ | |||
| 46 | 46 | ||
| 47 | LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" | 47 | LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" |
| 48 | 48 | ||
| 49 | SRCREV = "5c67a8b5944dd13542e6b44fa2ae9803e0cc4282" | 49 | SRCREV = "eb688e1833e9533bfd9496ddc37eecc93590defa" |
| 50 | 50 | ||
| 51 | S = "${WORKDIR}/git" | 51 | S = "${WORKDIR}/git" |
| 52 | 52 | ||
