Merge ~paelzer/ubuntu/+source/multipath-tools:merge-artful into ~usd-import-team/ubuntu/+source/multipath-tools:debian/sid

Proposed by ChristianEhrhardt on 2017-07-18
Status: Merged
Merge reported by: Robie Basak
Merged at revision: cd2f5a906ca7f75c18f382f579b5e84ba07b68ea
Proposed branch: ~paelzer/ubuntu/+source/multipath-tools:merge-artful
Merge into: ~usd-import-team/ubuntu/+source/multipath-tools:debian/sid
Diff against target: 1804 lines (+1434/-76)
19 files modified
debian/changelog (+1047/-0)
debian/control (+15/-6)
debian/initramfs/hooks (+22/-2)
debian/initramfs/init-top (+18/-2)
debian/initramfs/kpartx.hook (+20/-0)
debian/initramfs/local-bottom (+62/-0)
debian/initramfs/local-premount (+30/-0)
debian/kpartx-boot.postinst (+34/-0)
debian/kpartx-boot.postrm (+45/-0)
debian/kpartx.install (+2/-2)
debian/multipath-tools.dm-mpath-lvm.udev (+26/-0)
debian/multipath-tools.preinst (+4/-0)
debian/patches/1000--set-umask-in-multipathd.patch (+30/-0)
debian/patches/disable-fexceptions-udeb.patch (+16/-0)
debian/patches/enable-find-multipaths.patch (+11/-0)
debian/patches/kpartx_more_loopback_fixes.patch (+40/-0)
debian/patches/series (+4/-0)
debian/rules (+8/-4)
dev/null (+0/-60)
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre (community) 2017-07-18 Approve on 2017-07-18
LocutusOfBorg (community) 2017-07-18 Approve on 2017-07-18
Nish Aravamudan Needs Fixing on 2017-07-18
Review via email: mp+327618@code.launchpad.net

Description of the Change

Merge for Artful

To post a comment you must log in.
ChristianEhrhardt (paelzer) wrote :

I set Mathieu as reviewer as he is the real owner of multipath and Locutus as he asked for the merge today.

Nish Aravamudan (nacc) wrote :
Download full text (6.0 KiB)

W: Expected old/debian (f620d8a88361e00ecced52874626792ade5191ea) is not the same commit as paelzer/old/debian (01363d97b0860f4eeb74f63e755e6bc9147accb0)
E: Expected old/debian (41104278899b70fefe0ca3c24785a1ffaea90ce9) is not the same tree as paelzer/old/debian (7f557514e0639462aaa5ff4523df244980e98b0c)
W: Expected old/ubuntu (571ebab5cf002073433260c8c223a713551d66db) is not the same commit as paelzer/old/ubuntu (aca777a8dfc2de383fefc1cae6775a00f41b5829)
E: Expected old/ubuntu (f4cd2bbb055d15aff843351ccaa2e1dfc0bc7274) is not the same tree as paelzer/old/ubuntu (9ce6a678d2ec40bb833c43b423ba6c2e991589b0)
W: Expected new/debian (188a3d6b61d94c19153dd32ab16bafaeee958de6) is not the same commit as paelzer/new/debian (ea22feb298f1aa175e7d30e28773eab9b0cef3ef)
E: Expected new/debian (83c617aa74241f61f1e62b976aa5898ae48d90a8) is not the same tree as paelzer/new/debian (3edab67c7586419705e3b69a2430b753753fdf2d)
E: More than one changelog diff hunk detected
+multipath-tools (0.6.4-5ubuntu1) artful; urgency=medium
+
+ * Merge from Debian. (LP: #1548303) Remaining changes:
+ - d/control:
+ - multipath-udeb: add sg3-udeb Depends
+ - d/rules: Move udev rules to priority 95, because rules that load modules
+ should be >90.
+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
+ that multipathd will be able to start.
+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
+ - d/initramfs/kpartx.hook
+ - d/kpartx-boot.postinst
+ - d/kpartx-boot.postrm
+ - d/control: Add kpartx-boot package for dmraid
+ - d/rules: Install kpartx initramfs hook
+ - d/kpartx.install: install all arch /lib* kpartx udev rules
+ - patches to multipath source
+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
+ files some more: since we stat() the loopback device node, we can't rely
+ on S_ISREG() tests to handle this case, and should look at the device
+ itself instead. (LP 1543430)
+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
+ by default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
+ - multipath initramfs fixes for booting from multipathed devices
+ - d/initramfs/hooks: also copy wwids file on the installed system to
+ ensure all paths come up on boot. (LP 1479929)
+ - d/initramfs/hooks: install multipathd and required directories.
+ - d/initramfs/hooks: copy dm-mpath-lvm & multipath udev rules to initramfs
+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
+ - d/initramfs/local-bottom: remember to stop multipathd.
+ - d/initramfs/local-premount: wait for udev to settle before the call to
+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
+ chance to be updated by the multipath udev rules (LP 1503286).
+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
+ nor change /etc/multipath/bindings during initramfs (LP 1561103)
+ - d/rules: install d/initramfs/local-bottom
+ - d/rules: install d/initramfs...

Read more...

review: Needs Fixing
ChristianEhrhardt (paelzer) wrote :

I only have a small testbed in regard to multipath, but did what I could to verify:
- s390x multipath setup (2 disks, 2 paths each, 1:1 mappings of adapter to wwn)
  - upgrade to new package - ok
  - reboot with new packaage - ok
- autopkgtests ran against the bileto ppa - ok
  - this need sto run vs proposed as liburcu6 is currently in proposed migration
- FYI Build in Bileto: https://bileto.ubuntu.com/#/ticket/2870

I think this is good, but lets wait a little bit for other opinions and for liburcu migration

review: Approve
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks fine to me, except maybe that now I wonder why we use partx in the udev rules rather than kpartx (I see no benefit to --nr... ); please don't think that I "own" multipath-tools though. You should feel free to upload and do the requisite testing, as much as you can, to validate that multipath-tools works correctly.

review: Approve
ChristianEhrhardt (paelzer) wrote :

Thanks for all your reviews.
I'm likely going to upload then, but I want to look into the reports by the automated linter, posting findings one by one and eventually conclude with fixes and/or please merge now.

E: More than one changelog diff hunk detected

That is odd, the report shows:
2017 14:12:53 +0200
 multipath-tools (0.6.4-5) unstable; urgency=medium

   * Ship multipath udev rules (Closes: #858456)

  -- Patrick Caulfield <email address hidden> Wed, 3 Nov 2004 10:16:34 +0000

+

But the context there is way too old.
Maybe it got it wrong due to the old old/debian, new/debian, ... - more on that in the next post.

The following looks sane:
$ git diff new/debian -- debian/changelog

ChristianEhrhardt (paelzer) wrote :

W: Expected old/debian (f620d8a88361e00ecced52874626792ade5191ea) is not the same commit as paelzer/old/debian (01363d97b0860f4eeb74f63e755e6bc9147accb0)
E: Expected old/debian (41104278899b70fefe0ca3c24785a1ffaea90ce9) is not the same tree as paelzer/old/debian (7f557514e0639462aaa5ff4523df244980e98b0c)
W: Expected old/ubuntu (571ebab5cf002073433260c8c223a713551d66db) is not the same commit as paelzer/old/ubuntu (aca777a8dfc2de383fefc1cae6775a00f41b5829)
E: Expected old/ubuntu (f4cd2bbb055d15aff843351ccaa2e1dfc0bc7274) is not the same tree as paelzer/old/ubuntu (9ce6a678d2ec40bb833c43b423ba6c2e991589b0)
W: Expected new/debian (188a3d6b61d94c19153dd32ab16bafaeee958de6) is not the same commit as paelzer/new/debian (ea22feb298f1aa175e7d30e28773eab9b0cef3ef)
E: Expected new/debian (83c617aa74241f61f1e62b976aa5898ae48d90a8) is not the same tree as paelzer/new/debian (3edab67c7586419705e3b69a2430b753753fdf2d)

Yeah I didn't repush old/new branches to to my repo.
Not important for the actual merge as the merge base is correct.
But the linter found the old ones of the zesty merge still around.

I pushed the updated tags in my repo to match the current USDI state to fix it.

ChristianEhrhardt (paelzer) wrote :

There are two partx (instead of kpartx) references:
1. in debian/initramfs/hooks
  copy_exec /usr/bin/partx
2. debian/multipath-tools.dm-mpath-lvm.udev
  RUN+="/usr/bin/partx -d --nr 1-1024 $devnode",

These reference are there "that way" since

+multipath-tools (0.5.0-7ubuntu15) xenial; urgency=medium
+
+ [ Mauricio Faria de Oliveira ]
+ * Remove partition device nodes of individual paths (for LVM on multipath)
+ (LP: #1540401)
+ - debian/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
+ - debian/initramfs/hooks: copy the udev rule and partx to the initramfs.
+ - debian/initramfs/init-top: load the dm-multipath module for 'multipath -c'.
+ - debian/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
+ * debian/rules: don't ship 95-multipath.rules udev rules anymore; they are
+ not necessary with multipath-tools listening for udev events directly.
+
+ -- Mathieu Trudel-Lapierre <email address hidden> Thu, 11 Feb 2016 19:08:14 -0500

These files are part of multipath-tools which depends on kpartx.
So yeah one could change that, but that is not (doesn't have to be) part of the merge IMHO.

ChristianEhrhardt (paelzer) wrote :

I think we are ready to upload th emerge tag and I would upload the package.

But there is a new rebuild in artful-p that we need to integrate
https://launchpad.net/ubuntu/+source/multipath-tools/0.6.4-3ubuntu6

I could just smash it into the changelog as it is CL only, but I might affect the merges to keep the rich history.
I'd more like:
1. an re-import of multipath
2. making sure changelogs are correct
3. I need to fixup and modify logical/reconstruct/deconstruct
4. push all those tags

Hmm much effort for a pure changelog entry that we are going to overwrite in artful-proposed in a minute.
Can we ignore that if it was never release?

cd2f5a9... by ChristianEhrhardt on 2017-07-19

changelog: insert non-imported no change rebuilds

There are two no-change rebuilds in artful-proposed which were missing
on ubuntu/devel so far.
After a discussion on [1] we agreed that adding a new commit at the tail
of the merge is fine to keep rich history.

[1]: https://irclogs.ubuntu.com/2017/07/19/%23ubuntu-server.html

Signed-off-by: Christian Ehrhardt <email address hidden>

ChristianEhrhardt (paelzer) wrote :

    changelog: insert non-imported no change rebuilds

    There are two no-change rebuilds in artful-proposed which were missing
    on ubuntu/devel so far.
    After a discussion on [1] we agreed that adding a new commit at the tail
    of the merge is fine to keep rich history.

[1]: https://irclogs.ubuntu.com/2017/07/19/%23ubuntu-server.html adding:

ChristianEhrhardt (paelzer) wrote :

Addressed all review feedback and ready to merge before upload.

Nish Aravamudan (nacc) wrote :

On Wed, Jul 19, 2017 at 10:10 AM, ChristianEhrhardt
<email address hidden> wrote:
> W: Expected old/debian (f620d8a88361e00ecced52874626792ade5191ea) is not the same commit as paelzer/old/debian (01363d97b0860f4eeb74f63e755e6bc9147accb0)
> E: Expected old/debian (41104278899b70fefe0ca3c24785a1ffaea90ce9) is not the same tree as paelzer/old/debian (7f557514e0639462aaa5ff4523df244980e98b0c)
> W: Expected old/ubuntu (571ebab5cf002073433260c8c223a713551d66db) is not the same commit as paelzer/old/ubuntu (aca777a8dfc2de383fefc1cae6775a00f41b5829)
> E: Expected old/ubuntu (f4cd2bbb055d15aff843351ccaa2e1dfc0bc7274) is not the same tree as paelzer/old/ubuntu (9ce6a678d2ec40bb833c43b423ba6c2e991589b0)
> W: Expected new/debian (188a3d6b61d94c19153dd32ab16bafaeee958de6) is not the same commit as paelzer/new/debian (ea22feb298f1aa175e7d30e28773eab9b0cef3ef)
> E: Expected new/debian (83c617aa74241f61f1e62b976aa5898ae48d90a8) is not the same tree as paelzer/new/debian (3edab67c7586419705e3b69a2430b753753fdf2d)
>
> Yeah I didn't repush old/new branches to to my repo.
> Not important for the actual merge as the merge base is correct.
> But the linter found the old ones of the zesty merge still around.

Right, the linter does not treat the above as fatal (F: ). But it does
indicate they are problems for the linter itself (it can't lint
further really without the above passing).

Nish Aravamudan (nacc) wrote :

On Wed, Jul 19, 2017 at 10:05 AM, ChristianEhrhardt
<email address hidden> wrote:
> Thanks for all your reviews.
> I'm likely going to upload then, but I want to look into the reports by the automated linter, posting findings one by one and eventually conclude with fixes and/or please merge now.
>
>
> E: More than one changelog diff hunk detected
>
> That is odd, the report shows:
> 2017 14:12:53 +0200
> multipath-tools (0.6.4-5) unstable; urgency=medium
>
> * Ship multipath udev rules (Closes: #858456)
>
> -- Patrick Caulfield <email address hidden> Wed, 3 Nov 2004 10:16:34 +0000
>
> +
>
>
> But the context there is way too old.
> Maybe it got it wrong due to the old old/debian, new/debian, ... - more on that in the next post.

I think this might be a bug in git-merge-changelogs. I'm debugging it
now. Basically, the linter takes new/debian and runs
`git-merge-changelogs` with the expected parameters from our process
and compares that treeish to the proposed target to ensure only new
changelogs entries are introduced. For some reason, that treeish is
removing the last line in d/changelog relative to new/debian.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 8f545ee..56e65c8 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,86 @@
6+multipath-tools (0.6.4-5ubuntu1) artful; urgency=medium
7+
8+ * Merge from Debian. (LP: #1548303) Remaining changes:
9+ - d/control:
10+ - multipath-udeb: add sg3-udeb Depends
11+ - d/rules: Move udev rules to priority 95, because rules that load modules
12+ should be >90.
13+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
14+ that multipathd will be able to start.
15+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
16+ - d/initramfs/kpartx.hook
17+ - d/kpartx-boot.postinst
18+ - d/kpartx-boot.postrm
19+ - d/control: Add kpartx-boot package for dmraid
20+ - d/rules: Install kpartx initramfs hook
21+ - d/kpartx.install: install all arch /lib* kpartx udev rules
22+ - patches to multipath source
23+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
24+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
25+ files some more: since we stat() the loopback device node, we can't rely
26+ on S_ISREG() tests to handle this case, and should look at the device
27+ itself instead. (LP 1543430)
28+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
29+ by default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
30+ - multipath initramfs fixes for booting from multipathed devices
31+ - d/initramfs/hooks: also copy wwids file on the installed system to
32+ ensure all paths come up on boot. (LP 1479929)
33+ - d/initramfs/hooks: install multipathd and required directories.
34+ - d/initramfs/hooks: copy dm-mpath-lvm & multipath udev rules to initramfs
35+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
36+ - d/initramfs/local-bottom: remember to stop multipathd.
37+ - d/initramfs/local-premount: wait for udev to settle before the call to
38+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
39+ chance to be updated by the multipath udev rules (LP 1503286).
40+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
41+ nor change /etc/multipath/bindings during initramfs (LP 1561103)
42+ - d/rules: install d/initramfs/local-bottom
43+ - d/rules: install d/initramfs/local-premount
44+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
45+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
46+ which is not available in the installer environment.
47+ - d/p/disable-fexceptions-udeb.patch: conditionally disable -fexceptions
48+ with CFLAGS_DISABLE_FEXCEPTIONS.
49+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
50+ - Remove partition device nodes of individual paths (for LVM on multipath)
51+ on the new multipath-tools with udev property blacklisting (LP 1540401)
52+ - d/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
53+ - d/initramfs/init-top: load the dm-multipath module for
54+ 'multipath -c'.
55+ - d/initramfs/init-top: start multipathd before udev (required by
56+ 'multipath -u' in the udev rules)
57+ - d/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
58+ - d/rules: rename multipath-tools udev to dm-mpath-lvm
59+ - d/multipath-tools.dm-mpath-lvm.udev: replace 'multipath -c' with
60+ 'multipath -u' which can read udev properties at PROGRAM-rule time
61+ (when udev properties are not yet written to the udev database).
62+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
63+ - init-top: take over loading modules (dm-multipath and SCSI device
64+ handlers); move the missing dm-emc there (now scsi-dh-emc;
65+ see BTS 567014).
66+ - d/rules: do not install local-top anymore.
67+ - remove d/initramfs/local-top
68+ - Fixes typo in package description (availibility -> availability)
69+ (LP 1231182)
70+ - d/control mark transition of file /etc/init.d/multipath-tools-boot
71+ according to case #9 of https://wiki.debian.org/PackageTransition
72+ - debian/initramfs/local-bottom: wait for the multipathd unix socket
73+ to close, so to avoid multipathd.socket unit failure. (LP 1682178)
74+ - debian/initramfs/hooks: Add dm-queue-length: users may want to change
75+ from the default selector and should be able to do so. (LP 1673350)
76+ * Drop changes (in Debian now):
77+ - d/control: Bump udev dependencies (in Debian)
78+ - debian/initramfs/hooks:
79+ - Remove old dm-emc module; it hasn't been in kernel since 2.6.27.
80+ - d/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
81+ where uploads might break kpartx's loopback file handling.
82+ - mark kpartx tests as isolation-machine to avoid issues in e.g. LXD
83+ autopkgtest environments (LP 1644253)
84+ - d/t/tgtbasedmpaths add Test using tgt and open-iscsi to excercise
85+ multipath
86+
87+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 18 Jul 2017 14:12:53 +0200
88+
89 multipath-tools (0.6.4-5) unstable; urgency=medium
90
91 * Ship multipath udev rules (Closes: #858456)
92@@ -21,6 +104,163 @@ multipath-tools (0.6.4-4) unstable; urgency=medium
93
94 -- Ritesh Raj Sarraf <rrs@debian.org> Mon, 20 Feb 2017 19:36:31 +0530
95
96+multipath-tools (0.6.4-3ubuntu6) artful; urgency=medium
97+
98+ * Rebuild against new liburcu6.
99+
100+ -- Gianfranco Costamagna <locutusofborg@debian.org> Tue, 18 Jul 2017 12:08:33 +0200
101+
102+multipath-tools (0.6.4-3ubuntu5) artful; urgency=medium
103+
104+ * No-change rebuild against latest liburcu
105+
106+ -- Jeremy Bicha <jbicha@ubuntu.com> Sat, 15 Jul 2017 09:44:44 -0400
107+
108+multipath-tools (0.6.4-3ubuntu4) zesty; urgency=medium
109+
110+ * debian/initramfs/local-bottom: wait for the multipathd unix socket
111+ to close, so to avoid multipathd.socket unit failure. (LP: #1682178)
112+
113+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> Wed, 12 Apr 2017 14:30:13 -0400
114+
115+multipath-tools (0.6.4-3ubuntu3) zesty; urgency=medium
116+
117+ * debian/initramfs/hooks, debian/initramfs/local-bottom:
118+ Update hooks and local-bottom to use /run instead of /var/run as a path
119+ for multipathd.pid in the initramfs. (LP: #1670811)
120+
121+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Tue, 28 Mar 2017 21:20:22 -0400
122+
123+multipath-tools (0.6.4-3ubuntu2) zesty; urgency=medium
124+
125+ * debian/initramfs/hooks:
126+ - Remove old dm-emc module; it hasn't been in kernel since 2.6.27.
127+ - Add dm-queue-length: users may want to change from the default selector
128+ and should be able to do so. (LP: #1673350)
129+ * debian/patches/path_selector.patch, debian/patches/series: remove
130+ path_selector.patch to get back to the "right" default selector of
131+ service-time, which has been included in the kernel module packages for
132+ a while now and has better throughput than round-robin. It's also the
133+ default upstream. (LP: #1634161)
134+
135+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Fri, 17 Mar 2017 09:37:36 -0400
136+
137+multipath-tools (0.6.4-3ubuntu1) zesty; urgency=medium
138+
139+ * Merge from Debian. (LP: #1621340, LP: #1645274) Remaining changes:
140+ - d/control:
141+ - Bump udev dependencies
142+ - multipath-udeb: add sg3-udeb Depends
143+ - d/rules: Move udev rules to priority 95, because rules that load modules
144+ should be >90.
145+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
146+ that multipathd will be able to start.
147+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
148+ - d/initramfs/kpartx.hook
149+ - d/kpartx-boot.postinst
150+ - d/kpartx-boot.postrm
151+ - d/control: Add kpartx-boot package for dmraid
152+ - d/rules: Install kpartx initramfs hook
153+ - d/kpartx.install: install all arch /lib* kpartx udev rules
154+ - patches (some refreshed to new version) to multipath source
155+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
156+ - d/p/path_selector.patch: switch the default path selector
157+ back to round-robin while service-time isn't available to the installer
158+ multipath-modules.
159+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
160+ files some more: since we stat() the loopback device node, we can't rely
161+ on S_ISREG() tests to handle this case, and should look at the device
162+ itself instead. (LP: #1543430)
163+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
164+ by default -- see the removed 'add_find-multipaths.patch' (LP: #1463046)
165+ - multipath initramfs fixes for booting from multipathed devices
166+ - d/initramfs/hooks: also copy wwids file on the installed system to
167+ ensure all paths come up on boot. (LP: #1479929)
168+ - d/initramfs/hooks: install multipathd and required directories.
169+ - d/initramfs/hooks: copy dm-mpath-lvm & multipath udev rules to initramfs
170+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
171+ - d/initramfs/local-bottom: remember to stop multipathd.
172+ - d/initramfs/local-premount: wait for udev to settle before the call to
173+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
174+ chance to be updated by the multipath udev rules (LP: #1503286).
175+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
176+ nor change /etc/multipath/bindings during initramfs (LP: #1561103)
177+ - d/rules: install d/initramfs/local-bottom
178+ - d/rules: install d/initramfs/local-premount
179+ - Remove partition device nodes of individual paths (for LVM on multipath)
180+ (LP: #1540401)
181+ - Disable -fexceptions on multipath-udeb (LP: #1489379): the flag causes
182+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
183+ which is not available in the installer environment.
184+ - d/p/disable-fexceptions-udeb.patch: conditionally disable -fexceptions
185+ with CFLAGS_DISABLE_FEXCEPTIONS.
186+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
187+ - d/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
188+ where uploads might break kpartx's loopback file handling.
189+ - Remove partition device nodes of individual paths (for LVM on multipath)
190+ on the new multipath-tools with udev property blacklisting (LP: #1540401)
191+ - d/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
192+ - d/initramfs/init-top: load the dm-multipath module for
193+ 'multipath -c'.
194+ - d/initramfs/init-top: start multipathd before udev (required by
195+ 'multipath -u' in the udev rules)
196+ - d/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
197+ - d/rules: rename multipath-tools udev to dm-mpath-lvm
198+ - d/multipath-tools.dm-mpath-lvm.udev: replace 'multipath -c' with
199+ 'multipath -u' which can read udev properties at PROGRAM-rule time
200+ (when udev properties are not yet written to the udev database).
201+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
202+ - init-top: take over loading modules (dm-multipath and SCSI device
203+ handlers); move the missing dm-emc there (now scsi-dh-emc;
204+ see BTS 567014).
205+ - d/rules: do not install local-top anymore.
206+ - remove d/initramfs/local-top
207+ - Fixes typo in package description (availibility -> availability)
208+ (LP: #1231182)
209+ * Add changes:
210+ - mark kpartx tests as isolation-machine to avoid issues in e.g. LXD
211+ autopkgtest environments (LP: #1644253)
212+ - d/t/tgtbasedmpaths add Test using tgt and open-iscsi to excercise
213+ multipath
214+ - d/control mark transition of file /etc/init.d/multipath-tools-boot
215+ according to case #9 of https://wiki.debian.org/PackageTransition
216+ * Drop changes:
217+ - d/initramfs/local-top: wait for udev to settle before running
218+ 'multipath' in order to avoid race condition on device-mapper calls.
219+ (file no more used)
220+ - d/initramfs/local-top: remove '--timeout 10' which causes my
221+ test system to not boot roughly 3 out of 4 times.
222+ (file no more used)
223+ - d/initramfs/local-top: run multipathd rather than a one-off call to
224+ multipath so that new paths can be correctly added as detected while we're
225+ still in the initramfs.
226+ (file no more used)
227+ - Call clean target before rebuilding with systemd support (in Debian)
228+ - drop build-dep to dpkg-dev (>= 1.16.1~), libudev-dev"
229+ (No more needed)
230+ - Bump Standards-Version to 3.9.6 (in Debian)
231+ - add / to LIB= of DEB_CFLAGS_MAINT_APPEND (in Debian)
232+ - d/p/handle_spaces_in_rev_attr.patch: support IBM IPR devices and others
233+ which may have only spaces for the rev attribute. (upstream)
234+ - d/p/0015-shared-lock-for-udev.patch: (LP: #1431650) (upstream)
235+ - d/p/0053-readonly-bindings_multipathd_prod.patch: support
236+ -B to allow multipathd to handle cases where the bindings file is
237+ read-only. (upstream)
238+ - d/p/git-kpartx-support-spaces-in-dev-names-b407050a.patch: deal with
239+ spaces in device names in kpartx too (LP: #1432062) (upstream)
240+ - d/p/0001-multipath-tools-fix-dm-device-filtering.patch: Allow
241+ filtering of DEV_UEVENT dev_type (LP: #1570093) (upstream)
242+ - d/multipath-tools.postinst: handle upgrades from < 0.5.0 by migrating
243+ from the old device names with device numbers to using letters for devices.
244+ (no relevant upgrade path left)
245+ - d/p/mpath_name_migration.patch: ship a multipath_migrate binary
246+ to make translation from pre-0.5.0 device naming to the new scheme.
247+ (no relevant upgrade path left)
248+ - d/initramfs/hooks: use 95 not 60 for multipath rules priority (file not
249+ shipped anymore, so no need to touch)
250+
251+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Fri, 27 Jan 2017 09:09:37 +0100
252+
253 multipath-tools (0.6.4-3) unstable; urgency=medium
254
255 * [3eecdba] Include libmpathcmd.so in the udeb package.
256@@ -153,6 +393,164 @@ multipath-tools (0.5.0+git1.656f8865-6) unstable; urgency=medium
257
258 -- Ritesh Raj Sarraf <rrs@debian.org> Sat, 12 Mar 2016 17:47:25 +0530
259
260+multipath-tools (0.5.0+git1.656f8865-5ubuntu7) yakkety; urgency=medium
261+
262+ * No-change rebuild for readline soname change.
263+
264+ -- Matthias Klose <doko@ubuntu.com> Sat, 17 Sep 2016 12:06:37 +0000
265+
266+multipath-tools (0.5.0+git1.656f8865-5ubuntu6) yakkety; urgency=medium
267+
268+ * Fixes typo in package description (availibility -> availability)
269+ (LP: #1231182)
270+
271+ -- Hans Joachim Desserud <ubuntu@desserud.org> Sun, 04 Sep 2016 13:19:49 +0200
272+
273+multipath-tools (0.5.0+git1.656f8865-5ubuntu5) yakkety; urgency=medium
274+
275+ [ Dragan Stancevic ]
276+ * d/p/0001-multipath-tools-fix-dm-device-filtering.patch :
277+ multipath-tools: fix dm- device filtering
278+ - Allow filtering of DEV_UEVENT dev_type
279+ - Resolves LP: #1570093
280+ - Proper patch included in the source package this time. Previous upload
281+ only had the changelog entry.
282+
283+ -- Louis Bouchard <louis.bouchard@ubuntu.com> Tue, 19 Jul 2016 14:17:14 +0200
284+
285+multipath-tools (0.5.0+git1.656f8865-5ubuntu4) yakkety; urgency=medium
286+
287+ [ Dragan Stancevic ]
288+ * multipath-tools: fix dm- device filtering
289+ - Allow filtering of DEV_UEVENT dev_type
290+ - Resolves LP: #1570093
291+
292+ -- Louis Bouchard <louis.bouchard@ubuntu.com> Mon, 18 Jul 2016 12:37:04 +0200
293+
294+multipath-tools (0.5.0+git1.656f8865-5ubuntu3) yakkety; urgency=medium
295+
296+ * Cherrypick from debian:
297+ - Call clean target before rebuilding with systemd support
298+ - Call systemd in debian/rules. Also adapt init service
299+ aliasing.
300+ - Should resolve LP: #1578638, LP: #1589526, LP: #1583563.
301+
302+ -- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 16 Jun 2016 11:53:33 +0300
303+
304+multipath-tools (0.5.0+git1.656f8865-5ubuntu2) xenial; urgency=medium
305+
306+ [ Mauricio Faria de Oliveira ]
307+ * Remove partition device nodes of individual paths (for LVM on multipath)
308+ on the new multipath-tools with udev property blacklisting (LP: #1540401)
309+ - debian/multipath-tools.dm-mpath-lvm.udev: replace 'multipath -c' with
310+ 'multipath -u' which can read udev properties at PROGRAM-rule time
311+ (when udev properties are not yet written to the udev database).
312+ - debian/initramfs/init-top: start multipathd before udev (required by
313+ 'multipath -u' in the udev rules)
314+ - debian/initramfs/local-top: remove snippet to start multipathd.
315+ * Remove debian/initramfs/local-top (redundant with other initramfs scripts):
316+ - init-top: start multipathd.
317+ - init-top: load modules (dm-multipath and SCSI device handlers); move the
318+ missing dm-emc there (now scsi-dh-emc; see BTS 567014).
319+ - local-premount: settle on udev events; and the extra call due to
320+ multipath discovery in udev rules is no longer required with multipathd
321+ in initramfs.
322+ - debian/rules: do not install local-top anymore.
323+ * debian/initramfs/local-premount: run multipath with -B so not to assign
324+ names nor change /etc/multipath/bindings during initramfs (LP: #1561103)
325+ * debian/patches/enable-find-multipaths.patch: re-enable find_multipaths
326+ by default -- see the removed 'add_find-multipaths.patch' (LP: #1463046)
327+
328+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Mon, 04 Apr 2016 22:36:48 -0400
329+
330+multipath-tools (0.5.0+git1.656f8865-5ubuntu1) xenial; urgency=medium
331+
332+ * Merge from Debian. (LP: #1551952) (LP: #1540407)
333+ Remaining changes:
334+ - debian/control:
335+ - Bump debhelper dependency to install udev rules to
336+ /lib/udev/rules.d
337+ - Bump udev dependencies as well
338+ - debian/control:
339+ - multipath-tools: add sg3-utils-dev Depends
340+ - multipath-udeb: add sg3-udeb Depends
341+ - debian/initramfs/hooks: use 95 not 60 for multipath rules priority
342+ - debian/rules: Move udev rules to priority 95, because rules that load modules should be >90.
343+ - debian/multipath-tools.preinst: modprobe dm-multipath.
344+ This will make sure that multipathd will be able to start.
345+ - debian/initramfs/local-top: wait for udev to settle before running
346+ 'multipath' in order to avoid race condition on device-mapper calls.
347+ - debian/initramfs/local-top: remove '--timeout 10' which causes my
348+ test system to not boot roughly 3 out of 4 times.
349+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
350+ - debian/initramfs/kpartx.hook
351+ - debian/kpartx-boot.postinst
352+ - debian/kpartx-boot.postrm
353+ - debian/kpartx.install
354+ - debian/control: Add kpartx-boot package for dmraid
355+ - debian/rules: Install kpartx initramfs hook
356+ - debian/patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
357+ - debian/patches/handle_spaces_in_rev_attr.patch: support IBM IPR devices
358+ and others which may have only spaces for the rev attribute.
359+ - debian/patches/path_selector.patch: switch the default path selector
360+ back to round-robin while service-time isn't available to the installer
361+ multipath-modules.
362+ - debian/patches/0015-shared-lock-for-udev.patch: (LP: #1431650)
363+ - debian/initramfs/hooks: also copy wwids file on the installed system to
364+ ensure all paths come up on boot. (LP: #1479929)
365+ - Disable -fexceptions on multipath-udeb (LP: #1489379): the flag causes
366+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
367+ which is not available in the installer environment.
368+ - debian/patches/disable-fexceptions-udeb.patch: conditionally disable
369+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
370+ - debian/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
371+ - debian/patches/handle_spaces_in_rev_attr.patch: update patch to apply the
372+ change to the right line (LP: #1492425)
373+ - debian/initramfs/local-premount: wait for udev to settle before the call
374+ to resolve_device() in local_mount_root(), so the by-uuid/ symlinks have
375+ a chance to be updated by the multipath udev rules (LP: #1503286).
376+ - debian/multipath-tools.postinst: handle upgrades from < 0.5.0 by migrating
377+ from the old device names with device numbers to using letters for devices.
378+ - debian/patches/mpath_name_migration.patch: ship a multipath_migrate binary
379+ to make translation from pre-0.5.0 device naming to the new scheme.
380+ - debian/initramfs/hooks: install multipathd and required directories.
381+ - debian/initramfs/local-premount: reload all maps to make sure they're
382+ indeed loaded and ready before we end premount.
383+ - debian/initramfs/local-top: run multipathd rather than a one-off call to
384+ multipath so that new paths can be correctly added as detected while we're
385+ still in the initramfs.
386+ - debian/initramfs/local-bottom: remember to stop multipathd.
387+ - debian/rules: install debian/initramfs/local-bottom
388+ - debian/patches/0053-readonly-bindings_multipathd_prod.patch: support -B to
389+ allow multipathd to handle cases where the bindings file is read-only.
390+ (LP: #1526984)
391+ - debian/patches/git-kpartx-support-spaces-in-dev-names-b407050a.patch: deal
392+ with spaces in device names in kpartx too (LP: #1432062)
393+ - debian/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
394+ where uploads might break kpartx's loopback file handling.
395+ - debian/patches/kpartx_more_loopback_fixes.patch: fix loopback mounted
396+ files some more: since we stat() the loopback device node, we can't rely
397+ on S_ISREG() tests to handle this case, and should look at the device
398+ itself instead. (LP: #1543430)
399+ - Remove partition device nodes of individual paths (for LVM on multipath)
400+ (LP: #1540401)
401+ - debian/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
402+ - debian/initramfs/hooks: copy the udev rule and partx to the initramfs.
403+ - debian/initramfs/init-top: load the dm-multipath module for 'multipath -c'.
404+ - debian/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
405+ - debian/rules: don't ship 95-multipath.rules udev rules anymore; they are
406+ not necessary with multipath-tools listening for udev events directly.
407+ * Drop changes:
408+ - debian/patches/series: Drop obsolete patches already included upstream
409+ - debian/patches/ignore_devices_nodename_fail.patch
410+ - debian/patches/skip_usb_devices.patch
411+ - debian/patches/0014-kpartx-long-path.patch
412+ - debian/patches/0052-readonly-bindings_multipathd.patch
413+ - debian/patches/add_find-multipaths.patch
414+ - debian/patches/dm-multipath-backlist-nvme-5c412e47.patch
415+
416+ -- Ryan Harper <ryan.harper@canonical.com> Wed, 09 Mar 2016 10:21:26 -0600
417+
418 multipath-tools (0.5.0+git1.656f8865-5) unstable; urgency=medium
419
420 * [e91ac62] Fix build to properly generate the arch-independent
421@@ -243,6 +641,190 @@ multipath-tools (0.5.0+git0.770e6d0d-1) experimental; urgency=medium
422
423 -- Ritesh Raj Sarraf <rrs@debian.org> Sun, 09 Aug 2015 14:42:48 +0530
424
425+multipath-tools (0.5.0-7ubuntu16) xenial; urgency=medium
426+
427+ * debian/patches/dm-multipath-backlist-nvme-5c412e47.patch: blacklist NVMe
428+ from multipath, otherwise kpartx calls will hang. This is because mpath
429+ works at the request level (which NVMe bypasses), so multipathing is not
430+ supported on NVMe. (LP: #1551828)
431+
432+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Tue, 01 Mar 2016 11:55:13 -0500
433+
434+multipath-tools (0.5.0-7ubuntu15) xenial; urgency=medium
435+
436+ [ Mauricio Faria de Oliveira ]
437+ * Remove partition device nodes of individual paths (for LVM on multipath)
438+ (LP: #1540401)
439+ - debian/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
440+ - debian/initramfs/hooks: copy the udev rule and partx to the initramfs.
441+ - debian/initramfs/init-top: load the dm-multipath module for 'multipath -c'.
442+ - debian/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
443+ * debian/rules: don't ship 95-multipath.rules udev rules anymore; they are
444+ not necessary with multipath-tools listening for udev events directly.
445+
446+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 11 Feb 2016 19:08:14 -0500
447+
448+multipath-tools (0.5.0-7ubuntu14) xenial; urgency=medium
449+
450+ * debian/patches/kpartx_more_loopback_fixes.patch: fix loopback mounted
451+ files some more: since we stat() the loopback device node, we can't rely
452+ on S_ISREG() tests to handle this case, and should look at the device
453+ itself instead. (LP: #1543430)
454+ * debian/tests/kpartx-file-loopback: check for left-over loop devices after
455+ deleting a map.
456+
457+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Tue, 09 Feb 2016 15:24:27 -0500
458+
459+multipath-tools (0.5.0-7ubuntu13) xenial; urgency=medium
460+
461+ * Check that losetup -f is the same in the autopkgtest, after a cycle of
462+ kpartx -a/-d. Looks like it's currently failing to cleanup loop0 in
463+ addition to cleaning loop0p1. See http://pad.lv/1543430
464+
465+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 09 Feb 2016 06:51:15 +0000
466+
467+multipath-tools (0.5.0-7ubuntu12) xenial; urgency=medium
468+
469+ * Use synchronous kpartx calls in the adt tests, to hopefully avoid
470+ kernel/userspace races which result in failure to remove mapped
471+ partitions. Also invoke udevadm settle.
472+
473+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 02 Feb 2016 20:26:34 +0000
474+
475+multipath-tools (0.5.0-7ubuntu11) xenial; urgency=medium
476+
477+ * debian/patches/git-kpartx-support-spaces-in-dev-names-b407050a.patch: fixup
478+ to correct deal with loopback-mounting files. (LP: #1540660)
479+ * debian/patches/mpath_name_migration.patch: make sure multipath_migrate gets
480+ cleaned up otherwise running debuild twice will fail.
481+ * debian/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
482+ where uploads might break kpartx's loopback file handling.
483+
484+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 01 Feb 2016 23:27:08 -0500
485+
486+multipath-tools (0.5.0-7ubuntu10) xenial; urgency=medium
487+
488+ * debian/patches/0052-readonly-bindings_multipathd.patch,
489+ debian/patches/0053-readonly-bindings_multipathd_prod.patch: support -B to
490+ allow multipathd to handle cases where the bindings file is read-only.
491+ (LP: #1526984)
492+ * debian/initramfs/hooks: install multipathd and required directories.
493+ * debian/initramfs/local-bottom, debian/rules: install local-bottom for
494+ initramfs.
495+ * debian/initramfs/local-premount: reload all maps to make sure they're
496+ indeed loaded and ready before we end premount.
497+ * debian/initramfs/local-top: run multipathd rather than a one-off call to
498+ multipath so that new paths can be correctly added as detected while we're
499+ still in the initramfs.
500+ * debian/initramfs/local-bottom: remember to stop multipathd.
501+ * debian/patches/git-kpartx-support-spaces-in-dev-names-b407050a.patch: deal
502+ with spaces in device names in kpartx too (LP: #1432062)
503+
504+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Wed, 27 Jan 2016 10:42:51 -0500
505+
506+multipath-tools (0.5.0-7ubuntu9) xenial; urgency=medium
507+
508+ * d/p/lp1503305_libmultipath_info_on_1st_path_down_dbd131e.patch:
509+ Correctly display the vendor/model info on path line in output if the
510+ first path of a path group is failed. (LP: #1503305)
511+
512+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Tue, 03 Nov 2015 18:34:09 -0600
513+
514+multipath-tools (0.5.0-7ubuntu8) xenial; urgency=medium
515+
516+ * debian/multipath-tools.postinst: handle upgrades from < 0.5.0 by migrating
517+ from the old device names with device numbers to using letters for devices.
518+ * debian/patches/mpath_name_migration.patch: ship a multipath_migrate binary
519+ to make translation from pre-0.5.0 device naming to the new scheme.
520+
521+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 22 Oct 2015 12:38:45 +0100
522+
523+multipath-tools (0.5.0-7ubuntu7) wily; urgency=medium
524+
525+ [ Mauricio Faria de Oliveira ]
526+ * debian/initramfs/local-premount: wait for udev to settle before the call
527+ to resolve_device() in local_mount_root(), so the by-uuid/ symlinks have
528+ a chance to be updated by the multipath udev rules (LP: #1503286).
529+
530+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 19 Oct 2015 22:56:58 -0700
531+
532+multipath-tools (0.5.0-7ubuntu6) wily; urgency=medium
533+
534+ * debian/patches/handle_spaces_in_rev_attr.patch: update patch to apply the
535+ change to the right line (LP: #1492425)
536+
537+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> Fri, 18 Sep 2015 10:16:50 -0400
538+
539+multipath-tools (0.5.0-7ubuntu5) wily; urgency=medium
540+
541+ * debian/patches/0014-kpartx-long-path.patch: have kpartx match loopback
542+ files by device and inode rather than by path, as paths are not complete
543+ enough to do specific matching for long paths (> 64 chars) or relative
544+ paths. (LP: #1469143)
545+
546+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 17 Sep 2015 11:10:38 -0400
547+
548+multipath-tools (0.5.0-7ubuntu4) wily; urgency=medium
549+
550+ * Disable -fexceptions on multipath-udeb (LP: #1489379): the flag causes
551+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
552+ which is not available in the installer environment.
553+ - debian/patches/disable-fexceptions-udeb.patch: conditionally disable
554+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
555+ - debian/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
556+
557+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> Thu, 03 Sep 2015 07:29:59 -0400
558+
559+multipath-tools (0.5.0-7ubuntu3) wily; urgency=medium
560+
561+ * debian/initramfs/hooks: also copy wwids file on the installed system to
562+ ensure all paths come up on boot. (LP: #1479929)
563+
564+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 30 Jul 2015 16:34:28 -0400
565+
566+multipath-tools (0.5.0-7ubuntu2) wily; urgency=medium
567+
568+ * debian/patches/add_find-multipaths.patch: properly handle local non-mpath
569+ devices. (LP: #1463046)
570+ * debian/patches/ignore_devices_nodename_fail.patch: ignore devices for which
571+ sysfs_get_tgt_nodename fails.
572+ * debian/patches/skip_usb_devices.patch: skip USB devices during discovery.
573+ (LP: #1468897)
574+
575+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Fri, 10 Jul 2015 15:53:37 -0400
576+
577+multipath-tools (0.5.0-7ubuntu1) wily; urgency=medium
578+
579+ * Merge from debian unstable, remaining changes: (LP: #1455482)
580+ - control:
581+ * Bump debhelper dependency to install udev rules to
582+ /lib/udev/rules.d, bump udev dependencies as well.
583+ - initramfs/hooks: use 95 not 60 for multipath rules priority
584+ - multipath-tools-boot.init: remove in favor of kpartx.udev rules (at top)
585+ - multipath-tools.preinst: modprobe dm-multipath.
586+ This will make sure that multipathd will be able to start.
587+ - patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
588+ - rules: Move udev rules to priority 95, because rules that load
589+ modules should be >90.
590+ - debian/initramfs/local-top: wait for udev to settle before running
591+ 'multipath' in order to avoid race condition on device-mapper calls.
592+ - debian/initramfs/local-top: remove '--timeout 10' which causes my
593+ test system to not boot roughly 3 out of 4 times.
594+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
595+ - Added debian/patches/0015-shared-lock-for-udev.patch (LP: #1431650)
596+ * debian/patches/0015-libmultipath-property-whitelist-SCSI_IDENT.patch: add
597+ SCSI_IDENT_* properties to blacklist exceptions, so that we can have QEMU
598+ multipathed devices as well as others (IBM IPR) detected properly as
599+ multipathed devices.
600+ * debian/patches/handle_spaces_in_rev_attr.patch: support IBM IPR devices
601+ and others which may have only spaces for the rev attribute.
602+ * debian/patches/path_selector.patch: switch the default path selector
603+ back to round-robin while service-time isn't available to the installer
604+ multipath-modules.
605+ * debian/control: add sg3-udeb to multipath-udeb Depends.
606+
607+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 06 Jul 2015 13:15:22 -0400
608+
609 multipath-tools (0.5.0-7) unstable; urgency=medium
610
611 * [15ecad9] Add dm-service-time path checker.
612@@ -394,6 +976,100 @@ multipath-tools (0.4.9+git0.4dfdaf2b-1) experimental; urgency=low
613
614 -- Ritesh Raj Sarraf <rrs@debian.org> Fri, 10 Feb 2012 18:25:29 +0530
615
616+multipath-tools (0.4.9-3ubuntu12) vivid; urgency=medium
617+
618+ [ Mauricio Faria de Oliveira ]
619+ * Support disks with non 512-byte sectors (LP: #1441930)
620+ - Added 0016-kpartx-non-512B-GPT.patch
621+ - Added 0017-kpartx-non-512B-sectors.patch
622+
623+ [ Mathieu Trudel-Lapierre ]
624+ * debian/patches/0018-ext-part-gt-512B-sectors.patch: fix extended partition
625+ size for > 512B sectors. Patch cherry-picked from git commit 7202f225.
626+
627+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 13 Apr 2015 09:23:29 -0500
628+
629+multipath-tools (0.4.9-3ubuntu11) vivid; urgency=medium
630+
631+ [ Mauricio Faria de Oliveira ]
632+ * Added debian/patches/0015-shared-lock-for-udev.patch (LP: #1431650)
633+ * debian/initramfs/local-top: wait for udev to settle before running
634+ 'multipath' in order to avoid race condition on device-mapper calls.
635+
636+ [ Mathieu Trudel-Lapierre ]
637+ * Drop scsi_wait_scan from the multipath initramfs script: that module
638+ no longer exists.
639+
640+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 23 Mar 2015 14:56:37 -0400
641+
642+multipath-tools (0.4.9-3ubuntu10) utopic; urgency=medium
643+
644+ * 1002-fix-linking-library.patch: Move $(LIBDEPS) to the end of the
645+ link line to fix underlinking with ld --as-needed (LP: #1004243)
646+
647+ -- Adam Conrad <adconrad@ubuntu.com> Mon, 13 Oct 2014 07:47:07 -0600
648+
649+multipath-tools (0.4.9-3ubuntu9) utopic; urgency=medium
650+
651+ * Added 0011-libmultipath-update-waiter-handling.patch (LP: #1354114)
652+ * Added 0012-Race-condition-when-calling-stop_waiter_thread.patch (LP: #1354114)
653+ * Added 0013-multipath-clean-up-code-for-stopping-the-waiter-thre.patch (LP: #1354114)
654+ * Added 0014-Fix-race-condition-in-stop_waiter_thread.patch (LP: #1354114)
655+
656+ -- Rafael David Tinoco <rafael.tinoco@canonical.com> Tue, 02 Sep 2014 15:43:38 -0700
657+
658+multipath-tools (0.4.9-3ubuntu8) utopic; urgency=medium
659+
660+ * Remove RUN+="socket:" statement in rules file since it is
661+ no longer supported after version 178 (LP: #1240049)
662+
663+ -- Seyeong Kim <seyeong.kim@canonical.com> Fri, 18 Jul 2014 10:37:35 +0200
664+
665+multipath-tools (0.4.9-3ubuntu7) raring; urgency=low
666+
667+ * Add 0010-fix-extended-partitions.patch: Only expose the
668+ first two sectors of the extended partition (LP: #1093918).
669+
670+ -- Phillip Susi <psusi@ubuntu.com> Fri, 04 Jan 2013 16:14:34 -0500
671+
672+multipath-tools (0.4.9-3ubuntu6) quantal; urgency=low
673+
674+ * Rebuild for new armel compiler default of ARMv5t.
675+
676+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 05 Oct 2012 14:00:37 +0100
677+
678+multipath-tools (0.4.9-3ubuntu5) precise; urgency=low
679+
680+ * Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
681+
682+ -- Phillip Susi <psusi@ubuntu.com> Tue, 20 Mar 2012 15:26:22 -0400
683+
684+multipath-tools (0.4.9-3ubuntu4) precise; urgency=low
685+
686+ * Restore multipath-udeb dependency on multipath-modules (LP: #959749).
687+
688+ -- Colin Watson <cjwatson@ubuntu.com> Wed, 21 Mar 2012 14:34:01 +0000
689+
690+multipath-tools (0.4.9-3ubuntu3) precise; urgency=low
691+
692+ * Move kpartx from multipath-udeb to a new kpartx-udeb package
693+ (LP: #922646).
694+
695+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 27 Jan 2012 23:04:23 +0000
696+
697+multipath-tools (0.4.9-3ubuntu2) precise; urgency=low
698+
699+ * Add 0009-fix-delim.patch: The 'p' delimiter was being added
700+ when it shouldn't.
701+
702+ -- Phillip Susi <psusi@ubuntu.com> Sun, 08 Jan 2012 20:57:47 -0500
703+
704+multipath-tools (0.4.9-3ubuntu1) precise; urgency=low
705+
706+ * Merge with Debian (for remaining changes, see 0.4.9-2ubuntu1).
707+
708+ -- Matthias Klose <doko@ubuntu.com> Sun, 04 Dec 2011 21:32:48 +0100
709+
710 multipath-tools (0.4.9-3) unstable; urgency=low
711
712 * [dd85b8b] Add example to kpartx manpage. Committed upstream.
713@@ -407,6 +1083,36 @@ multipath-tools (0.4.9-3) unstable; urgency=low
714
715 -- Ritesh Raj Sarraf <rrs@debian.org> Sat, 03 Dec 2011 19:34:59 +0530
716
717+multipath-tools (0.4.9-2ubuntu1) oneiric; urgency=low
718+
719+ * Merge from debian unstable, remaining changes:
720+ - control:
721+ * Bump debhelper dependency to install udev rules to
722+ /lib/udev/rules.d, bump udev dependencies as well.
723+ * multipath-udeb must not depend on multipath-modules,
724+ because the Ubuntu kernel already includes the modules and no
725+ package provides m-m.
726+ - initramfs/hooks: use 95 not 60 for multipath rules priority
727+ - multipath-tools-boot.init: remove in favor of kpartx.udev rules (at top)
728+ - kpartx.udev:
729+ * add rule to load dm-multipath
730+ * use whole path when running /usr/lib/dmsetup_env
731+ * call kpartx through dmsetup for mpath-* devices
732+ * switch $name for $kernel for dmraid rule
733+ - multipath-tools.preinst: modprobe dm-multipath.
734+ This will make sure that multipathd will be able to start.
735+ - patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
736+ - rules: Move udev rules to priority 95, because rules that load
737+ modules should be >90.
738+ - Have initramfs local-top start with scsi_wait_scan, and make sure all
739+ devices have been found before bothering to call udevadm settle.
740+ - debian/initramfs/local-top: wait for scsi_wait_scan
741+ * *.install: use /lib*/ instead of /lib/ to catch /lib64
742+ * debian/initramfs/local-top: remove '--timeout 10' which causes my
743+ test system to not boot roughly 3 out of 4 times.
744+
745+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Mon, 06 Jun 2011 12:31:23 -0500
746+
747 multipath-tools (0.4.9-2) unstable; urgency=low
748
749 * [2544655] wait harder for multipath init. Thanks to Serge Hallyn for
750@@ -581,6 +1287,108 @@ multipath-tools (0.4.8-15) unstable; urgency=low
751
752 -- Guido Günther <agx@sigxcpu.org> Mon, 06 Apr 2009 19:36:25 +0200
753
754+multipath-tools (0.4.8-14ubuntu11) oneiric; urgency=low
755+
756+ * Fixes some return logic issues in the blacklist.c:_filter_path function
757+ where using blacklist and blacklist_exceptions would cause multipathd to
758+ improperly filter paths. (LP: #789229)
759+ - The patch was created by Christophe Varoqui in 2007.
760+ + http://www.redhat.com/archives/dm-devel/2007-November/msg00054.html
761+ + 0013-libmultipath-filter_path-fix_blacklist_filter_exit.patch
762+ - [serge-hallyn] swap in the whole upstream git commit and call it
763+ 0013-blacklist_exception_issues.patch.
764+
765+ -- Craig Magina <craig.magina@canonical.com> Fri, 27 May 2011 11:47:19 -0400
766+
767+multipath-tools (0.4.8-14ubuntu10) natty; urgency=low
768+
769+ * pass '-p part' to kpartx in initramfs script, not '-p p', to
770+ make sure /dev/mapper/ names are formed as expected. (LP: #712840)
771+
772+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Thu, 03 Feb 2011 18:40:36 -0600
773+
774+multipath-tools (0.4.8-14ubuntu9) natty; urgency=low
775+
776+ * Fix segv caused by race condition with free_waiter threads during
777+ shutdown, using backport from upstream. (LP: #713237)
778+
779+ -- dann frazier <dann.frazier@canonical.com> Thu, 03 Feb 2011 16:37:10 -0700
780+
781+multipath-tools (0.4.8-14ubuntu8) natty; urgency=low
782+
783+ * Fix segv on shutdown when log buffer is empty, using patch cherry-picked
784+ from upstream. (LP: #488285)
785+
786+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 01 Feb 2011 15:38:36 -0600
787+
788+multipath-tools (0.4.8-14ubuntu7) natty; urgency=low
789+
790+ * Add patch to fix the expected pathname from multipath uevents
791+ (LP: #660597)
792+
793+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 04 Jan 2011 16:06:29 -0600
794+
795+multipath-tools (0.4.8-14ubuntu6) natty; urgency=low
796+
797+ * Fix in debian/kpartx.udev:
798+ - modprobe -q instead of incorrect modprobe -Q (LP: #644481)
799+
800+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 04 Jan 2011 15:58:13 -0600
801+
802+multipath-tools (0.4.8-14ubuntu5) natty; urgency=low
803+
804+ * Make the initramfs local-top script wait until all devices
805+ are mapped, to make sure no /dev/sd* get mounted before
806+ multipath has a chance to take it. (LP: #686832)
807+
808+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 04 Jan 2011 15:55:48 -0600
809+
810+multipath-tools (0.4.8-14ubuntu4) lucid; urgency=low
811+
812+ * debian/control: Move libreadline5-dev build dependency to libreadline-dev.
813+ (Already done in Debian).
814+
815+ -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 08 Mar 2010 14:50:04 +0100
816+
817+multipath-tools (0.4.8-14ubuntu3) lucid; urgency=low
818+
819+ * Support failback for Intel Modular Server (LP: #520309).
820+
821+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 12 Feb 2010 12:21:42 +0000
822+
823+multipath-tools (0.4.8-14ubuntu2) jaunty; urgency=low
824+
825+ * debian/kpartx.udev: Let dmsetup run kpartx, since $kernel doesn't map
826+ right.
827+ * debian/initramfs/hooks: Include /lib/udev/kpartx_id.
828+
829+ -- Timo Aaltonen <tjaalton@ubuntu.com> Tue, 10 Mar 2009 11:54:01 +0200
830+
831+multipath-tools (0.4.8-14ubuntu1) jaunty; urgency=low
832+
833+ * Merge from debian unstable, remaining changes:
834+ - control:
835+ + Bump debhelper dependency to install udev rules to
836+ /lib/udev/rules.d, bump udev dependencies as well.
837+ + multipath-udeb must not depend on multipath-modules,
838+ because the Ubuntu kernel already includes the modules and no
839+ package provides m-m.
840+ - initramfs/hooks: Install rules from /lib/udev/rules.d.
841+ - kpartx.udev, multipath-tools-boot.init:
842+ Replace multipath-tools-boot init script with udev rules.
843+ - multipath-tools.preinst: Fix preinst script to modprobe dm-multipath.
844+ This will make sure that multipathd will be able to start.
845+ - multipath-tools.prerm: Add prerm script to not fail when upgrading
846+ from a broken version of multipathd.
847+ - patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
848+ - rules: Move udev rules to priority 95, because rules that load
849+ modules should be >90.
850+ * Fix bugs (LP: #316851, #320156)
851+ * multipath-tools.prerm/preinst: Remove checks for old ubuntu
852+ versions, we don't support upgrading from them anymore.
853+
854+ -- Timo Aaltonen <tjaalton@ubuntu.com> Thu, 12 Feb 2009 15:07:42 +0200
855+
856 multipath-tools (0.4.8-14) unstable; urgency=low
857
858 * [6dad4a0] kpartx: use uint64_t to account slices start/size based on
859@@ -643,6 +1451,64 @@ multipath-tools (0.4.8-11) unstable; urgency=low
860
861 -- Guido Guenther <agx@sigxcpu.org> Wed, 30 Jul 2008 17:59:03 -0400
862
863+multipath-tools (0.4.8-10ubuntu6) jaunty; urgency=low
864+
865+ * debian/multipath-tools.preinst: Use the same logic as in
866+ hw-detect to determine if dm_multipath is already loaded.
867+
868+ -- Timo Aaltonen <tjaalton@ubuntu.com> Thu, 15 Jan 2009 23:50:18 +0200
869+
870+multipath-tools (0.4.8-10ubuntu5) jaunty; urgency=low
871+
872+ * debian/initramfs/hooks: Install from /lib/udev/rules.d
873+
874+ -- Scott James Remnant <scott@ubuntu.com> Tue, 13 Jan 2009 03:05:02 +0000
875+
876+multipath-tools (0.4.8-10ubuntu4) jaunty; urgency=low
877+
878+ * Bump debhelper dependency to install udev rules to /lib/udev/rules.d,
879+ bump udev dependencies as well.
880+
881+ -- Scott James Remnant <scott@ubuntu.com> Mon, 12 Jan 2009 22:03:11 +0000
882+
883+multipath-tools (0.4.8-10ubuntu3) jaunty; urgency=low
884+
885+ * fix_udev_scsi_id_arguments.diff:
886+ Update the arguments for scsi_id. (LP: #306723)
887+ * fix_sysfs_layout.diff:
888+ Patch from upstream to use the new sysfs layout. (LP: #307032)
889+
890+ -- Timo Aaltonen <tjaalton@ubuntu.com> Thu, 18 Dec 2008 15:32:20 +0200
891+
892+multipath-tools (0.4.8-10ubuntu2) jaunty; urgency=low
893+
894+ * debian/control: multipath-udeb must not depend on multipath-modules,
895+ because the Ubuntu kernel already includes the modules and no
896+ package provides m-m.
897+ * debian/multipath-tools.preinst: Don't modprobe dm-multipath
898+ unconditionally, since it'll break during installation (no
899+ modprobe.dep) and when using a monolithic kernel. Instead check for
900+ these conditions. (LP: #182009)
901+
902+ -- Timo Aaltonen <tepsipakki@ubuntu.com> Tue, 02 Dec 2008 12:28:08 +0200
903+
904+multipath-tools (0.4.8-10ubuntu1) intrepid; urgency=low
905+
906+ * Merge from debian unstable, remaining changes:
907+ - Replace multipath-tools-boot init script with udev rules in
908+ kpartx.rules.
909+ - Move udev rules to priority 95, and drop call to dmsetup_env.
910+ - Add devices as they appear
911+ - Fix preinst script to modprobe dm-multipath. This will make sure
912+ that multipathd will be able to start.
913+ - Fix init script not to die on stop if multipathd is not running.
914+ - Add prerm script to not fail when upgrading from a broken version of
915+ multipathd.
916+ - Set umask in multipathd.
917+ - Handle udev rules priority change in preinst.
918+
919+ -- Soren Hansen <soren@ubuntu.com> Thu, 26 Jun 2008 08:55:33 +0200
920+
921 multipath-tools (0.4.8-10) unstable; urgency=low
922
923 * [183da2c] Add russion debconf translation (Closes: #486353) - thanks
924@@ -676,6 +1542,32 @@ multipath-tools (0.4.8-8) unstable; urgency=low
925
926 -- Guido Guenther <agx@sigxcpu.org> Sun, 09 Mar 2008 18:55:38 +0100
927
928+multipath-tools (0.4.8-7ubuntu2) hardy; urgency=low
929+
930+ * Install udev rules in initramfs.
931+ * Use temporary device name for creating partitions using kpartx.
932+ * Big thanks to Dag Stenstad for testing and helping with debugging!
933+
934+ -- Soren Hansen <soren@ubuntu.com> Wed, 19 Mar 2008 19:07:22 +0100
935+
936+multipath-tools (0.4.8-7ubuntu1) hardy; urgency=low
937+
938+ * Merge from debian unstable, remaining changes:
939+ - DebianMaintainerField.
940+ - Replace multipath-tools-boot init script with udev rules in
941+ kpartx.rules.
942+ - Move udev rules to priority 95, and drop call to dmsetup_env.
943+ - Add devices as they appear.
944+ - Fix preinst script to modprobe dm-multipath. This will make sure
945+ that multipathd will be able to start.
946+ - Add prerm script to not fail when upgrading from a broken version of
947+ multipathd.
948+ - Set umask in multipathd.
949+ - Handle udev rules priority change in preinst.
950+ * Dropped our hsg80 changes. Kernel handles this correctly now.
951+
952+ -- Soren Hansen <soren@ubuntu.com> Mon, 28 Jan 2008 11:09:45 +0100
953+
954 multipath-tools (0.4.8-7) unstable; urgency=low
955
956 * add watch file
957@@ -697,6 +1589,26 @@ multipath-tools (0.4.8-6) unstable; urgency=low
958
959 -- Guido Guenther <agx@sigxcpu.org> Sat, 01 Dec 2007 15:41:36 +0100
960
961+multipath-tools (0.4.8-5ubuntu1) hardy; urgency=low
962+
963+ * Merge from debian unstable, remaining changes:
964+ - DebianMaintainerField.
965+ - Suggest sg3-utils, Conflict with sg-utils.
966+ - Replace multipath-tools-boot init script with udev rules in
967+ kpartx.rules.
968+ - Add /sbin/hsg80_start.
969+ - Move udev rules to priority 95, and drop call to dmsetup_env.
970+ - Add devices as they appear
971+ - Fix preinst script to modprobe dm-multipath. This will make sure
972+ that multipathd will be able to start.
973+ - Fix init script not to die on stop if multipathd is not running.
974+ - Add prerm script to not fail when upgrading from a broken version of
975+ multipathd.
976+ - Set umask in multipathd.
977+ - Handle udev rules priority change in preinst.
978+
979+ -- Soren Hansen <soren@ubuntu.com> Thu, 13 Dec 2007 03:03:31 +0100
980+
981 multipath-tools (0.4.8-5) unstable; urgency=low
982
983 * apply kpartx-fix-udev-dmraid.diff to our shipped udev rules too
984@@ -811,6 +1723,34 @@ multipath-tools (0.4.7-3) experimental; urgency=low
985
986 -- Guido Guenther <agx@sigxcpu.org> Fri, 08 Jun 2007 11:51:00 +0200
987
988+multipath-tools (0.4.7-2ubuntu3) gutsy; urgency=low
989+
990+ * Fix preinst script to modprobe dm-multipath. This will make sure
991+ that multipathd will be able to start.
992+
993+ * Fix init script not to die on stop if multipathd is not running.
994+
995+ * Add prerm script to not fail when upgrading from a broken version of
996+ multipathd.
997+
998+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Fri, 10 Aug 2007 13:03:39 +0200
999+
1000+multipath-tools (0.4.7-2ubuntu2) gutsy; urgency=low
1001+
1002+ * Fix udev rule to load dm-multipath.
1003+
1004+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 13 Jun 2007 11:56:52 +0200
1005+
1006+multipath-tools (0.4.7-2ubuntu1) gutsy; urgency=low
1007+
1008+ * Merge from debian unstable, remaining changes:
1009+ - Remove multipath-tools-boot init script in favour of udev rules.
1010+ - Update udev rules as described in 0.4.7-1.1ubuntu3.
1011+ - Add /sbin/hsg80_start as described in 0.4.7-1.1ubuntu3.
1012+ - debian/control Ubuntu maintainer foobar.
1013+
1014+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 16 May 2007 11:02:20 +0200
1015+
1016 multipath-tools (0.4.7-2) unstable; urgency=low
1017
1018 [ Bastian Blank ]
1019@@ -828,6 +1768,42 @@ multipath-tools (0.4.7-2) unstable; urgency=low
1020
1021 -- Guido Guenther <agx@sigxcpu.org> Wed, 20 Dec 2006 17:40:59 +0100
1022
1023+multipath-tools (0.4.7-1.1ubuntu3) feisty; urgency=low
1024+
1025+ * Remove multipath-tools-boot init script.
1026+
1027+ * Wild changes and updates to udev rules:
1028+ - All the hsg80 MULTIBUS FAILOVER are now handled here.
1029+ - Fix rule to call kpartx also on "change" udev events.
1030+ - Invoke multipath -v 0 device to make sure we hot plug
1031+ all devices into multipath.
1032+
1033+ * Add /sbin/hsg80_start that wraps all the work to make an hsg80 in
1034+ MULTIBUS FAILOVER working properly.
1035+ This is automatically called by udev.
1036+
1037+ (Closes LP: #98518)
1038+
1039+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 04 Apr 2007 08:17:48 +0200
1040+
1041+multipath-tools (0.4.7-1.1ubuntu2) feisty; urgency=low
1042+
1043+ * Remove devmap_name from this package, and Depend on dmsetup instead.
1044+ Fixes file overwrite conflict with dmsetup. (LP 84894.)
1045+
1046+ -- Ian Jackson <iwj@ubuntu.com> Tue, 13 Feb 2007 16:16:46 +0000
1047+
1048+multipath-tools (0.4.7-1.1ubuntu1) feisty; urgency=low
1049+
1050+ * Merge from debian unstable, remaining changes:
1051+ - remove stop links from rc0 and rc6
1052+ - suggest sg3-utils, conflict sg-utils
1053+ - fix path to scsi_id
1054+ - ubuntu udev rules
1055+ - set umask
1056+
1057+ -- Scott James Remnant <scott@ubuntu.com> Tue, 28 Nov 2006 15:24:16 +0000
1058+
1059 multipath-tools (0.4.7-1.1) unstable; urgency=medium
1060
1061 * Added missing dependency on dmsetup. Closes: #381068.
1062@@ -840,6 +1816,77 @@ multipath-tools (0.4.7-1.1) unstable; urgency=medium
1063
1064 -- John Goerzen <jgoerzen@complete.org> Wed, 9 Aug 2006 11:52:08 -0500
1065
1066+multipath-tools (0.4.7-1ubuntu8) edgy; urgency=low
1067+
1068+ * Remove stop script symlinks from rc0 and rc6.
1069+
1070+ -- Scott James Remnant <scott@ubuntu.com> Fri, 15 Sep 2006 17:30:19 +0100
1071+
1072+multipath-tools (0.4.7-1ubuntu7) dapper; urgency=low
1073+
1074+ * Fix typo in init script that was executing hsg80_init unconditionally.
1075+
1076+ * Suggests: sg3-utils and Conflicts: sg-utils (obsoleted).
1077+
1078+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Mon, 22 May 2006 09:56:07 +0200
1079+
1080+multipath-tools (0.4.7-1ubuntu6) dapper; urgency=low
1081+
1082+ * no changes upload to rebuild with new libdevmapper.
1083+
1084+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 10 May 2006 09:31:20 +0200
1085+
1086+multipath-tools (0.4.7-1ubuntu5) dapper; urgency=low
1087+
1088+ The "give Scott a crying biscuit" release.
1089+
1090+ * Apply patch from Dennis Kaarsemaker.
1091+ (Closes Ubuntu: #41318)
1092+
1093+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 26 Apr 2006 10:20:07 +0200
1094+
1095+multipath-tools (0.4.7-1ubuntu4) dapper; urgency=low
1096+
1097+ * Remove 2 extra lines from multipath.rules that were really not supposed
1098+ to be there.
1099+
1100+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Thu, 06 Apr 2006 17:43:10 +0200
1101+
1102+multipath-tools (0.4.7-1ubuntu3) dapper; urgency=low
1103+
1104+ * Add hsg80_init function to multipath-tools-boot init script.
1105+ The script takes care to perform a proper initialization of the disks
1106+ when the hsg80 is configured in multibus failover mode.
1107+
1108+ NOTE: multipathd is not able to understand properly what happens in this
1109+ multi-bugs situation and it will require manual kill and restart once
1110+ the disks have been readded to the system, otherwise failover is not
1111+ guaranteed and syslog will be flooded.
1112+
1113+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Thu, 06 Apr 2006 09:33:51 +0200
1114+
1115+multipath-tools (0.4.7-1ubuntu2) dapper; urgency=low
1116+
1117+ * Fix socket permissions.
1118+
1119+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Tue, 04 Apr 2006 18:20:20 +0200
1120+
1121+multipath-tools (0.4.7-1ubuntu1) dapper; urgency=low
1122+
1123+ * Fix path to scsi_id.
1124+
1125+ * Make install: target depends on build in debian/rules.
1126+
1127+ * Change NAME to multipathd in init scripts so that we can actually stop
1128+ multipathd.
1129+
1130+ * Swap multipath-tools-boot and multipath-tools init scripts order in
1131+ postinst and make multipath-tools-boot start.
1132+
1133+ * UVF exception granted by Colin Watson.
1134+
1135+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Tue, 04 Apr 2006 06:31:09 +0200
1136+
1137 multipath-tools (0.4.7-1) unstable; urgency=low
1138
1139 * New upstream version.
1140diff --git a/debian/control b/debian/control
1141index 37c02da..5f39b20 100644
1142--- a/debian/control
1143+++ b/debian/control
1144@@ -1,7 +1,8 @@
1145 Source: multipath-tools
1146 Section: admin
1147 Priority: extra
1148-Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
1149+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
1150+XSBC-Original-Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
1151 Uploaders: Guido Günther <agx@sigxcpu.org>, Ritesh Raj Sarraf <rrs@debian.org>
1152 Build-Depends: debhelper (>= 9), po-debconf, libdevmapper-dev (>= 2:1.02.20), libreadline-dev, libaio-dev, dpkg-dev (>= 1.16.1~), libudev-dev, libsystemd-dev, systemd, dh-systemd, liburcu-dev, librados-dev
1153 Vcs-Git: https://anonscm.debian.org/git/pkg-lvm/multipath-tools.git
1154@@ -13,7 +14,7 @@ Package: multipath-tools
1155 Architecture: linux-any
1156 Depends: ${shlibs:Depends}, ${misc:Depends}, udev (>> 136-1), kpartx (>= ${binary:Version}), lsb-base (>= 3.0-6), libaio1 (>= 0.3.106-8), sg3-utils-udev
1157 Breaks: multipath-tools-initramfs (<= 1.0.1),
1158- multipath-tools-boot (<= 0.4.8+git0.761c66f-2~)
1159+ multipath-tools-boot (<< 0.6.3-2ubuntu1)
1160 Suggests: multipath-tools-boot
1161 Description: maintain multipath block device access
1162 These tools are in charge of maintaining the disk multipath device maps and
1163@@ -30,12 +31,20 @@ Description: create device mappings for partitions
1164 Kpartx can be used to set up device mappings for the partitions of any
1165 partitioned block device. It is part of the Linux multipath-tools.
1166
1167+Package: kpartx-boot
1168+Architecture: all
1169+Depends: ${misc:Depends}, initramfs-tools,
1170+ kpartx (>= ${source:Version}), kpartx (<< ${source:Version}.1~)
1171+Description: Provides kpartx during boot
1172+ This package makes kpartx available during boot to activate partitions
1173+
1174 Package: multipath-tools-boot
1175 Architecture: all
1176 Depends: ${misc:Depends}, initramfs-tools, lsb-base (>= 3.0-6),
1177- multipath-tools (>= ${source:Version}), multipath-tools (<< ${source:Version}.1~)
1178-Replaces: multipath-tools-initramfs (<< 1.0.1+nmu1), multipath-tools (<< 0.5.0+git1.656f8865-6)
1179-Breaks: multipath-tools-initramfs (<< 1.0.1+nmu1), multipath-tools (<< 0.5.0+git1.656f8865-6)
1180+ multipath-tools (>= ${source:Version}), multipath-tools (<< ${source:Version}.1~),
1181+ kpartx-boot (= ${binary:Version})
1182+Replaces: multipath-tools-initramfs (<< 1.0.1+nmu1), multipath-tools (<< 0.6.4-3ubuntu1)
1183+Breaks: multipath-tools-initramfs (<< 1.0.1+nmu1), multipath-tools (<< 0.6.4-3ubuntu1)
1184 Description: Support booting from multipath devices
1185 This package contains the necessary support for booting from a multipath
1186 device:
1187@@ -49,7 +58,7 @@ Description: Support booting from multipath devices
1188 Package: multipath-udeb
1189 Package-Type: udeb
1190 Architecture: linux-any
1191-Depends: ${shlibs:Depends}, ${misc:Depends}, multipath-modules, kpartx-udeb
1192+Depends: ${shlibs:Depends}, ${misc:Depends}, multipath-modules, kpartx-udeb, sg3-udeb
1193 Section: debian-installer
1194 Description: maintain multipath block device access - udeb package
1195 This is a udeb, or a microdeb, for the debian-installer.
1196diff --git a/debian/initramfs/hooks b/debian/initramfs/hooks
1197index bddfb9d..22c853f 100644
1198--- a/debian/initramfs/hooks
1199+++ b/debian/initramfs/hooks
1200@@ -25,9 +25,17 @@ add_bindings()
1201 fi
1202 }
1203
1204+add_wwids()
1205+{
1206+ if [ -r /etc/multipath/wwids ]; then
1207+ mkdir -p $DESTDIR/etc/multipath
1208+ cp /etc/multipath/wwids $DESTDIR/etc/multipath
1209+ fi
1210+}
1211+
1212 add_udev_rules()
1213 {
1214- for rules in 60-multipath.rules 60-kpartx.rules; do
1215+ for rules in 60-multipath.rules 56-dm-mpath-lvm.rules; do
1216 if [ -e /lib/udev/rules.d/$rules ]; then
1217 cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
1218 fi
1219@@ -43,12 +51,24 @@ mkdir -p $DESTDIR/lib/multipath/
1220 for x in /lib/multipath/*; do
1221 copy_exec $x /lib/multipath/
1222 done
1223+copy_exec /usr/bin/partx
1224 add_udev_rules
1225
1226+copy_exec /sbin/multipathd /sbin
1227+# multipathd requires libgcc_s.so.1 (not handled by copy_exec() as it's dlopen()'ed).
1228+# hack: find libgcc_s.so.1 via ldconfig cache (dpkg-architecture pulls lots of deps).
1229+for x in $(ldconfig --print-cache | grep -o '/lib/.*/libgcc_s\.so\.1'); do
1230+ copy_exec $x $(dirname $x)
1231+done
1232+
1233+# multipathd requires /run/multipathd.pid
1234+mkdir -p $DESTDIR/run
1235+
1236 [ -r /etc/multipath.conf ] && cp /etc/multipath.conf $DESTDIR/etc/
1237 add_bindings
1238+add_wwids
1239
1240-for x in dm-multipath dm-service-time dm-round-robin; do
1241+for x in dm-multipath dm-service-time dm-round-robin dm-queue-length; do
1242 manual_add_modules ${x}
1243 done
1244
1245diff --git a/debian/initramfs/init-top b/debian/initramfs/init-top
1246index 51637e9..883d7f9 100644
1247--- a/debian/initramfs/init-top
1248+++ b/debian/initramfs/init-top
1249@@ -1,6 +1,6 @@
1250 #!/bin/sh
1251 #
1252-# multipath hardware handler
1253+# multipath: load modules and daemon
1254
1255 PREREQ=" "
1256
1257@@ -26,7 +26,18 @@ verbose()
1258
1259 maybe_break pre-multipath
1260 VERBOSITY=0
1261-HW_HANDLERS=""
1262+HW_HANDLERS="scsi_dh_alua scsi_dh_rdac scsi_dh_emc"
1263+MP_MODULES="dm-multipath"
1264+
1265+verbose && log_begin_msg "Loading multipath modules"
1266+for module in ${MP_MODULES}; do
1267+ if modprobe --syslog "$module"; then
1268+ verbose && log_success_msg "loaded module ${module}."
1269+ else
1270+ log_failure_msg "failed to load module ${module}."
1271+ fi
1272+done
1273+verbose && log_end_msg
1274
1275 verbose && log_begin_msg "Loading multipath hardware handlers"
1276 for module in ${HW_HANDLERS}; do
1277@@ -38,6 +49,11 @@ for module in ${HW_HANDLERS}; do
1278 done
1279 verbose && log_end_msg
1280
1281+# Start multipathd
1282+verbose && log_begin_msg "Starting multipathd"
1283+/sbin/multipathd -B
1284+verbose && log_end_msg
1285+
1286 maybe_break post-multipath
1287
1288 exit 0
1289diff --git a/debian/initramfs/kpartx.hook b/debian/initramfs/kpartx.hook
1290new file mode 100644
1291index 0000000..ead2c77
1292--- /dev/null
1293+++ b/debian/initramfs/kpartx.hook
1294@@ -0,0 +1,20 @@
1295+#!/bin/sh
1296+
1297+PREREQS="udev"
1298+
1299+prereqs() { echo "$PREREQS"; }
1300+
1301+case $1 in
1302+prereqs)
1303+ prereqs
1304+ exit 0
1305+ ;;
1306+esac
1307+
1308+. /usr/share/initramfs-tools/hook-functions
1309+
1310+copy_exec /sbin/kpartx /sbin
1311+copy_exec /sbin/dmsetup /sbin
1312+copy_exec /lib/udev/dmsetup_env /lib/udev
1313+copy_exec /lib/udev/kpartx_id /lib/udev
1314+cp -p /lib/udev/rules.d/95-kpartx.rules $DESTDIR/lib/udev/rules.d/
1315diff --git a/debian/initramfs/local-bottom b/debian/initramfs/local-bottom
1316new file mode 100644
1317index 0000000..13026ff
1318--- /dev/null
1319+++ b/debian/initramfs/local-bottom
1320@@ -0,0 +1,62 @@
1321+#!/bin/sh
1322+#
1323+# multipathd shutdown
1324+
1325+PREREQ=""
1326+
1327+prereqs() { echo "$PREREQ"; }
1328+
1329+case $1 in
1330+prereqs)
1331+ prereqs
1332+ exit 0
1333+ ;;
1334+esac
1335+
1336+. /scripts/functions
1337+
1338+verbose()
1339+{
1340+ case "$quiet" in y*|Y*|1|t*|T*)
1341+ return 1;;
1342+ *)
1343+ return 0;;
1344+ esac
1345+}
1346+
1347+maybe_break pre-multipath
1348+
1349+if [ ! -e /sbin/multipathd ]; then
1350+ exit 0
1351+fi
1352+
1353+# Stop multipathd
1354+verbose && log_begin_msg "Stopping multipathd"
1355+
1356+pid_pidof="$(pidof multipathd)"
1357+pid_file="$(cat /run/multipathd.pid)"
1358+
1359+if [ "${pid_pidof}" = "${pid_file}" ]; then
1360+ kill ${pid_pidof}
1361+ verbose && log_end_msg
1362+else
1363+ verbose && log_failure_msg "inconsistent PIDs (pidof: '${pid_pidof}', multipathd.pid: '${pid_file}')"
1364+fi
1365+
1366+# Wait for multipathd unix socket to close.
1367+# It might take a while for multipathd to handle the signal,
1368+# which might leave the unix socket open until the upcoming
1369+# systemd multipath.socket unit starts. Then it fails with
1370+# (Result: resources) like this (logs in journalctl):
1371+# "Failed to listen on sockets: Address already in use"
1372+seconds=10
1373+while [ $seconds -gt 0 ]; do
1374+ grep -q '@/org/kernel/linux/storage/multipathd' /proc/net/unix || break
1375+ seconds=$((seconds - 1))
1376+ sleep 1
1377+done
1378+
1379+maybe_break post-multipath
1380+
1381+exit 0
1382+
1383diff --git a/debian/initramfs/local-premount b/debian/initramfs/local-premount
1384new file mode 100644
1385index 0000000..050f97b
1386--- /dev/null
1387+++ b/debian/initramfs/local-premount
1388@@ -0,0 +1,30 @@
1389+#!/bin/sh
1390+
1391+set -e
1392+
1393+PREREQ=""
1394+
1395+prereqs()
1396+{
1397+ echo "${PREREQ}"
1398+}
1399+
1400+case "${1}" in
1401+ prereqs)
1402+ prereqs
1403+ exit 0
1404+ ;;
1405+esac
1406+
1407+. /scripts/functions
1408+
1409+if [ -x /sbin/multipath ]
1410+then
1411+ [ "$quiet" != "y" ] && log_begin_msg "Waiting for udev to settle (multipath)"
1412+ udevadm settle --timeout=121 || true
1413+ [ "$quiet" != "y" ] && log_end_msg
1414+fi
1415+
1416+multipath -r -v0 -B
1417+
1418+exit 0
1419diff --git a/debian/initramfs/local-top b/debian/initramfs/local-top
1420deleted file mode 100644
1421index 37c1dac..0000000
1422--- a/debian/initramfs/local-top
1423+++ /dev/null
1424@@ -1,60 +0,0 @@
1425-#!/bin/sh
1426-#
1427-# multipath discovery
1428-
1429-PREREQ="udev iscsi"
1430-
1431-prereqs() { echo "$PREREQ"; }
1432-
1433-case $1 in
1434-prereqs)
1435- prereqs
1436- exit 0
1437- ;;
1438-esac
1439-
1440-. /scripts/functions
1441-
1442-verbose()
1443-{
1444- case "$quiet" in y*|Y*|1|t*|T*)
1445- return 1;;
1446- *)
1447- return 0;;
1448- esac
1449-}
1450-
1451-maybe_break pre-multipath
1452-VERBOSITY=0
1453-MP_MODULES="dm-multipath dm-round-robin"
1454-
1455-if [ ! -e /sbin/multipath ]; then
1456- exit 0
1457-fi
1458-
1459-verbose && log_begin_msg "Loading multipath modules"
1460-for module in ${MP_MODULES}; do
1461- if modprobe "$module"; then
1462- verbose && log_success_msg "loaded module ${module}."
1463- else
1464- log_failure_msg "failed to load module ${module}."
1465- fi
1466-done
1467-verbose && log_end_msg
1468-
1469-verbose && log_begin_msg "Discovering multipaths"
1470-/sbin/multipath -v $VERBOSITY
1471-verbose && log_end_msg
1472-
1473-if [ -x /sbin/kpartx -a -x /sbin/dmsetup ]; then
1474- /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p -part" >/dev/null
1475-fi
1476-
1477-if [ -x /bin/udevadm ]; then
1478- /bin/udevadm settle --timeout=10
1479-fi
1480-
1481-maybe_break post-multipath
1482-
1483-exit 0
1484-
1485diff --git a/debian/kpartx-boot.postinst b/debian/kpartx-boot.postinst
1486new file mode 100644
1487index 0000000..6257dc3
1488--- /dev/null
1489+++ b/debian/kpartx-boot.postinst
1490@@ -0,0 +1,34 @@
1491+#!/bin/sh
1492+# postinst script for kpartx-boot
1493+#
1494+# see: dh_installdeb(1)
1495+
1496+set -e
1497+
1498+# Source debconf library.
1499+. /usr/share/debconf/confmodule
1500+
1501+case "$1" in
1502+ configure)
1503+ if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
1504+ update-initramfs -u
1505+ fi
1506+ ;;
1507+
1508+ abort-upgrade|abort-remove|abort-deconfigure)
1509+ ;;
1510+
1511+ *)
1512+ echo "postinst called with unknown argument \`$1'" >&2
1513+ exit 1
1514+ ;;
1515+esac
1516+
1517+# dh_installdeb will replace this with shell code automatically
1518+# generated by other debhelper scripts.
1519+
1520+#DEBHELPER#
1521+
1522+exit 0
1523+
1524+
1525diff --git a/debian/kpartx-boot.postrm b/debian/kpartx-boot.postrm
1526new file mode 100644
1527index 0000000..daca462
1528--- /dev/null
1529+++ b/debian/kpartx-boot.postrm
1530@@ -0,0 +1,45 @@
1531+#!/bin/sh
1532+# postrm script for kpartx-boot
1533+#
1534+# see: dh_installdeb(1)
1535+
1536+set -e
1537+
1538+# summary of how this script can be called:
1539+# * <postrm> `remove'
1540+# * <postrm> `purge'
1541+# * <old-postrm> `upgrade' <new-version>
1542+# * <new-postrm> `failed-upgrade' <old-version>
1543+# * <new-postrm> `abort-install'
1544+# * <new-postrm> `abort-install' <old-version>
1545+# * <new-postrm> `abort-upgrade' <old-version>
1546+# * <disappearer's-postrm> `disappear' <overwriter>
1547+# <overwriter-version>
1548+# for details, see http://www.debian.org/doc/debian-policy/ or
1549+# the debian-policy package
1550+
1551+
1552+case "$1" in
1553+ remove)
1554+ if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
1555+ update-initramfs -u
1556+ fi
1557+ ;;
1558+
1559+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
1560+ ;;
1561+
1562+ *)
1563+ echo "postrm called with unknown argument \`$1'" >&2
1564+ exit 1
1565+ ;;
1566+esac
1567+
1568+# dh_installdeb will replace this with shell code automatically
1569+# generated by other debhelper scripts.
1570+
1571+#DEBHELPER#
1572+
1573+exit 0
1574+
1575+
1576diff --git a/debian/kpartx.install b/debian/kpartx.install
1577index eb9431e..c69cb2b 100644
1578--- a/debian/kpartx.install
1579+++ b/debian/kpartx.install
1580@@ -1,4 +1,4 @@
1581 /usr/share/man/man8/kpartx.8.gz
1582 /sbin/kpartx
1583-/lib/udev/kpartx_id
1584-/lib/udev/dmsetup_env
1585+/lib*/udev/kpartx_id
1586+/lib*/udev/dmsetup_env
1587diff --git a/debian/multipath-tools.dm-mpath-lvm.udev b/debian/multipath-tools.dm-mpath-lvm.udev
1588new file mode 100644
1589index 0000000..4698023
1590--- /dev/null
1591+++ b/debian/multipath-tools.dm-mpath-lvm.udev
1592@@ -0,0 +1,26 @@
1593+# An individual device may be part of a multipath device.
1594+# In such case, remove its partition device nodes so for
1595+# LVM to scan/lock/use only the multipath device.
1596+# - Check it on 'add' uevent.
1597+# - Check it on 'change' uevent (it may change).
1598+
1599+SUBSYSTEM!="block", \
1600+ GOTO="end_mpath"
1601+
1602+ACTION=="remove", \
1603+ GOTO="end_mpath"
1604+
1605+ENV{DEVTYPE}=="partition", \
1606+ IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH", \
1607+ GOTO="end_mpath"
1608+
1609+PROGRAM=="/sbin/multipath -u $devnode", \
1610+ ENV{DM_MULTIPATH_DEVICE_PATH}="1", \
1611+ ENV{ID_FS_TYPE}="mpath_member", \
1612+ RUN+="/usr/bin/partx -d --nr 1-1024 $devnode", \
1613+ GOTO="end_mpath"
1614+
1615+# Not part of a multipath device.
1616+ENV{DM_MULTIPATH_DEVICE_PATH}=""
1617+
1618+LABEL="end_mpath"
1619diff --git a/debian/multipath-tools.preinst b/debian/multipath-tools.preinst
1620index 50f8864..74419d2 100644
1621--- a/debian/multipath-tools.preinst
1622+++ b/debian/multipath-tools.preinst
1623@@ -32,6 +32,10 @@ case "$1" in
1624 ;;
1625 esac
1626
1627+if ! dmsetup targets | cut -d' ' -f1 | grep -q '^multipath$'; then
1628+ modprobe -v dm-multipath || true
1629+fi
1630+
1631 #DEBHELPER#
1632
1633 exit 0
1634diff --git a/debian/patches/1000--set-umask-in-multipathd.patch b/debian/patches/1000--set-umask-in-multipathd.patch
1635new file mode 100644
1636index 0000000..2dd83f3
1637--- /dev/null
1638+++ b/debian/patches/1000--set-umask-in-multipathd.patch
1639@@ -0,0 +1,30 @@
1640+---
1641+ multipathd/uxlsnr.c | 6 ++++++
1642+ 1 file changed, 6 insertions(+)
1643+
1644+--- a/multipathd/uxlsnr.c
1645++++ b/multipathd/uxlsnr.c
1646+@@ -20,6 +20,7 @@
1647+ #include <sys/socket.h>
1648+ #include <sys/un.h>
1649+ #include <poll.h>
1650++#include <sys/stat.h>
1651+ #include <sys/time.h>
1652+ #include <signal.h>
1653+ #include "checkers.h"
1654+@@ -133,10 +134,15 @@
1655+ char *inbuf;
1656+ char *reply;
1657+ sigset_t mask;
1658++ mode_t mode_mask;
1659+ int old_clients = MIN_POLLS;
1660+
1661++ mode_mask=umask(0177);
1662++
1663+ ux_sock = ux_socket_listen(DEFAULT_SOCKET);
1664+
1665++ umask(mode_mask);
1666++
1667+ if (ux_sock == -1) {
1668+ condlog(1, "could not create uxsock: %d", errno);
1669+ return NULL;
1670diff --git a/debian/patches/disable-fexceptions-udeb.patch b/debian/patches/disable-fexceptions-udeb.patch
1671new file mode 100644
1672index 0000000..acd33b1
1673--- /dev/null
1674+++ b/debian/patches/disable-fexceptions-udeb.patch
1675@@ -0,0 +1,16 @@
1676+From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
1677+Subject: Make the use of -fexceptions conditional.
1678+Last-Update: 2015-09-09
1679+
1680+--- a/Makefile.inc
1681++++ b/Makefile.inc
1682+@@ -69,5 +69,9 @@
1683+ LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
1684+ SHARED_FLAGS = -shared
1685+
1686++ifdef CFLAGS_DISABLE_FEXCEPTIONS
1687++ CFLAGS := $(filter-out -fexceptions,$(CFLAGS))
1688++endif
1689++
1690+ %.o: %.c
1691+ $(CC) $(CFLAGS) -c -o $@ $<
1692diff --git a/debian/patches/enable-find-multipaths.patch b/debian/patches/enable-find-multipaths.patch
1693new file mode 100644
1694index 0000000..a491018
1695--- /dev/null
1696+++ b/debian/patches/enable-find-multipaths.patch
1697@@ -0,0 +1,11 @@
1698+--- a/libmultipath/defaults.h
1699++++ b/libmultipath/defaults.h
1700+@@ -17,7 +17,7 @@
1701+ #define DEFAULT_NO_PATH_RETRY NO_PATH_RETRY_UNDEF
1702+ #define DEFAULT_VERBOSITY 2
1703+ #define DEFAULT_REASSIGN_MAPS 0
1704+-#define DEFAULT_FIND_MULTIPATHS 0
1705++#define DEFAULT_FIND_MULTIPATHS 1
1706+ #define DEFAULT_FAST_IO_FAIL 5
1707+ #define DEFAULT_DEV_LOSS_TMO 600
1708+ #define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_ON
1709diff --git a/debian/patches/kpartx_more_loopback_fixes.patch b/debian/patches/kpartx_more_loopback_fixes.patch
1710new file mode 100644
1711index 0000000..239dbcf
1712--- /dev/null
1713+++ b/debian/patches/kpartx_more_loopback_fixes.patch
1714@@ -0,0 +1,40 @@
1715+From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
1716+Subject: Fix kpartx some more to correctly remove loopback devices on delete.
1717+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1543430
1718+
1719+Loop devices get created when using kpartx with an image file, but should be
1720+removed afterwards when using kpartx -d. Unfortunately, the devmapper maps
1721+did get removed but not the losetup nodes behind it, which were still bound
1722+to the image file. This is because we re-stat the loop device once we've
1723+figured which one to use, since otherwise we wouldn't have major and minor
1724+numbers for a loopback file; yet we need those to create the devmapper maps
1725+reliably.
1726+
1727+Instead of checking if we're dealing with a regular type file (since after
1728+stat() we'd not have the S_ISREG check succeed since we stat()'ed a device),
1729+use the loopdev variable. It's equivalent to device but only set if we've been
1730+called to work on an image.
1731+
1732+*update*
1733+This got partially upstream with the following patch - maybe we can drop it now?:
1734+commit ed4c3119cc1d6bc6656cf84d1e9c1ab184d87814
1735+Author: Christian Kastner <ckk@kvr.at>
1736+Date: Wed Jul 13 19:23:02 2016 +0200
1737+ kpartx: Fix check whether to detach loop device
1738+
1739+
1740+---
1741+ kpartx/kpartx.c | 4 ++--
1742+ 1 file changed, 2 insertions(+), 2 deletions(-)
1743+
1744+--- a/kpartx/kpartx.c
1745++++ b/kpartx/kpartx.c
1746+@@ -678,7 +678,7 @@
1747+ if (n > 0)
1748+ break;
1749+ }
1750+- if (what == LIST && loopcreated && S_ISREG (buf.st_mode)) {
1751++ if (what == LIST && loopcreated && loopdev) {
1752+ if (fd != -1)
1753+ close(fd);
1754+ if (del_loop(device)) {
1755diff --git a/debian/patches/series b/debian/patches/series
1756index dbd7009..3fa01ae 100644
1757--- a/debian/patches/series
1758+++ b/debian/patches/series
1759@@ -5,3 +5,7 @@
1760 systemd-alias.patch
1761 disable-systemd-for-udeb.patch
1762 disable-rados-link-for-udeb.patch
1763+1000--set-umask-in-multipathd.patch
1764+disable-fexceptions-udeb.patch
1765+kpartx_more_loopback_fixes.patch
1766+enable-find-multipaths.patch
1767diff --git a/debian/rules b/debian/rules
1768index 5b00688..8cb25dd 100755
1769--- a/debian/rules
1770+++ b/debian/rules
1771@@ -46,7 +46,7 @@ build-stamp: clean-tree
1772 build-multipath-udeb-stamp:
1773 dh_testdir
1774
1775- DEB_CFLAGS_MAINT_APPEND="-static-libgcc" dh_auto_build -- $(OPTFLAGS) LIB=/lib USE_SYSTEMD=0 USE_RADOS=0
1776+ DEB_CFLAGS_MAINT_APPEND="-static-libgcc" CFLAGS_DISABLE_FEXCEPTIONS=1 dh_auto_build -- $(OPTFLAGS) LIB=/lib USE_SYSTEMD=0 USE_RADOS=0
1777
1778 # store files for install target
1779 mkdir -p $(CURDIR)/debian/tmp-multipath-udeb/sbin
1780@@ -73,8 +73,11 @@ install-indep:
1781
1782 # initramfs stuff:
1783 install -D -m 755 debian/initramfs/hooks $(INITRAMFS)/hooks/multipath
1784- install -D -m 755 debian/initramfs/local-top \
1785- $(INITRAMFS)/scripts/local-top/multipath
1786+ install -D -m 755 debian/initramfs/kpartx.hook $(CURDIR)/debian/kpartx-boot/usr/share/initramfs-tools/hooks/kpartx
1787+ install -D -m 755 debian/initramfs/local-premount \
1788+ $(INITRAMFS)/scripts/local-premount/multipath
1789+ install -D -m 755 debian/initramfs/local-bottom \
1790+ $(INITRAMFS)/scripts/local-bottom/multipath
1791 install -D -m 755 debian/initramfs/init-top \
1792 $(INITRAMFS)/scripts/init-top/multipath
1793
1794@@ -127,8 +130,9 @@ binary-arch: build install
1795 dh_lintian -a
1796 dh_systemd_enable -pmultipath-tools multipathd.service
1797 dh_installinit -pmultipath-tools
1798- dh_installudev -pkpartx
1799+ dh_installudev -pkpartx --priority=95
1800 dh_installudev -pmultipath-tools --name=multipath
1801+ dh_installudev -pmultipath-tools --name=dm-mpath-lvm --priority=56
1802 dh_installudev -pmultipath-tools --name=dm-mpath --priority=11
1803 dh_link -a lib/systemd/system/multipathd.service \
1804 lib/systemd/system/multipath-tools.service

Subscribers

People subscribed via source and target branches