Merge ~utkarsh/ubuntu/+source/multipath-tools:merge-multipath-tools-impish into ubuntu/+source/multipath-tools:debian/sid

Proposed by Utkarsh Gupta
Status: Needs review
Proposed branch: ~utkarsh/ubuntu/+source/multipath-tools:merge-multipath-tools-impish
Merge into: ubuntu/+source/multipath-tools:debian/sid
Diff against target: 2762 lines (+2336/-34)
21 files modified
debian/changelog (+1924/-0)
debian/control (+11/-2)
debian/initramfs/hooks (+22/-2)
debian/initramfs/init-top (+18/-2)
debian/initramfs/kpartx.hook (+22/-0)
debian/initramfs/local-bottom (+24/-22)
debian/initramfs/local-premount (+30/-0)
debian/kpartx-boot.postinst (+34/-0)
debian/kpartx-boot.postrm (+45/-0)
debian/multipath-tools.dm-mpath-lvm.udev (+26/-0)
debian/multipath-tools.install (+1/-0)
debian/multipath-udeb.install (+1/-0)
debian/multipath.conf (+3/-0)
debian/patches/enable-find-multipaths.patch (+17/-0)
debian/patches/kpartx-Improve-finding-loopback-device-by-file.patch (+74/-0)
debian/patches/kpartx_more_loopback_fixes.patch (+51/-0)
debian/patches/no-start-in-containers.patch (+17/-0)
debian/patches/series (+4/-0)
debian/rules (+8/-3)
debian/tests/control (+1/-1)
debian/tests/tgtbasedmpaths (+3/-2)
Reviewer Review Type Date Requested Status
Robie Basak Approve
Utkarsh Gupta Pending
git-ubuntu developers Pending
Review via email: mp+403148@code.launchpad.net

Description of the change

Ugh, please find description in the first comment!

To post a comment you must log in.
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hello,

This MP merges multipath-tools from Debian sid.

PPA: https://launchpad.net/~utkarsh/+archive/ubuntu/experimental-dump/

Build's good and autopkgtest passes:
```
autopkgtest [00:36:06]: @@@@@@@@@@@@@@@@@@@@ summary
kpartx-file-loopback PASS
tgtbasedmpaths PASS
```

Requesting you to please review and sponsor the upload. TIA! \o/

[Assigning the review to Robie]

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Few things for Robie while reviewing:

-> Because of the whole dropping the undocumented patch situation, I've added an empty commit so that it stays in the git history as well (besides the d/ch entry, of course).

-> Since this required splitting of commits (about 25ish), I hope I did not mess up somewhere; apologies if I did! :D

-> Although independent, the PR associated w/ what we discovered in the handbook is here: https://github.com/canonical/ubuntu-maintainers-handbook/pull/14.

Let me know if there's anything that's needed from my end or if I can help make your reviewing easier. TIA! \o/

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

> -> Although independent, the PR associated w/ what we discovered in the
> handbook is here: https://github.com/canonical/ubuntu-maintainers-
> handbook/pull/14.

Bah, here's the right link:
https://github.com/canonical/ubuntu-maintainers-handbook/pull/15

Revision history for this message
Robie Basak (racb) wrote :

I'm seeing debian/patches/newer-jsonc.patch removed when diffing from old/ubuntu to both your "split" and "logical" tags, which I'm not expecting. Did you intend to have fixed that since we discussed it? I understand what's going on so I can just ignore it, but it mismatches the workflow in case you were expecting something different.

Have you looked into upstreaming any of this? Whether to Debian or directly to upstream. Some of the changes at least don't look specific to Ubuntu. Looking into the history, I found https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/multipath-tools/+git/multipath-tools/+merge/387017/comments/1016743 which suggests that upstreaming is appropriate now. Is there a reason not to attempt this in this package merge?

The actual only Debian change (fix bashism) isn't really going to make a functional difference to us in Ubuntu, so it seems to me that the value in merging this would be in cleaning up and minimising the delta, rather than just transferring it over. Could you make sure to understand the delta, please, and based on that understanding, where appropriate set the gears in motion to have that delta upstreamed? I appreciate this is probably quite a lot of work given the current delta, and that you'll probably need to consult some of the people who added individual bits of delta. Given we are early in the cycle, it's probably worth taking an initial pass at this at least. It might be worth checking with colleagues more familiar with the package to see if they concur.

It may be the case that with bullseye being in freeze, the actual merge result is the same even after "upstreaming" because none of it will be able to be accepted yet. In that case I suppose I'm just asking for upstreaming status to be trackable from our delta.

review: Needs Information
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Absolutely! I think I can help get some fixes to Debian & upstream. I understand some of them and they make sense to be in Debian as well and I've already contacted Ritesh (Debian maintainer) and I'll try to forward most of the things there.

7b57d9d... by Utkarsh Gupta

  - 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

917af86... by Utkarsh Gupta

merge-changelogs

79ede24... by Utkarsh Gupta

reconstruct-changelog

6aa9304... by Utkarsh Gupta

update-maintainer

Revision history for this message
Robie Basak (racb) wrote :

We reviewed and iterated on this mostly offline. Thank you for working on upstreaming a considerable part of this delta. Lots of that is waiting on Debian, so we concluded that there's no need to block this merge on that. The important thing is that work is being done to reduce the delta.

> - d/multipath.conf: Install friendly names multipath.conf by default,
> instead of generating it in every installer.

We decided to keep this for now, as removing it has consequences for users in the future potentially, as they'll appear to have a custom configuration when they didn't customize it themselves (and therefore conffile prompts if we ever ship that conffile again in the future).

> - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
> default -- see the removed 'add_find-multipaths.patch' (LP 1463046)

It looks to me that this is a workaround that just switches the default find_multipaths behaviour to "on", from "strict", and that "strict" is still buggy in the problem case. Users could be confused if they enable "strict" manually, and further the manpage still declares "strict" to be the default even thoughthis default is changed by this patch. I'll file a separate bug for this.

review: Approve

Unmerged commits

6aa9304... by Utkarsh Gupta

update-maintainer

79ede24... by Utkarsh Gupta

reconstruct-changelog

917af86... by Utkarsh Gupta

merge-changelogs

14bd3f0... by Utkarsh Gupta

  * debian/test/control:
    - use allow-stderr for kpartx-file-loopback, the new gdisks version
      displays warnings on stderr now

Forwarded to Debian:
https://salsa.debian.org/linux-blocks-team/multipath-tools/-/merge_requests/2

6655cf0... by Utkarsh Gupta

  - d/rules: Move udev rules to priority 95, because rules that load
    modules should be >90.

7b57d9d... by Utkarsh Gupta

  - 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

314ba79... by Utkarsh Gupta

  - debian/initramfs/local-bottom: wait for the multipathd unix
    socket to close, so to avoid multipathd.socket unit failure.
    (LP 1682178)

b439d1f... by Utkarsh Gupta

  - 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 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/local-premount

402c796... by Utkarsh Gupta

  - debian/initramfs/hooks: Add dm-queue-length: users may want to
    change from the default selector and should be able to do so.
    (LP 1673350)

6f45bc6... by Utkarsh Gupta

  - Remove d/initramfs/local-top (redundant with other initramfs scripts):
    - init-top: take over loading modules (dm-multipath and SCSI device
      handlers); move the missing dm-emc there (now scsi-dh-emc; see
      BTS 567014).
    - d/rules: do not install local-top anymore.
    - remove d/initramfs/local-top

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 809e08f..be93242 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,100 @@
6+multipath-tools (0.8.5-2ubuntu1) impish; urgency=medium
7+
8+ * Merge with Debian unstable. Remaining changes:
9+ - Use stable wwn-* names in autopkgtest that work with or without
10+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
11+ - debian/tests/tgtbasedmpaths: Add sleep to allow for device creation
12+ - patches to multipath source:
13+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted files
14+ some more: since we stat() the loopback device node, we can't rely
15+ on S_ISREG() tests to handle this case, and should look at the
16+ device itself instead. (LP 1543430)
17+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
18+ default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
19+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
20+ finding loopback devices (LP 1747044)
21+ - d/p/no-start-in-containers.patch: Do not attempt to start
22+ multipath-tools in containers, should switch for on-demand udev/socket
23+ based activation in the future. (LP 1823093)
24+ - d/multipath.conf: Install friendly names multipath.conf by default,
25+ instead of generating it in every installer.
26+ - debian/multipath-tools.dm-mpath-lvm.udev: Adjust initramfs integration
27+ for new udev rules
28+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
29+ - init-top: take over loading modules (dm-multipath and SCSI device
30+ handlers); move the missing dm-emc there (now scsi-dh-emc; see
31+ BTS 567014).
32+ - d/rules: do not install local-top anymore.
33+ - remove d/initramfs/local-top
34+ - debian/initramfs/hooks: Add dm-queue-length: users may want to
35+ change from the default selector and should be able to do so.
36+ (LP 1673350)
37+ - multipath initramfs fixes for booting from multipathed devices:
38+ - d/initramfs/hooks: also copy wwids file on the installed
39+ system to ensure all paths come up on boot. (LP 1479929)
40+ - d/initramfs/hooks: install multipathd and required
41+ directories.
42+ - d/initramfs/hooks: copy multipath udev rules to initramfs
43+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
44+ - d/initramfs/local-bottom: remember to stop multipathd.
45+ - d/initramfs/local-premount: wait for udev to settle before
46+ the call to resolve_device() in local_mount_root(), so the
47+ by-uuid/ symlinks have a chance to be updated by the
48+ multipath udev rules (LP 1503286).
49+ - d/initramfs/local-premount: Run multipath with -B so not to
50+ assign names nor change /etc/multipath/bindings during
51+ initramfs (LP 1561103)
52+ - d/rules: install d/initramfs/local-bottom
53+ - d/rules: install d/initramfs/local-premount
54+ - debian/initramfs/local-bottom: wait for the multipathd unix
55+ socket to close, so to avoid multipathd.socket unit failure.
56+ (LP 1682178)
57+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
58+ - d/initramfs/kpartx.hook
59+ - d/kpartx-boot.postinst
60+ - d/kpartx-boot.postrm
61+ - d/control: Add kpartx-boot package for dmraid
62+ - d/rules: Install kpartx initramfs hook
63+ - d/rules: Move udev rules to priority 95, because rules that load
64+ modules should be >90.
65+ - debian/test/control:
66+ - use allow-stderr for kpartx-file-loopback, the new gdisks version
67+ displays warnings on stderr now
68+ * Dropped changes:
69+ - [Undocumented] d/p/newer-jsonc.patch: drop this patch since this
70+ was added in v0.8.4-2ubuntu1 as a delta but was incorporated in
71+ Debian via v0.8.4-3 with a different name (jsonc-true.patch; cf:
72+ https://bugs.debian.org/966597) and was never dropped from here
73+ and we've been carrying this since then.
74+ [Included in 0.8.4-3]
75+ - Drop depends on udebs, such that they don't hold up any other udebs
76+ in the archive, especially kernel udebs. Otherwise unused in Ubuntu.
77+ [Dropped support for udebs]
78+ - d/control: Enable udebs on riscv64 to fix FTBFS.
79+ [Dropped support for udebs]
80+ - d/control, d/rules: i386 related fixes
81+ - Stop producing udebs on i386 where we no longer have d-i or a kernel.
82+ - Fix debian/rules to not explode when building without udebs on i386.
83+ - Don't build the multipath-tools binary package on i386; we only want
84+ kpartx.
85+ [Dropped support for i386 & udebs]
86+ - d/control: multipath-udeb: add sg3-udeb Depends
87+ [Dropped support for udebs]
88+ - d/kpartx.install: install all arch /lib* kpartx udev rules
89+ [There's no "/lib*" anymore]
90+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
91+ deleted message to stdout again, not stderr; to fix autopkgtest
92+ [Upstream denied the patch; unneeded]
93+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
94+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
95+ which is not available in the installer environment.
96+ - d/p/disable-fexceptions-udeb.patch: conditionally disable
97+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
98+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
99+ [Changes aren't relevant anymore; dropped support for udebs]
100+
101+ -- Utkarsh Gupta <utkarsh.gupta@canonical.com> Mon, 21 Jun 2021 23:06:33 +0530
102+
103 multipath-tools (0.8.5-2) unstable; urgency=medium
104
105 * [373f5c5] Fix bashism in script kpartx/kpartx_id.
106@@ -5,6 +102,106 @@ multipath-tools (0.8.5-2) unstable; urgency=medium
107
108 -- Ritesh Raj Sarraf <rrs@debian.org> Wed, 28 Apr 2021 22:40:55 +0530
109
110+multipath-tools (0.8.5-1ubuntu6) hirsute; urgency=medium
111+
112+ * debian/test/control:
113+ - use allow-stderr for kpartx-file-loopback, the new gdisks version
114+ displays warnings on stderr now
115+
116+ -- Sebastien Bacher <seb128@debian.org> Thu, 04 Mar 2021 12:20:20 +0100
117+
118+multipath-tools (0.8.5-1ubuntu5) hirsute; urgency=medium
119+
120+ * No-change rebuild to drop the udeb package.
121+
122+ -- Matthias Klose <doko@ubuntu.com> Mon, 22 Feb 2021 10:35:31 +0100
123+
124+multipath-tools (0.8.5-1ubuntu4) hirsute; urgency=medium
125+
126+ * Drop depends on udebs, such that they don't hold up any other udebs in
127+ the archive, especially kernel udebs. Otherwise unused in Ubuntu.
128+
129+ -- Dimitri John Ledkov <xnox@ubuntu.com> Mon, 08 Feb 2021 13:18:26 +0000
130+
131+multipath-tools (0.8.5-1ubuntu1) hirsute; urgency=low
132+
133+ * Merge from Debian unstable. Remaining changes:
134+ - multipath initramfs fixes for booting from multipathed devices:
135+ - d/initramfs/hooks: also copy wwids file on the installed
136+ system to ensure all paths come up on boot. (LP 1479929)
137+ - d/initramfs/hooks: install multipathd and required
138+ directories.
139+ - d/initramfs/hooks: copy multipath udev rules to initramfs
140+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
141+ - d/initramfs/local-bottom: remember to stop multipathd.
142+ - d/initramfs/local-premount: wait for udev to settle before
143+ the call to resolve_device() in local_mount_root(), so the
144+ by-uuid/ symlinks have a chance to be updated by the
145+ multipath udev rules (LP 1503286).
146+ - d/initramfs/local-premount: Run multipath with -B so not to
147+ assign names nor change /etc/multipath/bindings during
148+ initramfs (LP 1561103)
149+ - d/rules: install d/initramfs/local-bottom
150+ - d/rules: install d/initramfs/local-premount
151+ - d/control: multipath-udeb: add sg3-udeb Depends
152+ - patches to multipath source:
153+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted files
154+ some more: since we stat() the loopback device node, we can't rely
155+ on S_ISREG() tests to handle this case, and should look at the
156+ device itself instead. (LP 1543430)
157+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
158+ default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
159+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
160+ - d/initramfs/kpartx.hook
161+ - d/kpartx-boot.postinst
162+ - d/kpartx-boot.postrm
163+ - d/control: Add kpartx-boot package for dmraid
164+ - d/rules: Install kpartx initramfs hook
165+ - d/kpartx.install: install all arch /lib* kpartx udev rules
166+ - debian/multipath-tools.dm-mpath-lvm.udev: Adjust initramfs integration
167+ for new udev rules
168+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
169+ - init-top: take over loading modules (dm-multipath and SCSI device
170+ handlers); move the missing dm-emc there (now scsi-dh-emc; see
171+ BTS 567014).
172+ - d/rules: do not install local-top anymore.
173+ - remove d/initramfs/local-top
174+ - d/control: Enable udebs on riscv64 to fix FTBFS.
175+ - d/control, d/rules: i386 related fixes
176+ - Stop producing udebs on i386 where we no longer have d-i or a kernel.
177+ - Fix debian/rules to not explode when building without udebs on i386.
178+ - Don't build the multipath-tools binary package on i386; we only want
179+ kpartx.
180+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
181+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
182+ which is not available in the installer environment.
183+ - d/p/disable-fexceptions-udeb.patch: conditionally disable
184+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
185+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
186+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
187+ deleted message to stdout again, not stderr; to fix autopkgtest
188+ - d/multipath.conf: Install friendly names multipath.conf by default,
189+ instead of generating it in every installer.
190+ - d/rules: Move udev rules to priority 95, because rules that load
191+ modules should be >90.
192+ - d/p/no-start-in-containers.patch: Do not attempt to start
193+ multipath-tools in containers, should switch for on-demand udev/socket
194+ based activation in the future. (LP 1823093)
195+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
196+ finding loopback devices (LP 1747044)
197+ - debian/initramfs/hooks: Add dm-queue-length: users may want to
198+ change from the default selector and should be able to do so.
199+ (LP 1673350)
200+ - debian/initramfs/local-bottom: wait for the multipathd unix
201+ socket to close, so to avoid multipathd.socket unit failure.
202+ (LP 1682178)
203+ - debian/tests/tgtbasedmpaths:
204+ - Add sleep to allow for device creation
205+ - Use stable wwn-* names in autopkgtest that work with or without
206+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
207+
208+ -- Gianfranco Costamagna <locutusofborg@debian.org> Fri, 25 Dec 2020 22:51:36 +0100
209+
210 multipath-tools (0.8.5-1) unstable; urgency=medium
211
212 [ Ritesh Raj Sarraf ]
213@@ -30,6 +227,94 @@ multipath-tools (0.8.5-1) unstable; urgency=medium
214
215 -- Chris Hofstaedtler <zeha@debian.org> Wed, 23 Dec 2020 23:53:53 +0000
216
217+multipath-tools (0.8.4-4ubuntu2) groovy; urgency=medium
218+
219+ * Add README.alua to docs section
220+
221+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Fri, 11 Sep 2020 17:39:12 +0000
222+
223+multipath-tools (0.8.4-4ubuntu1) groovy; urgency=low
224+
225+ * Merge from Debian unstable. Remaining changes:
226+ - multipath initramfs fixes for booting from multipathed devices:
227+ - d/initramfs/hooks: also copy wwids file on the installed
228+ system to ensure all paths come up on boot. (LP 1479929)
229+ - d/initramfs/hooks: install multipathd and required
230+ directories.
231+ - d/initramfs/hooks: copy multipath udev rules to initramfs
232+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
233+ - d/initramfs/local-bottom: remember to stop multipathd.
234+ - d/initramfs/local-premount: wait for udev to settle before
235+ the call to resolve_device() in local_mount_root(), so the
236+ by-uuid/ symlinks have a chance to be updated by the
237+ multipath udev rules (LP 1503286).
238+ - d/initramfs/local-premount: Run multipath with -B so not to
239+ assign names nor change /etc/multipath/bindings during
240+ initramfs (LP 1561103)
241+ - d/rules: install d/initramfs/local-bottom
242+ - d/rules: install d/initramfs/local-premount
243+ - d/control: multipath-udeb: add sg3-udeb Depends
244+ - patches to multipath source:
245+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted files
246+ some more: since we stat() the loopback device node, we can't rely
247+ on S_ISREG() tests to handle this case, and should look at the
248+ device itself instead. (LP 1543430)
249+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
250+ default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
251+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
252+ - d/initramfs/kpartx.hook
253+ - d/kpartx-boot.postinst
254+ - d/kpartx-boot.postrm
255+ - d/control: Add kpartx-boot package for dmraid
256+ - d/rules: Install kpartx initramfs hook
257+ - d/kpartx.install: install all arch /lib* kpartx udev rules
258+ - debian/multipath-tools.dm-mpath-lvm.udev: Adjust initramfs integration
259+ for new udev rules
260+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
261+ - init-top: take over loading modules (dm-multipath and SCSI device
262+ handlers); move the missing dm-emc there (now scsi-dh-emc; see
263+ BTS 567014).
264+ - d/rules: do not install local-top anymore.
265+ - remove d/initramfs/local-top
266+ - d/control: Enable udebs on riscv64 to fix FTBFS.
267+ - d/control, d/rules: i386 related fixes
268+ - Stop producing udebs on i386 where we no longer have d-i or a kernel.
269+ - Fix debian/rules to not explode when building without udebs on i386.
270+ - Don't build the multipath-tools binary package on i386; we only want
271+ kpartx.
272+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
273+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
274+ which is not available in the installer environment.
275+ - d/p/disable-fexceptions-udeb.patch: conditionally disable
276+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
277+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
278+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
279+ deleted message to stdout again, not stderr; to fix autopkgtest
280+ - d/multipath.conf: Install friendly names multipath.conf by default,
281+ instead of generating it in every installer.
282+ - d/rules: Move udev rules to priority 95, because rules that load
283+ modules should be >90.
284+ - d/p/no-start-in-containers.patch: Do not attempt to start
285+ multipath-tools in containers, should switch for on-demand udev/socket
286+ based activation in the future. (LP 1823093)
287+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
288+ finding loopback devices (LP 1747044)
289+ - debian/initramfs/hooks: Add dm-queue-length: users may want to
290+ change from the default selector and should be able to do so.
291+ (LP 1673350)
292+ - debian/initramfs/local-bottom: wait for the multipathd unix
293+ socket to close, so to avoid multipathd.socket unit failure.
294+ (LP 1682178)
295+ - debian/tests/tgtbasedmpaths:
296+ - Add sleep to allow for device creation
297+ - Use stable wwn-* names in autopkgtest that work with or without
298+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
299+ * Dropped changes, superseeded by systemd switch to service script:
300+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make
301+ sure that multipathd will be able to start.
302+
303+ -- Gianfranco Costamagna <locutusofborg@debian.org> Mon, 31 Aug 2020 00:12:32 +0200
304+
305 multipath-tools (0.8.4-4) unstable; urgency=medium
306
307 * [637efc8] Remove overly complicated INSTALL_PROGRAM setup.
308@@ -48,6 +333,87 @@ multipath-tools (0.8.4-4) unstable; urgency=medium
309
310 -- Chris Hofstaedtler <zeha@debian.org> Sun, 30 Aug 2020 01:14:10 +0000
311
312+multipath-tools (0.8.4-3ubuntu1) groovy; urgency=low
313+
314+ * Merge from Debian unstable. Remaining changes:
315+ - multipath initramfs fixes for booting from multipathed devices:
316+ - d/initramfs/hooks: also copy wwids file on the installed
317+ system to ensure all paths come up on boot. (LP 1479929)
318+ - d/initramfs/hooks: install multipathd and required
319+ directories.
320+ - d/initramfs/hooks: copy multipath udev rules to initramfs
321+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
322+ - d/initramfs/local-bottom: remember to stop multipathd.
323+ - d/initramfs/local-premount: wait for udev to settle before
324+ the call to resolve_device() in local_mount_root(), so the
325+ by-uuid/ symlinks have a chance to be updated by the
326+ multipath udev rules (LP 1503286).
327+ - d/initramfs/local-premount: Run multipath with -B so not to
328+ assign names nor change /etc/multipath/bindings during
329+ initramfs (LP 1561103)
330+ - d/rules: install d/initramfs/local-bottom
331+ - d/rules: install d/initramfs/local-premount
332+ - d/control: multipath-udeb: add sg3-udeb Depends
333+ - patches to multipath source:
334+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted files
335+ some more: since we stat() the loopback device node, we can't rely
336+ on S_ISREG() tests to handle this case, and should look at the
337+ device itself instead. (LP 1543430)
338+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
339+ default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
340+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
341+ - d/initramfs/kpartx.hook
342+ - d/kpartx-boot.postinst
343+ - d/kpartx-boot.postrm
344+ - d/control: Add kpartx-boot package for dmraid
345+ - d/rules: Install kpartx initramfs hook
346+ - d/kpartx.install: install all arch /lib* kpartx udev rules
347+ - debian/multipath-tools.dm-mpath-lvm.udev: Adjust initramfs integration
348+ for new udev rules
349+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
350+ - init-top: take over loading modules (dm-multipath and SCSI device
351+ handlers); move the missing dm-emc there (now scsi-dh-emc; see
352+ BTS 567014).
353+ - d/rules: do not install local-top anymore.
354+ - remove d/initramfs/local-top
355+ - d/control: Enable udebs on riscv64 to fix FTBFS.
356+ - d/control, d/rules: i386 related fixes
357+ - Stop producing udebs on i386 where we no longer have d-i or a kernel.
358+ - Fix debian/rules to not explode when building without udebs on i386.
359+ - Don't build the multipath-tools binary package on i386; we only want
360+ kpartx.
361+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
362+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
363+ which is not available in the installer environment.
364+ - d/p/disable-fexceptions-udeb.patch: conditionally disable
365+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
366+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
367+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
368+ deleted message to stdout again, not stderr; to fix autopkgtest
369+ - d/multipath.conf: Install friendly names multipath.conf by default,
370+ instead of generating it in every installer.
371+ - d/rules: Move udev rules to priority 95, because rules that load
372+ modules should be >90.
373+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make
374+ sure that multipathd will be able to start.
375+ - d/p/no-start-in-containers.patch: Do not attempt to start
376+ multipath-tools in containers, should switch for on-demand udev/socket
377+ based activation in the future. (LP 1823093)
378+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
379+ finding loopback devices (LP 1747044)
380+ - debian/initramfs/hooks: Add dm-queue-length: users may want to
381+ change from the default selector and should be able to do so.
382+ (LP 1673350)
383+ - debian/initramfs/local-bottom: wait for the multipathd unix
384+ socket to close, so to avoid multipathd.socket unit failure.
385+ (LP 1682178)
386+ - debian/tests/tgtbasedmpaths:
387+ - Add sleep to allow for device creation
388+ - Use stable wwn-* names in autopkgtest that work with or without
389+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
390+
391+ -- Gianfranco Costamagna <locutusofborg@debian.org> Mon, 17 Aug 2020 11:26:27 +0200
392+
393 multipath-tools (0.8.4-3) unstable; urgency=medium
394
395 * [c8c0700] Fix build with newer json-c.
396@@ -55,12 +421,176 @@ multipath-tools (0.8.4-3) unstable; urgency=medium
397
398 -- Chris Hofstaedtler <zeha@debian.org> Fri, 31 Jul 2020 09:31:38 +0000
399
400+multipath-tools (0.8.4-2ubuntu1) groovy; urgency=low
401+
402+ * Merge from Debian unstable. Remaining changes:
403+ - multipath initramfs fixes for booting from multipathed devices:
404+ - d/initramfs/hooks: also copy wwids file on the installed
405+ system to ensure all paths come up on boot. (LP 1479929)
406+ - d/initramfs/hooks: install multipathd and required
407+ directories.
408+ - d/initramfs/hooks: copy multipath udev rules to initramfs
409+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
410+ - d/initramfs/local-bottom: remember to stop multipathd.
411+ - d/initramfs/local-premount: wait for udev to settle before
412+ the call to resolve_device() in local_mount_root(), so the
413+ by-uuid/ symlinks have a chance to be updated by the
414+ multipath udev rules (LP 1503286).
415+ - d/initramfs/local-premount: Run multipath with -B so not to
416+ assign names nor change /etc/multipath/bindings during
417+ initramfs (LP 1561103)
418+ - d/rules: install d/initramfs/local-bottom
419+ - d/rules: install d/initramfs/local-premount
420+ - d/control: multipath-udeb: add sg3-udeb Depends
421+ - patches to multipath source:
422+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted files
423+ some more: since we stat() the loopback device node, we can't rely
424+ on S_ISREG() tests to handle this case, and should look at the
425+ device itself instead. (LP 1543430)
426+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
427+ default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
428+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
429+ - d/initramfs/kpartx.hook
430+ - d/kpartx-boot.postinst
431+ - d/kpartx-boot.postrm
432+ - d/control: Add kpartx-boot package for dmraid
433+ - d/rules: Install kpartx initramfs hook
434+ - d/kpartx.install: install all arch /lib* kpartx udev rules
435+ - debian/multipath-tools.dm-mpath-lvm.udev: Adjust initramfs integration
436+ for new udev rules
437+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
438+ - init-top: take over loading modules (dm-multipath and SCSI device
439+ handlers); move the missing dm-emc there (now scsi-dh-emc; see
440+ BTS 567014).
441+ - d/rules: do not install local-top anymore.
442+ - remove d/initramfs/local-top
443+ - d/control: Enable udebs on riscv64 to fix FTBFS.
444+ - d/control, d/rules: i386 related fixes
445+ - Stop producing udebs on i386 where we no longer have d-i or a kernel.
446+ - Fix debian/rules to not explode when building without udebs on i386.
447+ - Don't build the multipath-tools binary package on i386; we only want
448+ kpartx.
449+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
450+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
451+ which is not available in the installer environment.
452+ - d/p/disable-fexceptions-udeb.patch: conditionally disable
453+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
454+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
455+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
456+ deleted message to stdout again, not stderr; to fix autopkgtest
457+ - d/multipath.conf: Install friendly names multipath.conf by default,
458+ instead of generating it in every installer.
459+ - d/rules: Move udev rules to priority 95, because rules that load
460+ modules should be >90.
461+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make
462+ sure that multipathd will be able to start.
463+ - d/p/no-start-in-containers.patch: Do not attempt to start
464+ multipath-tools in containers, should switch for on-demand udev/socket
465+ based activation in the future. (LP 1823093)
466+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
467+ finding loopback devices (LP 1747044)
468+ - debian/initramfs/hooks: Add dm-queue-length: users may want to
469+ change from the default selector and should be able to do so.
470+ (LP 1673350)
471+ - debian/initramfs/local-bottom: wait for the multipathd unix
472+ socket to close, so to avoid multipathd.socket unit failure.
473+ (LP 1682178)
474+ - debian/tests/tgtbasedmpaths:
475+ - Add sleep to allow for device creation
476+ - Use stable wwn-* names in autopkgtest that work with or without
477+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
478+ - debian/patches/newer-jsonc.patch
479+ - patch for newer json-c
480+
481+ -- Gianfranco Costamagna <locutusofborg@debian.org> Fri, 31 Jul 2020 10:20:36 +0200
482+
483 multipath-tools (0.8.4-2) unstable; urgency=medium
484
485 * [b270b02] Fix FTBFS with gcc-10 (Closes: #957568)
486
487 -- Chris Hofstaedtler <zeha@debian.org> Wed, 22 Jul 2020 22:23:13 +0000
488
489+multipath-tools (0.8.4-1ubuntu1) groovy; urgency=medium
490+
491+ * Merge with Debian unstable (LP: #1886693). Remaining changes:
492+ - multipath initramfs fixes for booting from multipathed devices:
493+ - d/initramfs/hooks: also copy wwids file on the installed
494+ system to ensure all paths come up on boot. (LP 1479929)
495+ - d/initramfs/hooks: install multipathd and required
496+ directories.
497+ - d/initramfs/hooks: copy multipath udev rules to initramfs
498+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
499+ - d/initramfs/local-bottom: remember to stop multipathd.
500+ - d/initramfs/local-premount: wait for udev to settle before
501+ the call to resolve_device() in local_mount_root(), so the
502+ by-uuid/ symlinks have a chance to be updated by the
503+ multipath udev rules (LP 1503286).
504+ - d/initramfs/local-premount: Run multipath with -B so not to
505+ assign names nor change /etc/multipath/bindings during
506+ initramfs (LP 1561103)
507+ - d/rules: install d/initramfs/local-bottom
508+ - d/rules: install d/initramfs/local-premount
509+ - d/control: multipath-udeb: add sg3-udeb Depends
510+ - patches to multipath source:
511+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted files
512+ some more: since we stat() the loopback device node, we can't rely
513+ on S_ISREG() tests to handle this case, and should look at the
514+ device itself instead. (LP 1543430)
515+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
516+ default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
517+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
518+ - d/initramfs/kpartx.hook
519+ - d/kpartx-boot.postinst
520+ - d/kpartx-boot.postrm
521+ - d/control: Add kpartx-boot package for dmraid
522+ - d/rules: Install kpartx initramfs hook
523+ - d/kpartx.install: install all arch /lib* kpartx udev rules
524+ - debian/multipath-tools.dm-mpath-lvm.udev: Adjust initramfs integration
525+ for new udev rules
526+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
527+ - init-top: take over loading modules (dm-multipath and SCSI device
528+ handlers); move the missing dm-emc there (now scsi-dh-emc; see
529+ BTS 567014).
530+ - d/rules: do not install local-top anymore.
531+ - remove d/initramfs/local-top
532+ - d/control: Enable udebs on riscv64 to fix FTBFS.
533+ - d/control, d/rules: i386 related fixes
534+ - Stop producing udebs on i386 where we no longer have d-i or a kernel.
535+ - Fix debian/rules to not explode when building without udebs on i386.
536+ - Don't build the multipath-tools binary package on i386; we only want
537+ kpartx.
538+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
539+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
540+ which is not available in the installer environment.
541+ - d/p/disable-fexceptions-udeb.patch: conditionally disable
542+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
543+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
544+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
545+ deleted message to stdout again, not stderr; to fix autopkgtest
546+ - d/multipath.conf: Install friendly names multipath.conf by default,
547+ instead of generating it in every installer.
548+ - d/rules: Move udev rules to priority 95, because rules that load
549+ modules should be >90.
550+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make
551+ sure that multipathd will be able to start.
552+ - d/p/no-start-in-containers.patch: Do not attempt to start
553+ multipath-tools in containers, should switch for on-demand udev/socket
554+ based activation in the future. (LP 1823093)
555+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
556+ finding loopback devices (LP 1747044)
557+ - debian/initramfs/hooks: Add dm-queue-length: users may want to
558+ change from the default selector and should be able to do so.
559+ (LP 1673350)
560+ - debian/initramfs/local-bottom: wait for the multipathd unix
561+ socket to close, so to avoid multipathd.socket unit failure.
562+ (LP 1682178)
563+ - debian/tests/tgtbasedmpaths:
564+ - Add sleep to allow for device creation
565+ - Use stable wwn-* names in autopkgtest that work with or without
566+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
567+
568+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Wed, 08 Jul 2020 03:59:53 +0000
569+
570 multipath-tools (0.8.4-1) unstable; urgency=medium
571
572 * [f4b2af2] kpartx: use correct path to partx in udev rule (Closes: #959727)
573@@ -69,6 +599,95 @@ multipath-tools (0.8.4-1) unstable; urgency=medium
574
575 -- Chris Hofstaedtler <zeha@debian.org> Sun, 21 Jun 2020 16:23:30 +0000
576
577+multipath-tools (0.8.3-1ubuntu2) focal; urgency=medium
578+
579+ * Enable udebs on riscv64 to fix FTBFS.
580+
581+ -- William Grant <wgrant@ubuntu.com> Mon, 06 Apr 2020 18:17:20 +1000
582+
583+multipath-tools (0.8.3-1ubuntu1) focal; urgency=low
584+
585+ * Merge from Debian unstable. Remaining changes:
586+ - Stop producing udebs on i386 where we no longer have d-i or a kernel.
587+ - Fix debian/rules to not explode when building without udebs on i386.
588+ - Don't build the multipath-tools binary package on i386; we only want
589+ kpartx.
590+ - d/control:
591+ - multipath-udeb: add sg3-udeb Depends
592+ - d/rules: Move udev rules to priority 95, because rules that load modules
593+ should be >90.
594+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
595+ that multipathd will be able to start.
596+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
597+ - d/initramfs/kpartx.hook
598+ - d/kpartx-boot.postinst
599+ - d/kpartx-boot.postrm
600+ - d/control: Add kpartx-boot package for dmraid
601+ - d/rules: Install kpartx initramfs hook
602+ - d/kpartx.install: install all arch /lib* kpartx udev rules
603+ - patches to multipath source
604+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
605+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
606+ files some more: since we stat() the loopback device node, we can't rely
607+ on S_ISREG() tests to handle this case, and should look at the device
608+ itself instead. (LP 1543430)
609+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
610+ by default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
611+ - multipath initramfs fixes for booting from multipathed devices
612+ - d/initramfs/hooks: also copy wwids file on the installed system to
613+ ensure all paths come up on boot. (LP 1479929)
614+ - d/initramfs/hooks: install multipathd and required directories.
615+ - d/initramfs/hooks: copy multipath udev rules to initramfs
616+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
617+ - d/initramfs/local-bottom: remember to stop multipathd.
618+ - d/initramfs/local-premount: wait for udev to settle before the call to
619+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
620+ chance to be updated by the multipath udev rules (LP 1503286).
621+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
622+ nor change /etc/multipath/bindings during initramfs (LP 1561103)
623+ - d/rules: install d/initramfs/local-bottom
624+ - d/rules: install d/initramfs/local-premount
625+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
626+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
627+ which is not available in the installer environment.
628+ - d/p/disable-fexceptions-udeb.patch: conditionally disable -fexceptions
629+ with CFLAGS_DISABLE_FEXCEPTIONS.
630+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
631+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
632+ - init-top: take over loading modules (dm-multipath and SCSI device
633+ handlers); move the missing dm-emc there (now scsi-dh-emc;
634+ see BTS 567014).
635+ - d/rules: do not install local-top anymore.
636+ - remove d/initramfs/local-top
637+ - Fixes typo in package description (availibility -> availability)
638+ (LP 1231182)
639+ - debian/initramfs/local-bottom: wait for the multipathd unix socket
640+ to close, so to avoid multipathd.socket unit failure. (LP 1682178)
641+ - debian/initramfs/hooks: Add dm-queue-length: users may want to change
642+ from the default selector and should be able to do so. (LP 1673350)
643+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
644+ finding loopback devices (LP 1747044)
645+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
646+ deleted message to stdout again, not stderr; to fix autopkgtest
647+ - Install friendly names multipath.conf by default, instead of
648+ generating it in every installer.
649+ - Use stable wwn-* names in autopkgtest that work with or without
650+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
651+ - Do not attempt to start multipath-tools in containers, should switch
652+ for on-demand udev/socket based activation in the future. LP 1823093
653+ - Adjust initramfs integration for new udev rules
654+ - debian/tests/tgtbasedmpaths: Add sleep to allow for device creation
655+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch
656+ [updated to match new upstream version]
657+ - d/p/disable-fexceptions-udeb.patch: to match new upstream version
658+ [updated to match new upstream version]
659+ - d/p/enable-find-multipaths.patch: since upstream change c36f2f42 we need
660+ to set yes to retain the Ubuntu behavior instead of 1 as we did before.
661+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch
662+ [updated to match new upstream version]
663+
664+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 13 Feb 2020 11:57:46 -0800
665+
666 multipath-tools (0.8.3-1) unstable; urgency=medium
667
668 * [6b91b76] New upstream version 0.8.3
669@@ -76,6 +695,144 @@ multipath-tools (0.8.3-1) unstable; urgency=medium
670
671 -- Ritesh Raj Sarraf <rrs@debian.org> Wed, 08 Jan 2020 21:45:44 +0530
672
673+multipath-tools (0.7.9-3ubuntu7) focal; urgency=medium
674+
675+ * Don't build the multipath-tools binary package on i386; we only want
676+ kpartx.
677+
678+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 07 Jan 2020 14:00:24 -0800
679+
680+multipath-tools (0.7.9-3ubuntu6) eoan; urgency=medium
681+
682+ * Fix debian/rules to not explode when building without udebs on i386.
683+
684+ -- Adam Conrad <adconrad@ubuntu.com> Wed, 09 Oct 2019 15:22:33 -0600
685+
686+multipath-tools (0.7.9-3ubuntu5) eoan; urgency=medium
687+
688+ * Stop producing udebs on i386 where we no longer have d-i or a kernel.
689+
690+ -- Adam Conrad <adconrad@ubuntu.com> Wed, 09 Oct 2019 14:09:21 -0600
691+
692+multipath-tools (0.7.9-3ubuntu4) eoan; urgency=medium
693+
694+ * Rebuild against new libjson-c4.
695+
696+ -- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 29 Jun 2019 13:55:54 +0200
697+
698+multipath-tools (0.7.9-3ubuntu3) eoan; urgency=medium
699+
700+ * Revert "Ensure udebs have the same udev rules as installed
701+ systems. LP: #1825189" for now. Udev rules get in the way at the
702+ moment.
703+
704+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 21 May 2019 12:34:41 +0100
705+
706+multipath-tools (0.7.9-3ubuntu2) eoan; urgency=medium
707+
708+ * Ensure udebs have the same udev rules as installed systems. LP:
709+ #1825189
710+
711+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 21 May 2019 12:34:41 +0100
712+
713+multipath-tools (0.7.9-3ubuntu1) eoan; urgency=medium
714+
715+ * Merge from Debian. Remaining changes:
716+ - d/control:
717+ - multipath-udeb: add sg3-udeb Depends
718+ - d/rules: Move udev rules to priority 95, because rules that load modules
719+ should be >90.
720+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
721+ that multipathd will be able to start.
722+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
723+ - d/initramfs/kpartx.hook
724+ - d/kpartx-boot.postinst
725+ - d/kpartx-boot.postrm
726+ - d/control: Add kpartx-boot package for dmraid
727+ - d/rules: Install kpartx initramfs hook
728+ - d/kpartx.install: install all arch /lib* kpartx udev rules
729+ - patches to multipath source
730+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
731+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
732+ files some more: since we stat() the loopback device node, we can't rely
733+ on S_ISREG() tests to handle this case, and should look at the device
734+ itself instead. (LP 1543430)
735+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
736+ by default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
737+ - multipath initramfs fixes for booting from multipathed devices
738+ - d/initramfs/hooks: also copy wwids file on the installed system to
739+ ensure all paths come up on boot. (LP 1479929)
740+ - d/initramfs/hooks: install multipathd and required directories.
741+ - d/initramfs/hooks: copy multipath udev rules to initramfs
742+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
743+ - d/initramfs/local-bottom: remember to stop multipathd.
744+ - d/initramfs/local-premount: wait for udev to settle before the call to
745+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
746+ chance to be updated by the multipath udev rules (LP 1503286).
747+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
748+ nor change /etc/multipath/bindings during initramfs (LP 1561103)
749+ - d/rules: install d/initramfs/local-bottom
750+ - d/rules: install d/initramfs/local-premount
751+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
752+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
753+ which is not available in the installer environment.
754+ - d/p/disable-fexceptions-udeb.patch: conditionally disable -fexceptions
755+ with CFLAGS_DISABLE_FEXCEPTIONS.
756+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
757+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
758+ - init-top: take over loading modules (dm-multipath and SCSI device
759+ handlers); move the missing dm-emc there (now scsi-dh-emc;
760+ see BTS 567014).
761+ - d/rules: do not install local-top anymore.
762+ - remove d/initramfs/local-top
763+ - Fixes typo in package description (availibility -> availability)
764+ (LP 1231182)
765+ - debian/initramfs/local-bottom: wait for the multipathd unix socket
766+ to close, so to avoid multipathd.socket unit failure. (LP 1682178)
767+ - debian/initramfs/hooks: Add dm-queue-length: users may want to change
768+ from the default selector and should be able to do so. (LP 1673350)
769+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
770+ finding loopback devices (LP 1747044)
771+ - d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
772+ deleted message to stdout again, not stderr; to fix autopkgtest
773+ - Install friendly names multipath.conf by default, instead of
774+ generating it in every installer.
775+ - Use stable wwn-* names in autopkgtest that work with or without
776+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
777+ - Do not attempt to start multipath-tools in containers, should switch
778+ for on-demand udev/socket based activation in the future. LP 1823093
779+ - Adjust initramfs integration for new udev rules
780+ - debian/tests/tgtbasedmpaths: Add sleep to allow for device creation
781+ * Dropped changes:
782+ - Install dm-parts.rule
783+ - Fix /usr/lib/udev to be /lib/udev
784+ - Move udev rules at position 11 to position 56
785+ - Fix 11-dm-mpath.rules to check for DM_UDEV_RULES, not DM_UDEV_RULES_VSN
786+ - d/rules: Run dh_clean from clean target
787+ - Install 68-del-part-nodes.rules
788+ [all above in Debian now]
789+ - Import upstream commit to fix crash in multipathd
790+ [part of the new upstream version]
791+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
792+ [new upstream sets umask before calling before uxsock_listen]
793+ - d/control mark transition of file /etc/init.d/multipath-tools-boot
794+ according to case #9 of https://wiki.debian.org/PackageTransition
795+ [no more needed post 18.04]
796+ - Apply fix from fedora to trigger change uevent on device creation,
797+ this also ensures new devices are discovered automatically.
798+ [upstream since 0.7.7]
799+ * Added Changes:
800+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch
801+ [updated to match new upstream version]
802+ - d/p/disable-fexceptions-udeb.patch: to match new upstream version
803+ [updated to match new upstream version]
804+ - d/p/enable-find-multipaths.patch: since upstream change c36f2f42 we need
805+ to set yes to retain the Ubuntu behavior instead of 1 as we did before.
806+ - d/p/kpartx-Improve-finding-loopback-device-by-file.patch
807+ [updated to match new upstream version]
808+
809+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 29 Apr 2019 16:14:26 +0200
810+
811 multipath-tools (0.7.9-3) unstable; urgency=medium
812
813 * [51a7724] Reliably extract the running systemd version
814@@ -169,6 +926,126 @@ multipath-tools (0.7.4-3) unstable; urgency=medium
815
816 -- Ritesh Raj Sarraf <rrs@debian.org> Sat, 10 Feb 2018 11:23:20 +0530
817
818+multipath-tools (0.7.4-2ubuntu8) disco; urgency=medium
819+
820+ * Do not attempt to start multipath-tools in containers, should switch
821+ for on-demand udev/socket based activation in the future. LP: #1823093
822+
823+ -- Dimitri John Ledkov <xnox@ubuntu.com> Mon, 15 Apr 2019 11:10:32 +0100
824+
825+multipath-tools (0.7.4-2ubuntu7) disco; urgency=medium
826+
827+ * Use stable wwn-* names in autopkgtest that work with or without
828+ friendly names, as scsi-${DM_NAME} is not a stable symlink name.
829+
830+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 02 Apr 2019 13:22:51 +0100
831+
832+multipath-tools (0.7.4-2ubuntu6) disco; urgency=medium
833+
834+ * Install friendly names multipath.conf by default, instead of
835+ generating it in every installer.
836+
837+ -- Dimitri John Ledkov <xnox@ubuntu.com> Wed, 20 Mar 2019 23:02:30 +0000
838+
839+multipath-tools (0.7.4-2ubuntu4) disco; urgency=medium
840+
841+ * No-change rebuild for readline soname change.
842+
843+ -- Matthias Klose <doko@ubuntu.com> Mon, 14 Jan 2019 20:02:28 +0000
844+
845+multipath-tools (0.7.4-2ubuntu3) bionic; urgency=medium
846+
847+ * d/p/kpartx-print-loop-deleted-to-stdout-not-stderr.patch: Print loop
848+ deleted message to stdout again, not stderr; to fix autopkgtest
849+
850+ -- Julian Andres Klode <juliank@ubuntu.com> Mon, 05 Feb 2018 11:46:37 +0100
851+
852+multipath-tools (0.7.4-2ubuntu2) bionic; urgency=medium
853+
854+ * d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
855+ finding loopback devices (LP: #1747044)
856+
857+ -- Julian Andres Klode <juliank@ubuntu.com> Mon, 05 Feb 2018 10:06:19 +0100
858+
859+multipath-tools (0.7.4-2ubuntu1) bionic; urgency=medium
860+
861+ * Merge from Debian. (LP: #1710697, LP: #1711749) Remaining changes:
862+ - d/control:
863+ - multipath-udeb: add sg3-udeb Depends
864+ - d/rules: Move udev rules to priority 95, because rules that load modules
865+ should be >90.
866+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
867+ that multipathd will be able to start.
868+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
869+ - d/initramfs/kpartx.hook
870+ - d/kpartx-boot.postinst
871+ - d/kpartx-boot.postrm
872+ - d/control: Add kpartx-boot package for dmraid
873+ - d/rules: Install kpartx initramfs hook
874+ - d/kpartx.install: install all arch /lib* kpartx udev rules
875+ - patches to multipath source
876+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
877+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
878+ files some more: since we stat() the loopback device node, we can't rely
879+ on S_ISREG() tests to handle this case, and should look at the device
880+ itself instead. (LP 1543430)
881+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
882+ by default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
883+ - multipath initramfs fixes for booting from multipathed devices
884+ - d/initramfs/hooks: also copy wwids file on the installed system to
885+ ensure all paths come up on boot. (LP 1479929)
886+ - d/initramfs/hooks: install multipathd and required directories.
887+ - d/initramfs/hooks: copy multipath udev rules to initramfs
888+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
889+ - d/initramfs/local-bottom: remember to stop multipathd.
890+ - d/initramfs/local-premount: wait for udev to settle before the call to
891+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
892+ chance to be updated by the multipath udev rules (LP 1503286).
893+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
894+ nor change /etc/multipath/bindings during initramfs (LP 1561103)
895+ - d/rules: install d/initramfs/local-bottom
896+ - d/rules: install d/initramfs/local-premount
897+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
898+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
899+ which is not available in the installer environment.
900+ - d/p/disable-fexceptions-udeb.patch: conditionally disable -fexceptions
901+ with CFLAGS_DISABLE_FEXCEPTIONS.
902+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
903+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
904+ - init-top: take over loading modules (dm-multipath and SCSI device
905+ handlers); move the missing dm-emc there (now scsi-dh-emc;
906+ see BTS 567014).
907+ - d/rules: do not install local-top anymore.
908+ - remove d/initramfs/local-top
909+ - Fixes typo in package description (availibility -> availability)
910+ (LP 1231182)
911+ - d/control mark transition of file /etc/init.d/multipath-tools-boot
912+ according to case #9 of https://wiki.debian.org/PackageTransition
913+ - debian/initramfs/local-bottom: wait for the multipathd unix socket
914+ to close, so to avoid multipathd.socket unit failure. (LP 1682178)
915+ - debian/initramfs/hooks: Add dm-queue-length: users may want to change
916+ from the default selector and should be able to do so. (LP 1673350)
917+ * Dropped changes:
918+ - Remove partition device nodes of individual paths (for LVM on multipath)
919+ on the new multipath-tools with udev property blacklisting (LP 1540401)
920+ + Replaced by 68-del-part-nodes.rules
921+ + known as "dm-mpath-lvm.rules", also dropped initramfs for that
922+ * New changes:
923+ - Install dm-parts.rule
924+ - Fix /usr/lib/udev to be /lib/udev
925+ - Move udev rules at position 11 to position 56
926+ - Fix 11-dm-mpath.rules to check for DM_UDEV_RULES, not DM_UDEV_RULES_VSN
927+ - d/rules: Run dh_clean from clean target
928+ - Install 68-del-part-nodes.rules
929+ - Import upstream commit to fix crash in multipathd
930+ - Adjust initramfs integration for new udev rules
931+ - Apply fix from fedora to trigger change uevent on device creation,
932+ this also ensures new devices are discovered automatically.
933+ - debian/tests/tgtbasedmpaths: Add sleep to allow for device creation
934+ - d/patches: Add DEP-3 headers to our own patches
935+
936+ -- Julian Andres Klode <juliank@ubuntu.com> Wed, 24 Jan 2018 10:57:46 +0100
937+
938 multipath-tools (0.7.4-2) unstable; urgency=medium
939
940 * Upload to Unstable
941@@ -200,6 +1077,89 @@ multipath-tools (0.7.4-1) experimental; urgency=medium
942
943 -- Ritesh Raj Sarraf <rrs@debian.org> Fri, 22 Dec 2017 11:49:58 +0530
944
945+multipath-tools (0.6.4-5ubuntu1) artful; urgency=medium
946+
947+ * Merge from Debian. (LP: #1548303) Remaining changes:
948+ - d/control:
949+ - multipath-udeb: add sg3-udeb Depends
950+ - d/rules: Move udev rules to priority 95, because rules that load modules
951+ should be >90.
952+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
953+ that multipathd will be able to start.
954+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
955+ - d/initramfs/kpartx.hook
956+ - d/kpartx-boot.postinst
957+ - d/kpartx-boot.postrm
958+ - d/control: Add kpartx-boot package for dmraid
959+ - d/rules: Install kpartx initramfs hook
960+ - d/kpartx.install: install all arch /lib* kpartx udev rules
961+ - patches to multipath source
962+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
963+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
964+ files some more: since we stat() the loopback device node, we can't rely
965+ on S_ISREG() tests to handle this case, and should look at the device
966+ itself instead. (LP 1543430)
967+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
968+ by default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
969+ - multipath initramfs fixes for booting from multipathed devices
970+ - d/initramfs/hooks: also copy wwids file on the installed system to
971+ ensure all paths come up on boot. (LP 1479929)
972+ - d/initramfs/hooks: install multipathd and required directories.
973+ - d/initramfs/hooks: copy dm-mpath-lvm & multipath udev rules to initramfs
974+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
975+ - d/initramfs/local-bottom: remember to stop multipathd.
976+ - d/initramfs/local-premount: wait for udev to settle before the call to
977+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
978+ chance to be updated by the multipath udev rules (LP 1503286).
979+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
980+ nor change /etc/multipath/bindings during initramfs (LP 1561103)
981+ - d/rules: install d/initramfs/local-bottom
982+ - d/rules: install d/initramfs/local-premount
983+ - Disable -fexceptions on multipath-udeb (LP 1489379): the flag causes
984+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
985+ which is not available in the installer environment.
986+ - d/p/disable-fexceptions-udeb.patch: conditionally disable -fexceptions
987+ with CFLAGS_DISABLE_FEXCEPTIONS.
988+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
989+ - Remove partition device nodes of individual paths (for LVM on multipath)
990+ on the new multipath-tools with udev property blacklisting (LP 1540401)
991+ - d/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
992+ - d/initramfs/init-top: load the dm-multipath module for
993+ 'multipath -c'.
994+ - d/initramfs/init-top: start multipathd before udev (required by
995+ 'multipath -u' in the udev rules)
996+ - d/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
997+ - d/rules: rename multipath-tools udev to dm-mpath-lvm
998+ - d/multipath-tools.dm-mpath-lvm.udev: replace 'multipath -c' with
999+ 'multipath -u' which can read udev properties at PROGRAM-rule time
1000+ (when udev properties are not yet written to the udev database).
1001+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
1002+ - init-top: take over loading modules (dm-multipath and SCSI device
1003+ handlers); move the missing dm-emc there (now scsi-dh-emc;
1004+ see BTS 567014).
1005+ - d/rules: do not install local-top anymore.
1006+ - remove d/initramfs/local-top
1007+ - Fixes typo in package description (availibility -> availability)
1008+ (LP 1231182)
1009+ - d/control mark transition of file /etc/init.d/multipath-tools-boot
1010+ according to case #9 of https://wiki.debian.org/PackageTransition
1011+ - debian/initramfs/local-bottom: wait for the multipathd unix socket
1012+ to close, so to avoid multipathd.socket unit failure. (LP 1682178)
1013+ - debian/initramfs/hooks: Add dm-queue-length: users may want to change
1014+ from the default selector and should be able to do so. (LP 1673350)
1015+ * Drop changes (in Debian now):
1016+ - d/control: Bump udev dependencies (in Debian)
1017+ - debian/initramfs/hooks:
1018+ - Remove old dm-emc module; it hasn't been in kernel since 2.6.27.
1019+ - d/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
1020+ where uploads might break kpartx's loopback file handling.
1021+ - mark kpartx tests as isolation-machine to avoid issues in e.g. LXD
1022+ autopkgtest environments (LP 1644253)
1023+ - d/t/tgtbasedmpaths add Test using tgt and open-iscsi to excercise
1024+ multipath
1025+
1026+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 18 Jul 2017 14:12:53 +0200
1027+
1028 multipath-tools (0.6.4-5) unstable; urgency=medium
1029
1030 * Ship multipath udev rules (Closes: #858456)
1031@@ -223,6 +1183,163 @@ multipath-tools (0.6.4-4) unstable; urgency=medium
1032
1033 -- Ritesh Raj Sarraf <rrs@debian.org> Mon, 20 Feb 2017 19:36:31 +0530
1034
1035+multipath-tools (0.6.4-3ubuntu6) artful; urgency=medium
1036+
1037+ * Rebuild against new liburcu6.
1038+
1039+ -- Gianfranco Costamagna <locutusofborg@debian.org> Tue, 18 Jul 2017 12:08:33 +0200
1040+
1041+multipath-tools (0.6.4-3ubuntu5) artful; urgency=medium
1042+
1043+ * No-change rebuild against latest liburcu
1044+
1045+ -- Jeremy Bicha <jbicha@ubuntu.com> Sat, 15 Jul 2017 09:44:44 -0400
1046+
1047+multipath-tools (0.6.4-3ubuntu4) zesty; urgency=medium
1048+
1049+ * debian/initramfs/local-bottom: wait for the multipathd unix socket
1050+ to close, so to avoid multipathd.socket unit failure. (LP: #1682178)
1051+
1052+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> Wed, 12 Apr 2017 14:30:13 -0400
1053+
1054+multipath-tools (0.6.4-3ubuntu3) zesty; urgency=medium
1055+
1056+ * debian/initramfs/hooks, debian/initramfs/local-bottom:
1057+ Update hooks and local-bottom to use /run instead of /var/run as a path
1058+ for multipathd.pid in the initramfs. (LP: #1670811)
1059+
1060+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Tue, 28 Mar 2017 21:20:22 -0400
1061+
1062+multipath-tools (0.6.4-3ubuntu2) zesty; urgency=medium
1063+
1064+ * debian/initramfs/hooks:
1065+ - Remove old dm-emc module; it hasn't been in kernel since 2.6.27.
1066+ - Add dm-queue-length: users may want to change from the default selector
1067+ and should be able to do so. (LP: #1673350)
1068+ * debian/patches/path_selector.patch, debian/patches/series: remove
1069+ path_selector.patch to get back to the "right" default selector of
1070+ service-time, which has been included in the kernel module packages for
1071+ a while now and has better throughput than round-robin. It's also the
1072+ default upstream. (LP: #1634161)
1073+
1074+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Fri, 17 Mar 2017 09:37:36 -0400
1075+
1076+multipath-tools (0.6.4-3ubuntu1) zesty; urgency=medium
1077+
1078+ * Merge from Debian. (LP: #1621340, LP: #1645274) Remaining changes:
1079+ - d/control:
1080+ - Bump udev dependencies
1081+ - multipath-udeb: add sg3-udeb Depends
1082+ - d/rules: Move udev rules to priority 95, because rules that load modules
1083+ should be >90.
1084+ - d/multipath-tools.preinst: modprobe dm-multipath; This will make sure
1085+ that multipathd will be able to start.
1086+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
1087+ - d/initramfs/kpartx.hook
1088+ - d/kpartx-boot.postinst
1089+ - d/kpartx-boot.postrm
1090+ - d/control: Add kpartx-boot package for dmraid
1091+ - d/rules: Install kpartx initramfs hook
1092+ - d/kpartx.install: install all arch /lib* kpartx udev rules
1093+ - patches (some refreshed to new version) to multipath source
1094+ - d/p/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
1095+ - d/p/path_selector.patch: switch the default path selector
1096+ back to round-robin while service-time isn't available to the installer
1097+ multipath-modules.
1098+ - d/p/kpartx_more_loopback_fixes.patch: fix loopback mounted
1099+ files some more: since we stat() the loopback device node, we can't rely
1100+ on S_ISREG() tests to handle this case, and should look at the device
1101+ itself instead. (LP: #1543430)
1102+ - d/p/enable-find-multipaths.patch: re-enable find_multipaths
1103+ by default -- see the removed 'add_find-multipaths.patch' (LP: #1463046)
1104+ - multipath initramfs fixes for booting from multipathed devices
1105+ - d/initramfs/hooks: also copy wwids file on the installed system to
1106+ ensure all paths come up on boot. (LP: #1479929)
1107+ - d/initramfs/hooks: install multipathd and required directories.
1108+ - d/initramfs/hooks: copy dm-mpath-lvm & multipath udev rules to initramfs
1109+ - d/initramfs/hooks: do not copy kpartx rules to initramfs
1110+ - d/initramfs/local-bottom: remember to stop multipathd.
1111+ - d/initramfs/local-premount: wait for udev to settle before the call to
1112+ resolve_device() in local_mount_root(), so the by-uuid/ symlinks have a
1113+ chance to be updated by the multipath udev rules (LP: #1503286).
1114+ - d/initramfs/local-premount: Run multipath with -B so not to assign names
1115+ nor change /etc/multipath/bindings during initramfs (LP: #1561103)
1116+ - d/rules: install d/initramfs/local-bottom
1117+ - d/rules: install d/initramfs/local-premount
1118+ - Remove partition device nodes of individual paths (for LVM on multipath)
1119+ (LP: #1540401)
1120+ - Disable -fexceptions on multipath-udeb (LP: #1489379): the flag causes
1121+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
1122+ which is not available in the installer environment.
1123+ - d/p/disable-fexceptions-udeb.patch: conditionally disable -fexceptions
1124+ with CFLAGS_DISABLE_FEXCEPTIONS.
1125+ - d/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
1126+ - d/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
1127+ where uploads might break kpartx's loopback file handling.
1128+ - Remove partition device nodes of individual paths (for LVM on multipath)
1129+ on the new multipath-tools with udev property blacklisting (LP: #1540401)
1130+ - d/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
1131+ - d/initramfs/init-top: load the dm-multipath module for
1132+ 'multipath -c'.
1133+ - d/initramfs/init-top: start multipathd before udev (required by
1134+ 'multipath -u' in the udev rules)
1135+ - d/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
1136+ - d/rules: rename multipath-tools udev to dm-mpath-lvm
1137+ - d/multipath-tools.dm-mpath-lvm.udev: replace 'multipath -c' with
1138+ 'multipath -u' which can read udev properties at PROGRAM-rule time
1139+ (when udev properties are not yet written to the udev database).
1140+ - Remove d/initramfs/local-top (redundant with other initramfs scripts):
1141+ - init-top: take over loading modules (dm-multipath and SCSI device
1142+ handlers); move the missing dm-emc there (now scsi-dh-emc;
1143+ see BTS 567014).
1144+ - d/rules: do not install local-top anymore.
1145+ - remove d/initramfs/local-top
1146+ - Fixes typo in package description (availibility -> availability)
1147+ (LP: #1231182)
1148+ * Add changes:
1149+ - mark kpartx tests as isolation-machine to avoid issues in e.g. LXD
1150+ autopkgtest environments (LP: #1644253)
1151+ - d/t/tgtbasedmpaths add Test using tgt and open-iscsi to excercise
1152+ multipath
1153+ - d/control mark transition of file /etc/init.d/multipath-tools-boot
1154+ according to case #9 of https://wiki.debian.org/PackageTransition
1155+ * Drop changes:
1156+ - d/initramfs/local-top: wait for udev to settle before running
1157+ 'multipath' in order to avoid race condition on device-mapper calls.
1158+ (file no more used)
1159+ - d/initramfs/local-top: remove '--timeout 10' which causes my
1160+ test system to not boot roughly 3 out of 4 times.
1161+ (file no more used)
1162+ - d/initramfs/local-top: run multipathd rather than a one-off call to
1163+ multipath so that new paths can be correctly added as detected while we're
1164+ still in the initramfs.
1165+ (file no more used)
1166+ - Call clean target before rebuilding with systemd support (in Debian)
1167+ - drop build-dep to dpkg-dev (>= 1.16.1~), libudev-dev"
1168+ (No more needed)
1169+ - Bump Standards-Version to 3.9.6 (in Debian)
1170+ - add / to LIB= of DEB_CFLAGS_MAINT_APPEND (in Debian)
1171+ - d/p/handle_spaces_in_rev_attr.patch: support IBM IPR devices and others
1172+ which may have only spaces for the rev attribute. (upstream)
1173+ - d/p/0015-shared-lock-for-udev.patch: (LP: #1431650) (upstream)
1174+ - d/p/0053-readonly-bindings_multipathd_prod.patch: support
1175+ -B to allow multipathd to handle cases where the bindings file is
1176+ read-only. (upstream)
1177+ - d/p/git-kpartx-support-spaces-in-dev-names-b407050a.patch: deal with
1178+ spaces in device names in kpartx too (LP: #1432062) (upstream)
1179+ - d/p/0001-multipath-tools-fix-dm-device-filtering.patch: Allow
1180+ filtering of DEV_UEVENT dev_type (LP: #1570093) (upstream)
1181+ - d/multipath-tools.postinst: handle upgrades from < 0.5.0 by migrating
1182+ from the old device names with device numbers to using letters for devices.
1183+ (no relevant upgrade path left)
1184+ - d/p/mpath_name_migration.patch: ship a multipath_migrate binary
1185+ to make translation from pre-0.5.0 device naming to the new scheme.
1186+ (no relevant upgrade path left)
1187+ - d/initramfs/hooks: use 95 not 60 for multipath rules priority (file not
1188+ shipped anymore, so no need to touch)
1189+
1190+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Fri, 27 Jan 2017 09:09:37 +0100
1191+
1192 multipath-tools (0.6.4-3) unstable; urgency=medium
1193
1194 * [3eecdba] Include libmpathcmd.so in the udeb package.
1195@@ -355,6 +1472,164 @@ multipath-tools (0.5.0+git1.656f8865-6) unstable; urgency=medium
1196
1197 -- Ritesh Raj Sarraf <rrs@debian.org> Sat, 12 Mar 2016 17:47:25 +0530
1198
1199+multipath-tools (0.5.0+git1.656f8865-5ubuntu7) yakkety; urgency=medium
1200+
1201+ * No-change rebuild for readline soname change.
1202+
1203+ -- Matthias Klose <doko@ubuntu.com> Sat, 17 Sep 2016 12:06:37 +0000
1204+
1205+multipath-tools (0.5.0+git1.656f8865-5ubuntu6) yakkety; urgency=medium
1206+
1207+ * Fixes typo in package description (availibility -> availability)
1208+ (LP: #1231182)
1209+
1210+ -- Hans Joachim Desserud <ubuntu@desserud.org> Sun, 04 Sep 2016 13:19:49 +0200
1211+
1212+multipath-tools (0.5.0+git1.656f8865-5ubuntu5) yakkety; urgency=medium
1213+
1214+ [ Dragan Stancevic ]
1215+ * d/p/0001-multipath-tools-fix-dm-device-filtering.patch :
1216+ multipath-tools: fix dm- device filtering
1217+ - Allow filtering of DEV_UEVENT dev_type
1218+ - Resolves LP: #1570093
1219+ - Proper patch included in the source package this time. Previous upload
1220+ only had the changelog entry.
1221+
1222+ -- Louis Bouchard <louis.bouchard@ubuntu.com> Tue, 19 Jul 2016 14:17:14 +0200
1223+
1224+multipath-tools (0.5.0+git1.656f8865-5ubuntu4) yakkety; urgency=medium
1225+
1226+ [ Dragan Stancevic ]
1227+ * multipath-tools: fix dm- device filtering
1228+ - Allow filtering of DEV_UEVENT dev_type
1229+ - Resolves LP: #1570093
1230+
1231+ -- Louis Bouchard <louis.bouchard@ubuntu.com> Mon, 18 Jul 2016 12:37:04 +0200
1232+
1233+multipath-tools (0.5.0+git1.656f8865-5ubuntu3) yakkety; urgency=medium
1234+
1235+ * Cherrypick from debian:
1236+ - Call clean target before rebuilding with systemd support
1237+ - Call systemd in debian/rules. Also adapt init service
1238+ aliasing.
1239+ - Should resolve LP: #1578638, LP: #1589526, LP: #1583563.
1240+
1241+ -- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 16 Jun 2016 11:53:33 +0300
1242+
1243+multipath-tools (0.5.0+git1.656f8865-5ubuntu2) xenial; urgency=medium
1244+
1245+ [ Mauricio Faria de Oliveira ]
1246+ * Remove partition device nodes of individual paths (for LVM on multipath)
1247+ on the new multipath-tools with udev property blacklisting (LP: #1540401)
1248+ - debian/multipath-tools.dm-mpath-lvm.udev: replace 'multipath -c' with
1249+ 'multipath -u' which can read udev properties at PROGRAM-rule time
1250+ (when udev properties are not yet written to the udev database).
1251+ - debian/initramfs/init-top: start multipathd before udev (required by
1252+ 'multipath -u' in the udev rules)
1253+ - debian/initramfs/local-top: remove snippet to start multipathd.
1254+ * Remove debian/initramfs/local-top (redundant with other initramfs scripts):
1255+ - init-top: start multipathd.
1256+ - init-top: load modules (dm-multipath and SCSI device handlers); move the
1257+ missing dm-emc there (now scsi-dh-emc; see BTS 567014).
1258+ - local-premount: settle on udev events; and the extra call due to
1259+ multipath discovery in udev rules is no longer required with multipathd
1260+ in initramfs.
1261+ - debian/rules: do not install local-top anymore.
1262+ * debian/initramfs/local-premount: run multipath with -B so not to assign
1263+ names nor change /etc/multipath/bindings during initramfs (LP: #1561103)
1264+ * debian/patches/enable-find-multipaths.patch: re-enable find_multipaths
1265+ by default -- see the removed 'add_find-multipaths.patch' (LP: #1463046)
1266+
1267+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Mon, 04 Apr 2016 22:36:48 -0400
1268+
1269+multipath-tools (0.5.0+git1.656f8865-5ubuntu1) xenial; urgency=medium
1270+
1271+ * Merge from Debian. (LP: #1551952) (LP: #1540407)
1272+ Remaining changes:
1273+ - debian/control:
1274+ - Bump debhelper dependency to install udev rules to
1275+ /lib/udev/rules.d
1276+ - Bump udev dependencies as well
1277+ - debian/control:
1278+ - multipath-tools: add sg3-utils-dev Depends
1279+ - multipath-udeb: add sg3-udeb Depends
1280+ - debian/initramfs/hooks: use 95 not 60 for multipath rules priority
1281+ - debian/rules: Move udev rules to priority 95, because rules that load modules should be >90.
1282+ - debian/multipath-tools.preinst: modprobe dm-multipath.
1283+ This will make sure that multipathd will be able to start.
1284+ - debian/initramfs/local-top: wait for udev to settle before running
1285+ 'multipath' in order to avoid race condition on device-mapper calls.
1286+ - debian/initramfs/local-top: remove '--timeout 10' which causes my
1287+ test system to not boot roughly 3 out of 4 times.
1288+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
1289+ - debian/initramfs/kpartx.hook
1290+ - debian/kpartx-boot.postinst
1291+ - debian/kpartx-boot.postrm
1292+ - debian/kpartx.install
1293+ - debian/control: Add kpartx-boot package for dmraid
1294+ - debian/rules: Install kpartx initramfs hook
1295+ - debian/patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
1296+ - debian/patches/handle_spaces_in_rev_attr.patch: support IBM IPR devices
1297+ and others which may have only spaces for the rev attribute.
1298+ - debian/patches/path_selector.patch: switch the default path selector
1299+ back to round-robin while service-time isn't available to the installer
1300+ multipath-modules.
1301+ - debian/patches/0015-shared-lock-for-udev.patch: (LP: #1431650)
1302+ - debian/initramfs/hooks: also copy wwids file on the installed system to
1303+ ensure all paths come up on boot. (LP: #1479929)
1304+ - Disable -fexceptions on multipath-udeb (LP: #1489379): the flag causes
1305+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
1306+ which is not available in the installer environment.
1307+ - debian/patches/disable-fexceptions-udeb.patch: conditionally disable
1308+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
1309+ - debian/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
1310+ - debian/patches/handle_spaces_in_rev_attr.patch: update patch to apply the
1311+ change to the right line (LP: #1492425)
1312+ - debian/initramfs/local-premount: wait for udev to settle before the call
1313+ to resolve_device() in local_mount_root(), so the by-uuid/ symlinks have
1314+ a chance to be updated by the multipath udev rules (LP: #1503286).
1315+ - debian/multipath-tools.postinst: handle upgrades from < 0.5.0 by migrating
1316+ from the old device names with device numbers to using letters for devices.
1317+ - debian/patches/mpath_name_migration.patch: ship a multipath_migrate binary
1318+ to make translation from pre-0.5.0 device naming to the new scheme.
1319+ - debian/initramfs/hooks: install multipathd and required directories.
1320+ - debian/initramfs/local-premount: reload all maps to make sure they're
1321+ indeed loaded and ready before we end premount.
1322+ - debian/initramfs/local-top: run multipathd rather than a one-off call to
1323+ multipath so that new paths can be correctly added as detected while we're
1324+ still in the initramfs.
1325+ - debian/initramfs/local-bottom: remember to stop multipathd.
1326+ - debian/rules: install debian/initramfs/local-bottom
1327+ - debian/patches/0053-readonly-bindings_multipathd_prod.patch: support -B to
1328+ allow multipathd to handle cases where the bindings file is read-only.
1329+ (LP: #1526984)
1330+ - debian/patches/git-kpartx-support-spaces-in-dev-names-b407050a.patch: deal
1331+ with spaces in device names in kpartx too (LP: #1432062)
1332+ - debian/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
1333+ where uploads might break kpartx's loopback file handling.
1334+ - debian/patches/kpartx_more_loopback_fixes.patch: fix loopback mounted
1335+ files some more: since we stat() the loopback device node, we can't rely
1336+ on S_ISREG() tests to handle this case, and should look at the device
1337+ itself instead. (LP: #1543430)
1338+ - Remove partition device nodes of individual paths (for LVM on multipath)
1339+ (LP: #1540401)
1340+ - debian/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
1341+ - debian/initramfs/hooks: copy the udev rule and partx to the initramfs.
1342+ - debian/initramfs/init-top: load the dm-multipath module for 'multipath -c'.
1343+ - debian/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
1344+ - debian/rules: don't ship 95-multipath.rules udev rules anymore; they are
1345+ not necessary with multipath-tools listening for udev events directly.
1346+ * Drop changes:
1347+ - debian/patches/series: Drop obsolete patches already included upstream
1348+ - debian/patches/ignore_devices_nodename_fail.patch
1349+ - debian/patches/skip_usb_devices.patch
1350+ - debian/patches/0014-kpartx-long-path.patch
1351+ - debian/patches/0052-readonly-bindings_multipathd.patch
1352+ - debian/patches/add_find-multipaths.patch
1353+ - debian/patches/dm-multipath-backlist-nvme-5c412e47.patch
1354+
1355+ -- Ryan Harper <ryan.harper@canonical.com> Wed, 09 Mar 2016 10:21:26 -0600
1356+
1357 multipath-tools (0.5.0+git1.656f8865-5) unstable; urgency=medium
1358
1359 * [e91ac62] Fix build to properly generate the arch-independent
1360@@ -445,6 +1720,190 @@ multipath-tools (0.5.0+git0.770e6d0d-1) experimental; urgency=medium
1361
1362 -- Ritesh Raj Sarraf <rrs@debian.org> Sun, 09 Aug 2015 14:42:48 +0530
1363
1364+multipath-tools (0.5.0-7ubuntu16) xenial; urgency=medium
1365+
1366+ * debian/patches/dm-multipath-backlist-nvme-5c412e47.patch: blacklist NVMe
1367+ from multipath, otherwise kpartx calls will hang. This is because mpath
1368+ works at the request level (which NVMe bypasses), so multipathing is not
1369+ supported on NVMe. (LP: #1551828)
1370+
1371+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Tue, 01 Mar 2016 11:55:13 -0500
1372+
1373+multipath-tools (0.5.0-7ubuntu15) xenial; urgency=medium
1374+
1375+ [ Mauricio Faria de Oliveira ]
1376+ * Remove partition device nodes of individual paths (for LVM on multipath)
1377+ (LP: #1540401)
1378+ - debian/multipath-tools.dm-mpath-lvm.udev: udev rule for that.
1379+ - debian/initramfs/hooks: copy the udev rule and partx to the initramfs.
1380+ - debian/initramfs/init-top: load the dm-multipath module for 'multipath -c'.
1381+ - debian/rules: install the udev rule (priority 56: after 55-scsi-sg3_id)
1382+ * debian/rules: don't ship 95-multipath.rules udev rules anymore; they are
1383+ not necessary with multipath-tools listening for udev events directly.
1384+
1385+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 11 Feb 2016 19:08:14 -0500
1386+
1387+multipath-tools (0.5.0-7ubuntu14) xenial; urgency=medium
1388+
1389+ * debian/patches/kpartx_more_loopback_fixes.patch: fix loopback mounted
1390+ files some more: since we stat() the loopback device node, we can't rely
1391+ on S_ISREG() tests to handle this case, and should look at the device
1392+ itself instead. (LP: #1543430)
1393+ * debian/tests/kpartx-file-loopback: check for left-over loop devices after
1394+ deleting a map.
1395+
1396+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Tue, 09 Feb 2016 15:24:27 -0500
1397+
1398+multipath-tools (0.5.0-7ubuntu13) xenial; urgency=medium
1399+
1400+ * Check that losetup -f is the same in the autopkgtest, after a cycle of
1401+ kpartx -a/-d. Looks like it's currently failing to cleanup loop0 in
1402+ addition to cleaning loop0p1. See http://pad.lv/1543430
1403+
1404+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 09 Feb 2016 06:51:15 +0000
1405+
1406+multipath-tools (0.5.0-7ubuntu12) xenial; urgency=medium
1407+
1408+ * Use synchronous kpartx calls in the adt tests, to hopefully avoid
1409+ kernel/userspace races which result in failure to remove mapped
1410+ partitions. Also invoke udevadm settle.
1411+
1412+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 02 Feb 2016 20:26:34 +0000
1413+
1414+multipath-tools (0.5.0-7ubuntu11) xenial; urgency=medium
1415+
1416+ * debian/patches/git-kpartx-support-spaces-in-dev-names-b407050a.patch: fixup
1417+ to correct deal with loopback-mounting files. (LP: #1540660)
1418+ * debian/patches/mpath_name_migration.patch: make sure multipath_migrate gets
1419+ cleaned up otherwise running debuild twice will fail.
1420+ * debian/tests/kpartx-file-loopback: add an autopkgtest to catch future cases
1421+ where uploads might break kpartx's loopback file handling.
1422+
1423+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 01 Feb 2016 23:27:08 -0500
1424+
1425+multipath-tools (0.5.0-7ubuntu10) xenial; urgency=medium
1426+
1427+ * debian/patches/0052-readonly-bindings_multipathd.patch,
1428+ debian/patches/0053-readonly-bindings_multipathd_prod.patch: support -B to
1429+ allow multipathd to handle cases where the bindings file is read-only.
1430+ (LP: #1526984)
1431+ * debian/initramfs/hooks: install multipathd and required directories.
1432+ * debian/initramfs/local-bottom, debian/rules: install local-bottom for
1433+ initramfs.
1434+ * debian/initramfs/local-premount: reload all maps to make sure they're
1435+ indeed loaded and ready before we end premount.
1436+ * debian/initramfs/local-top: run multipathd rather than a one-off call to
1437+ multipath so that new paths can be correctly added as detected while we're
1438+ still in the initramfs.
1439+ * debian/initramfs/local-bottom: remember to stop multipathd.
1440+ * debian/patches/git-kpartx-support-spaces-in-dev-names-b407050a.patch: deal
1441+ with spaces in device names in kpartx too (LP: #1432062)
1442+
1443+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Wed, 27 Jan 2016 10:42:51 -0500
1444+
1445+multipath-tools (0.5.0-7ubuntu9) xenial; urgency=medium
1446+
1447+ * d/p/lp1503305_libmultipath_info_on_1st_path_down_dbd131e.patch:
1448+ Correctly display the vendor/model info on path line in output if the
1449+ first path of a path group is failed. (LP: #1503305)
1450+
1451+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Tue, 03 Nov 2015 18:34:09 -0600
1452+
1453+multipath-tools (0.5.0-7ubuntu8) xenial; urgency=medium
1454+
1455+ * debian/multipath-tools.postinst: handle upgrades from < 0.5.0 by migrating
1456+ from the old device names with device numbers to using letters for devices.
1457+ * debian/patches/mpath_name_migration.patch: ship a multipath_migrate binary
1458+ to make translation from pre-0.5.0 device naming to the new scheme.
1459+
1460+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 22 Oct 2015 12:38:45 +0100
1461+
1462+multipath-tools (0.5.0-7ubuntu7) wily; urgency=medium
1463+
1464+ [ Mauricio Faria de Oliveira ]
1465+ * debian/initramfs/local-premount: wait for udev to settle before the call
1466+ to resolve_device() in local_mount_root(), so the by-uuid/ symlinks have
1467+ a chance to be updated by the multipath udev rules (LP: #1503286).
1468+
1469+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 19 Oct 2015 22:56:58 -0700
1470+
1471+multipath-tools (0.5.0-7ubuntu6) wily; urgency=medium
1472+
1473+ * debian/patches/handle_spaces_in_rev_attr.patch: update patch to apply the
1474+ change to the right line (LP: #1492425)
1475+
1476+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> Fri, 18 Sep 2015 10:16:50 -0400
1477+
1478+multipath-tools (0.5.0-7ubuntu5) wily; urgency=medium
1479+
1480+ * debian/patches/0014-kpartx-long-path.patch: have kpartx match loopback
1481+ files by device and inode rather than by path, as paths are not complete
1482+ enough to do specific matching for long paths (> 64 chars) or relative
1483+ paths. (LP: #1469143)
1484+
1485+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 17 Sep 2015 11:10:38 -0400
1486+
1487+multipath-tools (0.5.0-7ubuntu4) wily; urgency=medium
1488+
1489+ * Disable -fexceptions on multipath-udeb (LP: #1489379): the flag causes
1490+ libchecktur.so to link with libgcc_s.so.1 (even with -static-libgcc),
1491+ which is not available in the installer environment.
1492+ - debian/patches/disable-fexceptions-udeb.patch: conditionally disable
1493+ -fexceptions with CFLAGS_DISABLE_FEXCEPTIONS.
1494+ - debian/rules: set CFLAGS_DISABLE_FEXCEPTIONS to build multipath-udeb.
1495+
1496+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> Thu, 03 Sep 2015 07:29:59 -0400
1497+
1498+multipath-tools (0.5.0-7ubuntu3) wily; urgency=medium
1499+
1500+ * debian/initramfs/hooks: also copy wwids file on the installed system to
1501+ ensure all paths come up on boot. (LP: #1479929)
1502+
1503+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 30 Jul 2015 16:34:28 -0400
1504+
1505+multipath-tools (0.5.0-7ubuntu2) wily; urgency=medium
1506+
1507+ * debian/patches/add_find-multipaths.patch: properly handle local non-mpath
1508+ devices. (LP: #1463046)
1509+ * debian/patches/ignore_devices_nodename_fail.patch: ignore devices for which
1510+ sysfs_get_tgt_nodename fails.
1511+ * debian/patches/skip_usb_devices.patch: skip USB devices during discovery.
1512+ (LP: #1468897)
1513+
1514+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Fri, 10 Jul 2015 15:53:37 -0400
1515+
1516+multipath-tools (0.5.0-7ubuntu1) wily; urgency=medium
1517+
1518+ * Merge from debian unstable, remaining changes: (LP: #1455482)
1519+ - control:
1520+ * Bump debhelper dependency to install udev rules to
1521+ /lib/udev/rules.d, bump udev dependencies as well.
1522+ - initramfs/hooks: use 95 not 60 for multipath rules priority
1523+ - multipath-tools-boot.init: remove in favor of kpartx.udev rules (at top)
1524+ - multipath-tools.preinst: modprobe dm-multipath.
1525+ This will make sure that multipathd will be able to start.
1526+ - patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
1527+ - rules: Move udev rules to priority 95, because rules that load
1528+ modules should be >90.
1529+ - debian/initramfs/local-top: wait for udev to settle before running
1530+ 'multipath' in order to avoid race condition on device-mapper calls.
1531+ - debian/initramfs/local-top: remove '--timeout 10' which causes my
1532+ test system to not boot roughly 3 out of 4 times.
1533+ - Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
1534+ - Added debian/patches/0015-shared-lock-for-udev.patch (LP: #1431650)
1535+ * debian/patches/0015-libmultipath-property-whitelist-SCSI_IDENT.patch: add
1536+ SCSI_IDENT_* properties to blacklist exceptions, so that we can have QEMU
1537+ multipathed devices as well as others (IBM IPR) detected properly as
1538+ multipathed devices.
1539+ * debian/patches/handle_spaces_in_rev_attr.patch: support IBM IPR devices
1540+ and others which may have only spaces for the rev attribute.
1541+ * debian/patches/path_selector.patch: switch the default path selector
1542+ back to round-robin while service-time isn't available to the installer
1543+ multipath-modules.
1544+ * debian/control: add sg3-udeb to multipath-udeb Depends.
1545+
1546+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 06 Jul 2015 13:15:22 -0400
1547+
1548 multipath-tools (0.5.0-7) unstable; urgency=medium
1549
1550 * [15ecad9] Add dm-service-time path checker.
1551@@ -596,6 +2055,100 @@ multipath-tools (0.4.9+git0.4dfdaf2b-1) experimental; urgency=low
1552
1553 -- Ritesh Raj Sarraf <rrs@debian.org> Fri, 10 Feb 2012 18:25:29 +0530
1554
1555+multipath-tools (0.4.9-3ubuntu12) vivid; urgency=medium
1556+
1557+ [ Mauricio Faria de Oliveira ]
1558+ * Support disks with non 512-byte sectors (LP: #1441930)
1559+ - Added 0016-kpartx-non-512B-GPT.patch
1560+ - Added 0017-kpartx-non-512B-sectors.patch
1561+
1562+ [ Mathieu Trudel-Lapierre ]
1563+ * debian/patches/0018-ext-part-gt-512B-sectors.patch: fix extended partition
1564+ size for > 512B sectors. Patch cherry-picked from git commit 7202f225.
1565+
1566+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 13 Apr 2015 09:23:29 -0500
1567+
1568+multipath-tools (0.4.9-3ubuntu11) vivid; urgency=medium
1569+
1570+ [ Mauricio Faria de Oliveira ]
1571+ * Added debian/patches/0015-shared-lock-for-udev.patch (LP: #1431650)
1572+ * debian/initramfs/local-top: wait for udev to settle before running
1573+ 'multipath' in order to avoid race condition on device-mapper calls.
1574+
1575+ [ Mathieu Trudel-Lapierre ]
1576+ * Drop scsi_wait_scan from the multipath initramfs script: that module
1577+ no longer exists.
1578+
1579+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 23 Mar 2015 14:56:37 -0400
1580+
1581+multipath-tools (0.4.9-3ubuntu10) utopic; urgency=medium
1582+
1583+ * 1002-fix-linking-library.patch: Move $(LIBDEPS) to the end of the
1584+ link line to fix underlinking with ld --as-needed (LP: #1004243)
1585+
1586+ -- Adam Conrad <adconrad@ubuntu.com> Mon, 13 Oct 2014 07:47:07 -0600
1587+
1588+multipath-tools (0.4.9-3ubuntu9) utopic; urgency=medium
1589+
1590+ * Added 0011-libmultipath-update-waiter-handling.patch (LP: #1354114)
1591+ * Added 0012-Race-condition-when-calling-stop_waiter_thread.patch (LP: #1354114)
1592+ * Added 0013-multipath-clean-up-code-for-stopping-the-waiter-thre.patch (LP: #1354114)
1593+ * Added 0014-Fix-race-condition-in-stop_waiter_thread.patch (LP: #1354114)
1594+
1595+ -- Rafael David Tinoco <rafael.tinoco@canonical.com> Tue, 02 Sep 2014 15:43:38 -0700
1596+
1597+multipath-tools (0.4.9-3ubuntu8) utopic; urgency=medium
1598+
1599+ * Remove RUN+="socket:" statement in rules file since it is
1600+ no longer supported after version 178 (LP: #1240049)
1601+
1602+ -- Seyeong Kim <seyeong.kim@canonical.com> Fri, 18 Jul 2014 10:37:35 +0200
1603+
1604+multipath-tools (0.4.9-3ubuntu7) raring; urgency=low
1605+
1606+ * Add 0010-fix-extended-partitions.patch: Only expose the
1607+ first two sectors of the extended partition (LP: #1093918).
1608+
1609+ -- Phillip Susi <psusi@ubuntu.com> Fri, 04 Jan 2013 16:14:34 -0500
1610+
1611+multipath-tools (0.4.9-3ubuntu6) quantal; urgency=low
1612+
1613+ * Rebuild for new armel compiler default of ARMv5t.
1614+
1615+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 05 Oct 2012 14:00:37 +0100
1616+
1617+multipath-tools (0.4.9-3ubuntu5) precise; urgency=low
1618+
1619+ * Split kpartx initramfs bits into kpartx-boot for dmraid (LP: #941874)
1620+
1621+ -- Phillip Susi <psusi@ubuntu.com> Tue, 20 Mar 2012 15:26:22 -0400
1622+
1623+multipath-tools (0.4.9-3ubuntu4) precise; urgency=low
1624+
1625+ * Restore multipath-udeb dependency on multipath-modules (LP: #959749).
1626+
1627+ -- Colin Watson <cjwatson@ubuntu.com> Wed, 21 Mar 2012 14:34:01 +0000
1628+
1629+multipath-tools (0.4.9-3ubuntu3) precise; urgency=low
1630+
1631+ * Move kpartx from multipath-udeb to a new kpartx-udeb package
1632+ (LP: #922646).
1633+
1634+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 27 Jan 2012 23:04:23 +0000
1635+
1636+multipath-tools (0.4.9-3ubuntu2) precise; urgency=low
1637+
1638+ * Add 0009-fix-delim.patch: The 'p' delimiter was being added
1639+ when it shouldn't.
1640+
1641+ -- Phillip Susi <psusi@ubuntu.com> Sun, 08 Jan 2012 20:57:47 -0500
1642+
1643+multipath-tools (0.4.9-3ubuntu1) precise; urgency=low
1644+
1645+ * Merge with Debian (for remaining changes, see 0.4.9-2ubuntu1).
1646+
1647+ -- Matthias Klose <doko@ubuntu.com> Sun, 04 Dec 2011 21:32:48 +0100
1648+
1649 multipath-tools (0.4.9-3) unstable; urgency=low
1650
1651 * [dd85b8b] Add example to kpartx manpage. Committed upstream.
1652@@ -609,6 +2162,36 @@ multipath-tools (0.4.9-3) unstable; urgency=low
1653
1654 -- Ritesh Raj Sarraf <rrs@debian.org> Sat, 03 Dec 2011 19:34:59 +0530
1655
1656+multipath-tools (0.4.9-2ubuntu1) oneiric; urgency=low
1657+
1658+ * Merge from debian unstable, remaining changes:
1659+ - control:
1660+ * Bump debhelper dependency to install udev rules to
1661+ /lib/udev/rules.d, bump udev dependencies as well.
1662+ * multipath-udeb must not depend on multipath-modules,
1663+ because the Ubuntu kernel already includes the modules and no
1664+ package provides m-m.
1665+ - initramfs/hooks: use 95 not 60 for multipath rules priority
1666+ - multipath-tools-boot.init: remove in favor of kpartx.udev rules (at top)
1667+ - kpartx.udev:
1668+ * add rule to load dm-multipath
1669+ * use whole path when running /usr/lib/dmsetup_env
1670+ * call kpartx through dmsetup for mpath-* devices
1671+ * switch $name for $kernel for dmraid rule
1672+ - multipath-tools.preinst: modprobe dm-multipath.
1673+ This will make sure that multipathd will be able to start.
1674+ - patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
1675+ - rules: Move udev rules to priority 95, because rules that load
1676+ modules should be >90.
1677+ - Have initramfs local-top start with scsi_wait_scan, and make sure all
1678+ devices have been found before bothering to call udevadm settle.
1679+ - debian/initramfs/local-top: wait for scsi_wait_scan
1680+ * *.install: use /lib*/ instead of /lib/ to catch /lib64
1681+ * debian/initramfs/local-top: remove '--timeout 10' which causes my
1682+ test system to not boot roughly 3 out of 4 times.
1683+
1684+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Mon, 06 Jun 2011 12:31:23 -0500
1685+
1686 multipath-tools (0.4.9-2) unstable; urgency=low
1687
1688 * [2544655] wait harder for multipath init. Thanks to Serge Hallyn for
1689@@ -783,6 +2366,108 @@ multipath-tools (0.4.8-15) unstable; urgency=low
1690
1691 -- Guido Günther <agx@sigxcpu.org> Mon, 06 Apr 2009 19:36:25 +0200
1692
1693+multipath-tools (0.4.8-14ubuntu11) oneiric; urgency=low
1694+
1695+ * Fixes some return logic issues in the blacklist.c:_filter_path function
1696+ where using blacklist and blacklist_exceptions would cause multipathd to
1697+ improperly filter paths. (LP: #789229)
1698+ - The patch was created by Christophe Varoqui in 2007.
1699+ + http://www.redhat.com/archives/dm-devel/2007-November/msg00054.html
1700+ + 0013-libmultipath-filter_path-fix_blacklist_filter_exit.patch
1701+ - [serge-hallyn] swap in the whole upstream git commit and call it
1702+ 0013-blacklist_exception_issues.patch.
1703+
1704+ -- Craig Magina <craig.magina@canonical.com> Fri, 27 May 2011 11:47:19 -0400
1705+
1706+multipath-tools (0.4.8-14ubuntu10) natty; urgency=low
1707+
1708+ * pass '-p part' to kpartx in initramfs script, not '-p p', to
1709+ make sure /dev/mapper/ names are formed as expected. (LP: #712840)
1710+
1711+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Thu, 03 Feb 2011 18:40:36 -0600
1712+
1713+multipath-tools (0.4.8-14ubuntu9) natty; urgency=low
1714+
1715+ * Fix segv caused by race condition with free_waiter threads during
1716+ shutdown, using backport from upstream. (LP: #713237)
1717+
1718+ -- dann frazier <dann.frazier@canonical.com> Thu, 03 Feb 2011 16:37:10 -0700
1719+
1720+multipath-tools (0.4.8-14ubuntu8) natty; urgency=low
1721+
1722+ * Fix segv on shutdown when log buffer is empty, using patch cherry-picked
1723+ from upstream. (LP: #488285)
1724+
1725+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 01 Feb 2011 15:38:36 -0600
1726+
1727+multipath-tools (0.4.8-14ubuntu7) natty; urgency=low
1728+
1729+ * Add patch to fix the expected pathname from multipath uevents
1730+ (LP: #660597)
1731+
1732+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 04 Jan 2011 16:06:29 -0600
1733+
1734+multipath-tools (0.4.8-14ubuntu6) natty; urgency=low
1735+
1736+ * Fix in debian/kpartx.udev:
1737+ - modprobe -q instead of incorrect modprobe -Q (LP: #644481)
1738+
1739+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 04 Jan 2011 15:58:13 -0600
1740+
1741+multipath-tools (0.4.8-14ubuntu5) natty; urgency=low
1742+
1743+ * Make the initramfs local-top script wait until all devices
1744+ are mapped, to make sure no /dev/sd* get mounted before
1745+ multipath has a chance to take it. (LP: #686832)
1746+
1747+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Tue, 04 Jan 2011 15:55:48 -0600
1748+
1749+multipath-tools (0.4.8-14ubuntu4) lucid; urgency=low
1750+
1751+ * debian/control: Move libreadline5-dev build dependency to libreadline-dev.
1752+ (Already done in Debian).
1753+
1754+ -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 08 Mar 2010 14:50:04 +0100
1755+
1756+multipath-tools (0.4.8-14ubuntu3) lucid; urgency=low
1757+
1758+ * Support failback for Intel Modular Server (LP: #520309).
1759+
1760+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 12 Feb 2010 12:21:42 +0000
1761+
1762+multipath-tools (0.4.8-14ubuntu2) jaunty; urgency=low
1763+
1764+ * debian/kpartx.udev: Let dmsetup run kpartx, since $kernel doesn't map
1765+ right.
1766+ * debian/initramfs/hooks: Include /lib/udev/kpartx_id.
1767+
1768+ -- Timo Aaltonen <tjaalton@ubuntu.com> Tue, 10 Mar 2009 11:54:01 +0200
1769+
1770+multipath-tools (0.4.8-14ubuntu1) jaunty; urgency=low
1771+
1772+ * Merge from debian unstable, remaining changes:
1773+ - control:
1774+ + Bump debhelper dependency to install udev rules to
1775+ /lib/udev/rules.d, bump udev dependencies as well.
1776+ + multipath-udeb must not depend on multipath-modules,
1777+ because the Ubuntu kernel already includes the modules and no
1778+ package provides m-m.
1779+ - initramfs/hooks: Install rules from /lib/udev/rules.d.
1780+ - kpartx.udev, multipath-tools-boot.init:
1781+ Replace multipath-tools-boot init script with udev rules.
1782+ - multipath-tools.preinst: Fix preinst script to modprobe dm-multipath.
1783+ This will make sure that multipathd will be able to start.
1784+ - multipath-tools.prerm: Add prerm script to not fail when upgrading
1785+ from a broken version of multipathd.
1786+ - patches/1000--set-umask-in-multipathd.patch: Set umask in multipathd.
1787+ - rules: Move udev rules to priority 95, because rules that load
1788+ modules should be >90.
1789+ * Fix bugs (LP: #316851, #320156)
1790+ * multipath-tools.prerm/preinst: Remove checks for old ubuntu
1791+ versions, we don't support upgrading from them anymore.
1792+
1793+ -- Timo Aaltonen <tjaalton@ubuntu.com> Thu, 12 Feb 2009 15:07:42 +0200
1794+
1795 multipath-tools (0.4.8-14) unstable; urgency=low
1796
1797 * [6dad4a0] kpartx: use uint64_t to account slices start/size based on
1798@@ -845,6 +2530,64 @@ multipath-tools (0.4.8-11) unstable; urgency=low
1799
1800 -- Guido Guenther <agx@sigxcpu.org> Wed, 30 Jul 2008 17:59:03 -0400
1801
1802+multipath-tools (0.4.8-10ubuntu6) jaunty; urgency=low
1803+
1804+ * debian/multipath-tools.preinst: Use the same logic as in
1805+ hw-detect to determine if dm_multipath is already loaded.
1806+
1807+ -- Timo Aaltonen <tjaalton@ubuntu.com> Thu, 15 Jan 2009 23:50:18 +0200
1808+
1809+multipath-tools (0.4.8-10ubuntu5) jaunty; urgency=low
1810+
1811+ * debian/initramfs/hooks: Install from /lib/udev/rules.d
1812+
1813+ -- Scott James Remnant <scott@ubuntu.com> Tue, 13 Jan 2009 03:05:02 +0000
1814+
1815+multipath-tools (0.4.8-10ubuntu4) jaunty; urgency=low
1816+
1817+ * Bump debhelper dependency to install udev rules to /lib/udev/rules.d,
1818+ bump udev dependencies as well.
1819+
1820+ -- Scott James Remnant <scott@ubuntu.com> Mon, 12 Jan 2009 22:03:11 +0000
1821+
1822+multipath-tools (0.4.8-10ubuntu3) jaunty; urgency=low
1823+
1824+ * fix_udev_scsi_id_arguments.diff:
1825+ Update the arguments for scsi_id. (LP: #306723)
1826+ * fix_sysfs_layout.diff:
1827+ Patch from upstream to use the new sysfs layout. (LP: #307032)
1828+
1829+ -- Timo Aaltonen <tjaalton@ubuntu.com> Thu, 18 Dec 2008 15:32:20 +0200
1830+
1831+multipath-tools (0.4.8-10ubuntu2) jaunty; urgency=low
1832+
1833+ * debian/control: multipath-udeb must not depend on multipath-modules,
1834+ because the Ubuntu kernel already includes the modules and no
1835+ package provides m-m.
1836+ * debian/multipath-tools.preinst: Don't modprobe dm-multipath
1837+ unconditionally, since it'll break during installation (no
1838+ modprobe.dep) and when using a monolithic kernel. Instead check for
1839+ these conditions. (LP: #182009)
1840+
1841+ -- Timo Aaltonen <tepsipakki@ubuntu.com> Tue, 02 Dec 2008 12:28:08 +0200
1842+
1843+multipath-tools (0.4.8-10ubuntu1) intrepid; urgency=low
1844+
1845+ * Merge from debian unstable, remaining changes:
1846+ - Replace multipath-tools-boot init script with udev rules in
1847+ kpartx.rules.
1848+ - Move udev rules to priority 95, and drop call to dmsetup_env.
1849+ - Add devices as they appear
1850+ - Fix preinst script to modprobe dm-multipath. This will make sure
1851+ that multipathd will be able to start.
1852+ - Fix init script not to die on stop if multipathd is not running.
1853+ - Add prerm script to not fail when upgrading from a broken version of
1854+ multipathd.
1855+ - Set umask in multipathd.
1856+ - Handle udev rules priority change in preinst.
1857+
1858+ -- Soren Hansen <soren@ubuntu.com> Thu, 26 Jun 2008 08:55:33 +0200
1859+
1860 multipath-tools (0.4.8-10) unstable; urgency=low
1861
1862 * [183da2c] Add russion debconf translation (Closes: #486353) - thanks
1863@@ -878,6 +2621,32 @@ multipath-tools (0.4.8-8) unstable; urgency=low
1864
1865 -- Guido Guenther <agx@sigxcpu.org> Sun, 09 Mar 2008 18:55:38 +0100
1866
1867+multipath-tools (0.4.8-7ubuntu2) hardy; urgency=low
1868+
1869+ * Install udev rules in initramfs.
1870+ * Use temporary device name for creating partitions using kpartx.
1871+ * Big thanks to Dag Stenstad for testing and helping with debugging!
1872+
1873+ -- Soren Hansen <soren@ubuntu.com> Wed, 19 Mar 2008 19:07:22 +0100
1874+
1875+multipath-tools (0.4.8-7ubuntu1) hardy; urgency=low
1876+
1877+ * Merge from debian unstable, remaining changes:
1878+ - DebianMaintainerField.
1879+ - Replace multipath-tools-boot init script with udev rules in
1880+ kpartx.rules.
1881+ - Move udev rules to priority 95, and drop call to dmsetup_env.
1882+ - Add devices as they appear.
1883+ - Fix preinst script to modprobe dm-multipath. This will make sure
1884+ that multipathd will be able to start.
1885+ - Add prerm script to not fail when upgrading from a broken version of
1886+ multipathd.
1887+ - Set umask in multipathd.
1888+ - Handle udev rules priority change in preinst.
1889+ * Dropped our hsg80 changes. Kernel handles this correctly now.
1890+
1891+ -- Soren Hansen <soren@ubuntu.com> Mon, 28 Jan 2008 11:09:45 +0100
1892+
1893 multipath-tools (0.4.8-7) unstable; urgency=low
1894
1895 * add watch file
1896@@ -899,6 +2668,26 @@ multipath-tools (0.4.8-6) unstable; urgency=low
1897
1898 -- Guido Guenther <agx@sigxcpu.org> Sat, 01 Dec 2007 15:41:36 +0100
1899
1900+multipath-tools (0.4.8-5ubuntu1) hardy; urgency=low
1901+
1902+ * Merge from debian unstable, remaining changes:
1903+ - DebianMaintainerField.
1904+ - Suggest sg3-utils, Conflict with sg-utils.
1905+ - Replace multipath-tools-boot init script with udev rules in
1906+ kpartx.rules.
1907+ - Add /sbin/hsg80_start.
1908+ - Move udev rules to priority 95, and drop call to dmsetup_env.
1909+ - Add devices as they appear
1910+ - Fix preinst script to modprobe dm-multipath. This will make sure
1911+ that multipathd will be able to start.
1912+ - Fix init script not to die on stop if multipathd is not running.
1913+ - Add prerm script to not fail when upgrading from a broken version of
1914+ multipathd.
1915+ - Set umask in multipathd.
1916+ - Handle udev rules priority change in preinst.
1917+
1918+ -- Soren Hansen <soren@ubuntu.com> Thu, 13 Dec 2007 03:03:31 +0100
1919+
1920 multipath-tools (0.4.8-5) unstable; urgency=low
1921
1922 * apply kpartx-fix-udev-dmraid.diff to our shipped udev rules too
1923@@ -1013,6 +2802,34 @@ multipath-tools (0.4.7-3) experimental; urgency=low
1924
1925 -- Guido Guenther <agx@sigxcpu.org> Fri, 08 Jun 2007 11:51:00 +0200
1926
1927+multipath-tools (0.4.7-2ubuntu3) gutsy; urgency=low
1928+
1929+ * Fix preinst script to modprobe dm-multipath. This will make sure
1930+ that multipathd will be able to start.
1931+
1932+ * Fix init script not to die on stop if multipathd is not running.
1933+
1934+ * Add prerm script to not fail when upgrading from a broken version of
1935+ multipathd.
1936+
1937+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Fri, 10 Aug 2007 13:03:39 +0200
1938+
1939+multipath-tools (0.4.7-2ubuntu2) gutsy; urgency=low
1940+
1941+ * Fix udev rule to load dm-multipath.
1942+
1943+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 13 Jun 2007 11:56:52 +0200
1944+
1945+multipath-tools (0.4.7-2ubuntu1) gutsy; urgency=low
1946+
1947+ * Merge from debian unstable, remaining changes:
1948+ - Remove multipath-tools-boot init script in favour of udev rules.
1949+ - Update udev rules as described in 0.4.7-1.1ubuntu3.
1950+ - Add /sbin/hsg80_start as described in 0.4.7-1.1ubuntu3.
1951+ - debian/control Ubuntu maintainer foobar.
1952+
1953+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 16 May 2007 11:02:20 +0200
1954+
1955 multipath-tools (0.4.7-2) unstable; urgency=low
1956
1957 [ Bastian Blank ]
1958@@ -1030,6 +2847,42 @@ multipath-tools (0.4.7-2) unstable; urgency=low
1959
1960 -- Guido Guenther <agx@sigxcpu.org> Wed, 20 Dec 2006 17:40:59 +0100
1961
1962+multipath-tools (0.4.7-1.1ubuntu3) feisty; urgency=low
1963+
1964+ * Remove multipath-tools-boot init script.
1965+
1966+ * Wild changes and updates to udev rules:
1967+ - All the hsg80 MULTIBUS FAILOVER are now handled here.
1968+ - Fix rule to call kpartx also on "change" udev events.
1969+ - Invoke multipath -v 0 device to make sure we hot plug
1970+ all devices into multipath.
1971+
1972+ * Add /sbin/hsg80_start that wraps all the work to make an hsg80 in
1973+ MULTIBUS FAILOVER working properly.
1974+ This is automatically called by udev.
1975+
1976+ (Closes LP: #98518)
1977+
1978+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 04 Apr 2007 08:17:48 +0200
1979+
1980+multipath-tools (0.4.7-1.1ubuntu2) feisty; urgency=low
1981+
1982+ * Remove devmap_name from this package, and Depend on dmsetup instead.
1983+ Fixes file overwrite conflict with dmsetup. (LP 84894.)
1984+
1985+ -- Ian Jackson <iwj@ubuntu.com> Tue, 13 Feb 2007 16:16:46 +0000
1986+
1987+multipath-tools (0.4.7-1.1ubuntu1) feisty; urgency=low
1988+
1989+ * Merge from debian unstable, remaining changes:
1990+ - remove stop links from rc0 and rc6
1991+ - suggest sg3-utils, conflict sg-utils
1992+ - fix path to scsi_id
1993+ - ubuntu udev rules
1994+ - set umask
1995+
1996+ -- Scott James Remnant <scott@ubuntu.com> Tue, 28 Nov 2006 15:24:16 +0000
1997+
1998 multipath-tools (0.4.7-1.1) unstable; urgency=medium
1999
2000 * Added missing dependency on dmsetup. Closes: #381068.
2001@@ -1042,6 +2895,77 @@ multipath-tools (0.4.7-1.1) unstable; urgency=medium
2002
2003 -- John Goerzen <jgoerzen@complete.org> Wed, 9 Aug 2006 11:52:08 -0500
2004
2005+multipath-tools (0.4.7-1ubuntu8) edgy; urgency=low
2006+
2007+ * Remove stop script symlinks from rc0 and rc6.
2008+
2009+ -- Scott James Remnant <scott@ubuntu.com> Fri, 15 Sep 2006 17:30:19 +0100
2010+
2011+multipath-tools (0.4.7-1ubuntu7) dapper; urgency=low
2012+
2013+ * Fix typo in init script that was executing hsg80_init unconditionally.
2014+
2015+ * Suggests: sg3-utils and Conflicts: sg-utils (obsoleted).
2016+
2017+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Mon, 22 May 2006 09:56:07 +0200
2018+
2019+multipath-tools (0.4.7-1ubuntu6) dapper; urgency=low
2020+
2021+ * no changes upload to rebuild with new libdevmapper.
2022+
2023+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 10 May 2006 09:31:20 +0200
2024+
2025+multipath-tools (0.4.7-1ubuntu5) dapper; urgency=low
2026+
2027+ The "give Scott a crying biscuit" release.
2028+
2029+ * Apply patch from Dennis Kaarsemaker.
2030+ (Closes Ubuntu: #41318)
2031+
2032+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Wed, 26 Apr 2006 10:20:07 +0200
2033+
2034+multipath-tools (0.4.7-1ubuntu4) dapper; urgency=low
2035+
2036+ * Remove 2 extra lines from multipath.rules that were really not supposed
2037+ to be there.
2038+
2039+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Thu, 06 Apr 2006 17:43:10 +0200
2040+
2041+multipath-tools (0.4.7-1ubuntu3) dapper; urgency=low
2042+
2043+ * Add hsg80_init function to multipath-tools-boot init script.
2044+ The script takes care to perform a proper initialization of the disks
2045+ when the hsg80 is configured in multibus failover mode.
2046+
2047+ NOTE: multipathd is not able to understand properly what happens in this
2048+ multi-bugs situation and it will require manual kill and restart once
2049+ the disks have been readded to the system, otherwise failover is not
2050+ guaranteed and syslog will be flooded.
2051+
2052+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Thu, 06 Apr 2006 09:33:51 +0200
2053+
2054+multipath-tools (0.4.7-1ubuntu2) dapper; urgency=low
2055+
2056+ * Fix socket permissions.
2057+
2058+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Tue, 04 Apr 2006 18:20:20 +0200
2059+
2060+multipath-tools (0.4.7-1ubuntu1) dapper; urgency=low
2061+
2062+ * Fix path to scsi_id.
2063+
2064+ * Make install: target depends on build in debian/rules.
2065+
2066+ * Change NAME to multipathd in init scripts so that we can actually stop
2067+ multipathd.
2068+
2069+ * Swap multipath-tools-boot and multipath-tools init scripts order in
2070+ postinst and make multipath-tools-boot start.
2071+
2072+ * UVF exception granted by Colin Watson.
2073+
2074+ -- Fabio M. Di Nitto <fabbione@ubuntu.com> Tue, 04 Apr 2006 06:31:09 +0200
2075+
2076 multipath-tools (0.4.7-1) unstable; urgency=low
2077
2078 * New upstream version.
2079diff --git a/debian/control b/debian/control
2080index 0904d31..8d171a7 100644
2081--- a/debian/control
2082+++ b/debian/control
2083@@ -1,7 +1,8 @@
2084 Source: multipath-tools
2085 Section: admin
2086 Priority: optional
2087-Maintainer: Debian DM Multipath Team <team+linux-blocks@tracker.debian.org>
2088+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
2089+XSBC-Original-Maintainer: Debian DM Multipath Team <team+linux-blocks@tracker.debian.org>
2090 Uploaders: Guido Günther <agx@sigxcpu.org>, Ritesh Raj Sarraf <rrs@debian.org>, Chris Hofstaedtler <zeha@debian.org>
2091 Build-Depends: debhelper-compat (= 9), po-debconf, libdevmapper-dev, libreadline-dev, libaio-dev, libudev-dev, libsystemd-dev, systemd, liburcu-dev, pkg-config, libjson-c-dev
2092 Vcs-Git: https://salsa.debian.org/linux-blocks-team/multipath-tools.git
2093@@ -30,10 +31,18 @@ Description: create device mappings for partitions
2094 It is part of the Linux multipath-tools, but is useful on any
2095 device-mapper using system.
2096
2097+Package: kpartx-boot
2098+Architecture: all
2099+Depends: ${misc:Depends}, initramfs-tools,
2100+ kpartx (>= ${source:Version}), kpartx (<< ${source:Version}.1~)
2101+Description: Provides kpartx during boot
2102+ This package makes kpartx available during boot to activate partitions
2103+
2104 Package: multipath-tools-boot
2105 Architecture: all
2106 Depends: ${misc:Depends}, initramfs-tools | linux-initramfs-tool, lsb-base,
2107- multipath-tools (>= ${source:Version}), multipath-tools (<< ${source:Version}.1~)
2108+ multipath-tools (>= ${source:Version}), multipath-tools (<< ${source:Version}.1~),
2109+ kpartx-boot (= ${binary:Version})
2110 Description: Support booting from multipath devices
2111 This package contains the necessary support for booting from a multipath
2112 device:
2113diff --git a/debian/initramfs/hooks b/debian/initramfs/hooks
2114index 6a1dd88..126781b 100644
2115--- a/debian/initramfs/hooks
2116+++ b/debian/initramfs/hooks
2117@@ -30,9 +30,17 @@ add_bindings()
2118 fi
2119 }
2120
2121+add_wwids()
2122+{
2123+ if [ -r /etc/multipath/wwids ]; then
2124+ mkdir -p $DESTDIR/etc/multipath
2125+ cp /etc/multipath/wwids $DESTDIR/etc/multipath
2126+ fi
2127+}
2128+
2129 add_udev_rules()
2130 {
2131- for rules in 60-multipath.rules 60-kpartx.rules; do
2132+ for rules in 60-multipath.rules 56-dm-mpath.rules; do
2133 if [ -e /lib/udev/rules.d/$rules ]; then
2134 cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
2135 fi
2136@@ -48,12 +56,24 @@ mkdir -p $DESTDIR/lib/multipath/
2137 for x in /lib/multipath/*; do
2138 copy_exec $x /lib/multipath/
2139 done
2140+copy_exec /usr/bin/partx
2141 add_udev_rules
2142
2143+copy_exec /sbin/multipathd /sbin
2144+# multipathd requires libgcc_s.so.1 (not handled by copy_exec() as it's dlopen()'ed).
2145+# hack: find libgcc_s.so.1 via ldconfig cache (dpkg-architecture pulls lots of deps).
2146+for x in $(ldconfig --print-cache | grep -o '/lib/.*/libgcc_s\.so\.1'); do
2147+ copy_exec $x $(dirname $x)
2148+done
2149+
2150+# multipathd requires /run/multipathd.pid
2151+mkdir -p $DESTDIR/run
2152+
2153 [ -r /etc/multipath.conf ] && cp /etc/multipath.conf $DESTDIR/etc/
2154 add_bindings
2155+add_wwids
2156
2157-for x in dm-multipath dm-service-time dm-round-robin; do
2158+for x in dm-multipath dm-service-time dm-round-robin dm-queue-length; do
2159 manual_add_modules ${x}
2160 done
2161
2162diff --git a/debian/initramfs/init-top b/debian/initramfs/init-top
2163index 51637e9..883d7f9 100644
2164--- a/debian/initramfs/init-top
2165+++ b/debian/initramfs/init-top
2166@@ -1,6 +1,6 @@
2167 #!/bin/sh
2168 #
2169-# multipath hardware handler
2170+# multipath: load modules and daemon
2171
2172 PREREQ=" "
2173
2174@@ -26,7 +26,18 @@ verbose()
2175
2176 maybe_break pre-multipath
2177 VERBOSITY=0
2178-HW_HANDLERS=""
2179+HW_HANDLERS="scsi_dh_alua scsi_dh_rdac scsi_dh_emc"
2180+MP_MODULES="dm-multipath"
2181+
2182+verbose && log_begin_msg "Loading multipath modules"
2183+for module in ${MP_MODULES}; do
2184+ if modprobe --syslog "$module"; then
2185+ verbose && log_success_msg "loaded module ${module}."
2186+ else
2187+ log_failure_msg "failed to load module ${module}."
2188+ fi
2189+done
2190+verbose && log_end_msg
2191
2192 verbose && log_begin_msg "Loading multipath hardware handlers"
2193 for module in ${HW_HANDLERS}; do
2194@@ -38,6 +49,11 @@ for module in ${HW_HANDLERS}; do
2195 done
2196 verbose && log_end_msg
2197
2198+# Start multipathd
2199+verbose && log_begin_msg "Starting multipathd"
2200+/sbin/multipathd -B
2201+verbose && log_end_msg
2202+
2203 maybe_break post-multipath
2204
2205 exit 0
2206diff --git a/debian/initramfs/kpartx.hook b/debian/initramfs/kpartx.hook
2207new file mode 100644
2208index 0000000..404f977
2209--- /dev/null
2210+++ b/debian/initramfs/kpartx.hook
2211@@ -0,0 +1,22 @@
2212+#!/bin/sh
2213+
2214+PREREQS="udev"
2215+
2216+prereqs() { echo "$PREREQS"; }
2217+
2218+case $1 in
2219+prereqs)
2220+ prereqs
2221+ exit 0
2222+ ;;
2223+esac
2224+
2225+. /usr/share/initramfs-tools/hook-functions
2226+
2227+copy_exec /sbin/kpartx /sbin
2228+copy_exec /sbin/dmsetup /sbin
2229+copy_exec /lib/udev/dmsetup_env /lib/udev
2230+copy_exec /lib/udev/kpartx_id /lib/udev
2231+cp -p /lib/udev/rules.d/56-dm-parts.rules $DESTDIR/lib/udev/rules.d/
2232+cp -p /lib/udev/rules.d/68-del-part-nodes.rules $DESTDIR/lib/udev/rules.d/
2233+cp -p /lib/udev/rules.d/95-kpartx.rules $DESTDIR/lib/udev/rules.d/
2234diff --git a/debian/initramfs/local-top b/debian/initramfs/local-bottom
2235similarity index 56%
2236rename from debian/initramfs/local-top
2237rename to debian/initramfs/local-bottom
2238index 560ac2d..13026ff 100644
2239--- a/debian/initramfs/local-top
2240+++ b/debian/initramfs/local-bottom
2241@@ -1,8 +1,8 @@
2242 #!/bin/sh
2243 #
2244-# multipath discovery
2245+# multipathd shutdown
2246
2247-PREREQ="udev iscsi"
2248+PREREQ=""
2249
2250 prereqs() { echo "$PREREQ"; }
2251
2252@@ -25,34 +25,36 @@ verbose()
2253 }
2254
2255 maybe_break pre-multipath
2256-VERBOSITY=0
2257-MP_MODULES="scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-multipath"
2258
2259-if [ ! -e /sbin/multipath ]; then
2260+if [ ! -e /sbin/multipathd ]; then
2261 exit 0
2262 fi
2263
2264-verbose && log_begin_msg "Loading multipath modules"
2265-for module in ${MP_MODULES}; do
2266- if modprobe "$module"; then
2267- verbose && log_success_msg "loaded module ${module}."
2268- else
2269- log_failure_msg "failed to load module ${module}."
2270- fi
2271-done
2272-verbose && log_end_msg
2273+# Stop multipathd
2274+verbose && log_begin_msg "Stopping multipathd"
2275
2276-verbose && log_begin_msg "Discovering multipaths"
2277-/sbin/multipath -v $VERBOSITY
2278-verbose && log_end_msg
2279+pid_pidof="$(pidof multipathd)"
2280+pid_file="$(cat /run/multipathd.pid)"
2281
2282-if [ -x /sbin/kpartx -a -x /sbin/dmsetup ]; then
2283- /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p -part" >/dev/null
2284+if [ "${pid_pidof}" = "${pid_file}" ]; then
2285+ kill ${pid_pidof}
2286+ verbose && log_end_msg
2287+else
2288+ verbose && log_failure_msg "inconsistent PIDs (pidof: '${pid_pidof}', multipathd.pid: '${pid_file}')"
2289 fi
2290
2291-if [ -x /bin/udevadm ]; then
2292- /bin/udevadm settle --timeout=10
2293-fi
2294+# Wait for multipathd unix socket to close.
2295+# It might take a while for multipathd to handle the signal,
2296+# which might leave the unix socket open until the upcoming
2297+# systemd multipath.socket unit starts. Then it fails with
2298+# (Result: resources) like this (logs in journalctl):
2299+# "Failed to listen on sockets: Address already in use"
2300+seconds=10
2301+while [ $seconds -gt 0 ]; do
2302+ grep -q '@/org/kernel/linux/storage/multipathd' /proc/net/unix || break
2303+ seconds=$((seconds - 1))
2304+ sleep 1
2305+done
2306
2307 maybe_break post-multipath
2308
2309diff --git a/debian/initramfs/local-premount b/debian/initramfs/local-premount
2310new file mode 100644
2311index 0000000..050f97b
2312--- /dev/null
2313+++ b/debian/initramfs/local-premount
2314@@ -0,0 +1,30 @@
2315+#!/bin/sh
2316+
2317+set -e
2318+
2319+PREREQ=""
2320+
2321+prereqs()
2322+{
2323+ echo "${PREREQ}"
2324+}
2325+
2326+case "${1}" in
2327+ prereqs)
2328+ prereqs
2329+ exit 0
2330+ ;;
2331+esac
2332+
2333+. /scripts/functions
2334+
2335+if [ -x /sbin/multipath ]
2336+then
2337+ [ "$quiet" != "y" ] && log_begin_msg "Waiting for udev to settle (multipath)"
2338+ udevadm settle --timeout=121 || true
2339+ [ "$quiet" != "y" ] && log_end_msg
2340+fi
2341+
2342+multipath -r -v0 -B
2343+
2344+exit 0
2345diff --git a/debian/kpartx-boot.postinst b/debian/kpartx-boot.postinst
2346new file mode 100644
2347index 0000000..6257dc3
2348--- /dev/null
2349+++ b/debian/kpartx-boot.postinst
2350@@ -0,0 +1,34 @@
2351+#!/bin/sh
2352+# postinst script for kpartx-boot
2353+#
2354+# see: dh_installdeb(1)
2355+
2356+set -e
2357+
2358+# Source debconf library.
2359+. /usr/share/debconf/confmodule
2360+
2361+case "$1" in
2362+ configure)
2363+ if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
2364+ update-initramfs -u
2365+ fi
2366+ ;;
2367+
2368+ abort-upgrade|abort-remove|abort-deconfigure)
2369+ ;;
2370+
2371+ *)
2372+ echo "postinst called with unknown argument \`$1'" >&2
2373+ exit 1
2374+ ;;
2375+esac
2376+
2377+# dh_installdeb will replace this with shell code automatically
2378+# generated by other debhelper scripts.
2379+
2380+#DEBHELPER#
2381+
2382+exit 0
2383+
2384+
2385diff --git a/debian/kpartx-boot.postrm b/debian/kpartx-boot.postrm
2386new file mode 100644
2387index 0000000..daca462
2388--- /dev/null
2389+++ b/debian/kpartx-boot.postrm
2390@@ -0,0 +1,45 @@
2391+#!/bin/sh
2392+# postrm script for kpartx-boot
2393+#
2394+# see: dh_installdeb(1)
2395+
2396+set -e
2397+
2398+# summary of how this script can be called:
2399+# * <postrm> `remove'
2400+# * <postrm> `purge'
2401+# * <old-postrm> `upgrade' <new-version>
2402+# * <new-postrm> `failed-upgrade' <old-version>
2403+# * <new-postrm> `abort-install'
2404+# * <new-postrm> `abort-install' <old-version>
2405+# * <new-postrm> `abort-upgrade' <old-version>
2406+# * <disappearer's-postrm> `disappear' <overwriter>
2407+# <overwriter-version>
2408+# for details, see http://www.debian.org/doc/debian-policy/ or
2409+# the debian-policy package
2410+
2411+
2412+case "$1" in
2413+ remove)
2414+ if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
2415+ update-initramfs -u
2416+ fi
2417+ ;;
2418+
2419+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
2420+ ;;
2421+
2422+ *)
2423+ echo "postrm called with unknown argument \`$1'" >&2
2424+ exit 1
2425+ ;;
2426+esac
2427+
2428+# dh_installdeb will replace this with shell code automatically
2429+# generated by other debhelper scripts.
2430+
2431+#DEBHELPER#
2432+
2433+exit 0
2434+
2435+
2436diff --git a/debian/multipath-tools.dm-mpath-lvm.udev b/debian/multipath-tools.dm-mpath-lvm.udev
2437new file mode 100644
2438index 0000000..4698023
2439--- /dev/null
2440+++ b/debian/multipath-tools.dm-mpath-lvm.udev
2441@@ -0,0 +1,26 @@
2442+# An individual device may be part of a multipath device.
2443+# In such case, remove its partition device nodes so for
2444+# LVM to scan/lock/use only the multipath device.
2445+# - Check it on 'add' uevent.
2446+# - Check it on 'change' uevent (it may change).
2447+
2448+SUBSYSTEM!="block", \
2449+ GOTO="end_mpath"
2450+
2451+ACTION=="remove", \
2452+ GOTO="end_mpath"
2453+
2454+ENV{DEVTYPE}=="partition", \
2455+ IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH", \
2456+ GOTO="end_mpath"
2457+
2458+PROGRAM=="/sbin/multipath -u $devnode", \
2459+ ENV{DM_MULTIPATH_DEVICE_PATH}="1", \
2460+ ENV{ID_FS_TYPE}="mpath_member", \
2461+ RUN+="/usr/bin/partx -d --nr 1-1024 $devnode", \
2462+ GOTO="end_mpath"
2463+
2464+# Not part of a multipath device.
2465+ENV{DM_MULTIPATH_DEVICE_PATH}=""
2466+
2467+LABEL="end_mpath"
2468diff --git a/debian/multipath-tools.install b/debian/multipath-tools.install
2469index d857eba..6f27789 100644
2470--- a/debian/multipath-tools.install
2471+++ b/debian/multipath-tools.install
2472@@ -14,3 +14,4 @@
2473 /usr/include/libdmmp/libdmmp.h
2474 /lib/systemd/system/multipathd.service
2475 /lib/systemd/system/multipathd.socket
2476+/etc/multipath.conf
2477diff --git a/debian/multipath-udeb.install b/debian/multipath-udeb.install
2478index 672c3c8..e6794f5 100644
2479--- a/debian/multipath-udeb.install
2480+++ b/debian/multipath-udeb.install
2481@@ -2,3 +2,4 @@
2482 /lib/multipath/
2483 /lib/libmultipath.so.*
2484 /lib/libmpathcmd.so*
2485+/etc/multipath.conf
2486\ No newline at end of file
2487diff --git a/debian/multipath.conf b/debian/multipath.conf
2488new file mode 100644
2489index 0000000..d19039f
2490--- /dev/null
2491+++ b/debian/multipath.conf
2492@@ -0,0 +1,3 @@
2493+defaults {
2494+ user_friendly_names yes
2495+}
2496diff --git a/debian/patches/enable-find-multipaths.patch b/debian/patches/enable-find-multipaths.patch
2497new file mode 100644
2498index 0000000..7ae8a34
2499--- /dev/null
2500+++ b/debian/patches/enable-find-multipaths.patch
2501@@ -0,0 +1,17 @@
2502+From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
2503+Date: Thu, 25 Jan 2018 12:02:55 +0100
2504+Subject: enable find multipaths
2505+
2506+Forwarded: no
2507+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1463046
2508+--- a/libmultipath/defaults.h
2509++++ b/libmultipath/defaults.h
2510+@@ -22,7 +22,7 @@
2511+ #define DEFAULT_NO_PATH_RETRY NO_PATH_RETRY_UNDEF
2512+ #define DEFAULT_VERBOSITY 2
2513+ #define DEFAULT_REASSIGN_MAPS 0
2514+-#define DEFAULT_FIND_MULTIPATHS FIND_MULTIPATHS_STRICT
2515++#define DEFAULT_FIND_MULTIPATHS FIND_MULTIPATHS_ON
2516+ #define DEFAULT_FAST_IO_FAIL 5
2517+ #define DEFAULT_DEV_LOSS_TMO 600
2518+ #define DEFAULT_RETAIN_HWHANDLER RETAIN_HWHANDLER_ON
2519diff --git a/debian/patches/kpartx-Improve-finding-loopback-device-by-file.patch b/debian/patches/kpartx-Improve-finding-loopback-device-by-file.patch
2520new file mode 100644
2521index 0000000..61a76b3
2522--- /dev/null
2523+++ b/debian/patches/kpartx-Improve-finding-loopback-device-by-file.patch
2524@@ -0,0 +1,74 @@
2525+From f2bd34f273a02c0ed12e996ebe57211576e40fa6 Mon Sep 17 00:00:00 2001
2526+From: Julian Andres Klode <julian.klode@canonical.com>
2527+Date: Mon, 5 Feb 2018 09:44:36 +0100
2528+Subject: [PATCH] kpartx: Improve finding loopback device by file
2529+
2530+Commit 9bdfa3eb8e24b668e6c2bb882cddb0ccfe23ed5b changed kpartx
2531+to lookup files by absolute path, using realpath(). This introduced
2532+a regression when part of the filename where symbolic links. While
2533+the kernel stores the absolute path to the backing file, it does not
2534+resolve symbolic links, and hence kpartx would fail to find the loopback
2535+device because it resolves symbolic links when deleting.
2536+
2537+This introduces two workarounds in find_loop_by_file()
2538+
2539+(1) We match against the specified file name as is as well
2540+(2) We canonicalize the loopinfo.lo_name and match the canonicalized filename
2541+ against that.
2542+
2543+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1747044
2544+Signed-off-by: Julian Andres Klode <julian.klode@canonical.com>
2545+Forwarded: https://www.redhat.com/archives/dm-devel/2018-February/msg00019.html
2546+---
2547+ kpartx/kpartx.c | 8 +-------
2548+ kpartx/lopart.c | 12 +++++++++++-
2549+ 2 files changed, 12 insertions(+), 8 deletions(-)
2550+
2551+Index: multipath-tools-0.8.5-1ubuntu1/kpartx/kpartx.c
2552+===================================================================
2553+--- multipath-tools-0.8.5-1ubuntu1.orig/kpartx/kpartx.c
2554++++ multipath-tools-0.8.5-1ubuntu1/kpartx/kpartx.c
2555+@@ -350,10 +350,10 @@
2556+ char rpath[PATH_MAX];
2557+ if (realpath(device, rpath) == NULL) {
2558+ fprintf(stderr, "Error: %s: %s\n", device,
2559+- strerror(errno));
2560++ strerror(errno));
2561+ exit (1);
2562+ }
2563+- loopdev = find_loop_by_file(rpath);
2564++ loopdev = find_loop_by_file(device);
2565+
2566+ if (!loopdev && what == DELETE)
2567+ exit (0);
2568+Index: multipath-tools-0.8.5-1ubuntu1/kpartx/lopart.c
2569+===================================================================
2570+--- multipath-tools-0.8.5-1ubuntu1.orig/kpartx/lopart.c
2571++++ multipath-tools-0.8.5-1ubuntu1/kpartx/lopart.c
2572+@@ -69,6 +69,14 @@
2573+ struct loop_info loopinfo;
2574+ const char VIRT_BLOCK[] = "/sys/devices/virtual/block";
2575+ char path[PATH_MAX];
2576++ char rfilename[PATH_MAX];
2577++ char rloopfilename[PATH_MAX];
2578++ if (realpath(filename, rfilename) == NULL) {
2579++ fprintf(stderr, "Error: %s: %s\n", filename,
2580++ strerror(errno));
2581++ exit (1);
2582++ }
2583++
2584+ char bf_path[PATH_MAX];
2585+ char backing_file[PATH_MAX];
2586+
2587+@@ -120,7 +128,10 @@
2588+
2589+ close (fd);
2590+
2591+- if (0 == strcmp(filename, loopinfo.lo_name)) {
2592++ if (0 == strcmp(filename, loopinfo.lo_name) ||
2593++ 0 == strcmp(rfilename, loopinfo.lo_name) ||
2594++ (realpath(loopinfo.lo_name, rloopfilename) &&
2595++ 0 == strcmp(rfilename, rloopfilename))) {
2596+ found = realpath(path, NULL);
2597+ break;
2598+ }
2599diff --git a/debian/patches/kpartx_more_loopback_fixes.patch b/debian/patches/kpartx_more_loopback_fixes.patch
2600new file mode 100644
2601index 0000000..d7d1920
2602--- /dev/null
2603+++ b/debian/patches/kpartx_more_loopback_fixes.patch
2604@@ -0,0 +1,51 @@
2605+From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2606+Subject: Fix kpartx some more to correctly remove loopback devices on delete.
2607+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1543430
2608+
2609+Loop devices get created when using kpartx with an image file, but should be
2610+removed afterwards when using kpartx -d. Unfortunately, the devmapper maps
2611+did get removed but not the losetup nodes behind it, which were still bound
2612+to the image file. This is because we re-stat the loop device once we've
2613+figured which one to use, since otherwise we wouldn't have major and minor
2614+numbers for a loopback file; yet we need those to create the devmapper maps
2615+reliably.
2616+
2617+Instead of checking if we're dealing with a regular type file (since after
2618+stat() we'd not have the S_ISREG check succeed since we stat()'ed a device),
2619+use the loopdev variable. It's equivalent to device but only set if we've been
2620+called to work on an image.
2621+
2622+*update*
2623+This got partially upstream with the following patch - maybe we can drop it now?:
2624+commit ed4c3119cc1d6bc6656cf84d1e9c1ab184d87814
2625+Author: Christian Kastner <ckk@kvr.at>
2626+Date: Wed Jul 13 19:23:02 2016 +0200
2627+ kpartx: Fix check whether to detach loop device
2628+
2629+*update*
2630+Upstream applied the remaining leftover (which is what we have here) in the latest release:
2631+https://github.com/opensvc/multipath-tools/commit/5107ea4d137beeb3361b1599ccbfbbd3894c0a73
2632+From 5107ea4d137beeb3361b1599ccbfbbd3894c0a73 Mon Sep 17 00:00:00 2001
2633+From: Benjamin Marzinski <bmarzins@redhat.com>
2634+Date: Wed, 24 Feb 2021 00:05:13 -0600
2635+Subject: [PATCH] kpartx: free loop device after listing partitions
2636+
2637+Therefore, this can be dropped in the next merge.
2638+
2639+---
2640+ kpartx/kpartx.c | 4 ++--
2641+ 1 file changed, 2 insertions(+), 2 deletions(-)
2642+
2643+Index: multipath-tools-0.8.5-1ubuntu1/kpartx/kpartx.c
2644+===================================================================
2645+--- multipath-tools-0.8.5-1ubuntu1.orig/kpartx/kpartx.c
2646++++ multipath-tools-0.8.5-1ubuntu1/kpartx/kpartx.c
2647+@@ -668,7 +668,7 @@
2648+ if (n > 0)
2649+ break;
2650+ }
2651+- if (what == LIST && loopcreated && S_ISREG (buf.st_mode)) {
2652++ if (what == LIST && loopcreated && loopdev) {
2653+ if (fd != -1)
2654+ close(fd);
2655+ if (del_loop(device)) {
2656diff --git a/debian/patches/no-start-in-containers.patch b/debian/patches/no-start-in-containers.patch
2657new file mode 100644
2658index 0000000..5573e98
2659--- /dev/null
2660+++ b/debian/patches/no-start-in-containers.patch
2661@@ -0,0 +1,17 @@
2662+Description: Do not attempt to start multipath-tools in containers,
2663+ should switch for on-demand udev/socket based activation in the
2664+ future.
2665+Author: Dimitri John Ledkov <xnox@ubuntu.com>
2666+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1823093
2667+Forwarded: https://listman.redhat.com/archives/dm-devel/2021-June/msg00108.html
2668+
2669+--- multipath-tools-0.7.4.orig/multipathd/multipathd.service
2670++++ multipath-tools-0.7.4/multipathd/multipathd.service
2671+@@ -8,6 +8,7 @@ DefaultDependencies=no
2672+ Conflicts=shutdown.target
2673+ ConditionKernelCommandLine=!nompath
2674+ ConditionKernelCommandLine=!multipath=off
2675++ConditionVirtualization=!container
2676+
2677+ [Service]
2678+ Type=notify
2679diff --git a/debian/patches/series b/debian/patches/series
2680index 435ea73..8604b49 100644
2681--- a/debian/patches/series
2682+++ b/debian/patches/series
2683@@ -1,3 +1,7 @@
2684+kpartx_more_loopback_fixes.patch
2685+enable-find-multipaths.patch
2686+kpartx-Improve-finding-loopback-device-by-file.patch
2687+no-start-in-containers.patch
2688 0002-Update-build-flags.patch
2689 0003-kpartx-udev-hack-in-dmsetup_env.patch
2690 0004-systemd-alias-multipath-service.patch
2691diff --git a/debian/rules b/debian/rules
2692index 92141f0..d3f3235 100755
2693--- a/debian/rules
2694+++ b/debian/rules
2695@@ -65,8 +65,11 @@ install-indep:
2696
2697 # initramfs stuff:
2698 install -D -m 755 debian/initramfs/hooks $(INITRAMFS)/hooks/multipath
2699- install -D -m 755 debian/initramfs/local-top \
2700- $(INITRAMFS)/scripts/local-top/multipath
2701+ install -D -m 755 debian/initramfs/kpartx.hook $(CURDIR)/debian/kpartx-boot/usr/share/initramfs-tools/hooks/kpartx
2702+ install -D -m 755 debian/initramfs/local-premount \
2703+ $(INITRAMFS)/scripts/local-premount/multipath
2704+ install -D -m 755 debian/initramfs/local-bottom \
2705+ $(INITRAMFS)/scripts/local-bottom/multipath
2706 install -D -m 755 debian/initramfs/init-top \
2707 $(INITRAMFS)/scripts/init-top/multipath
2708
2709@@ -88,6 +91,8 @@ install: install-indep
2710 mkdir -p $(CURDIR)/debian/tmp/sbin
2711 $(MAKE) -j1 install DESTDIR=$(CURDIR)/debian/tmp LIB=/lib SYSTEMDPATH=/lib USE_SYSTEMD=1
2712 install -m 755 debian/dmsetup_env $(CURDIR)/debian/tmp/lib/udev/
2713+ mkdir -p $(CURDIR)/debian/tmp/etc
2714+ cp debian/multipath.conf $(CURDIR)/debian/tmp/etc
2715 dh_install -X.rules --fail-missing -Nmultipath-udeb --sourcedir=$(CURDIR)/debian/tmp
2716 dh_install -Xkpartx_id -X.rules -X.service -X.socket --fail-missing -pmultipath-udeb --sourcedir=$(CURDIR)/debian/tmp-multipath-udeb
2717
2718@@ -119,7 +124,7 @@ binary-arch: build install
2719 dh_lintian -a
2720 dh_systemd_enable -pmultipath-tools multipathd.service
2721 dh_installinit -pmultipath-tools
2722- dh_installudev -pkpartx
2723+ dh_installudev -pkpartx --priority=95
2724 dh_installudev -pkpartx --name=dm-parts --priority=56
2725 dh_installudev -pkpartx --name=del-part-nodes --priority=68
2726 dh_installudev -pmultipath-tools --name=multipath
2727diff --git a/debian/tests/control b/debian/tests/control
2728index 2da772e..0243819 100644
2729--- a/debian/tests/control
2730+++ b/debian/tests/control
2731@@ -1,7 +1,7 @@
2732
2733 Tests: kpartx-file-loopback
2734 Depends: kpartx, qemu-utils, gdisk
2735-Restrictions: needs-root, isolation-machine
2736+Restrictions: needs-root, isolation-machine, allow-stderr
2737
2738 Tests: tgtbasedmpaths
2739 Depends: multipath-tools, tgt, open-iscsi, fio, lsscsi
2740diff --git a/debian/tests/tgtbasedmpaths b/debian/tests/tgtbasedmpaths
2741index 28c9754..099ee75 100755
2742--- a/debian/tests/tgtbasedmpaths
2743+++ b/debian/tests/tgtbasedmpaths
2744@@ -15,8 +15,8 @@ localhost="127.0.0.1"
2745 portal="${localhost}:3260"
2746 maxpaths=4
2747 backfn="backingfile"
2748-expectwwid="360000000000000000e00000000010001"
2749-testdisk="/dev/disk/by-id/scsi-${expectwwid}"
2750+expectwwid="60000000000000000e00000000010001"
2751+testdisk="/dev/disk/by-id/wwn-0x${expectwwid}"
2752 bglog="$AUTOPKGTEST_ARTIFACTS/test-background.log"
2753 fioprep="$AUTOPKGTEST_ARTIFACTS/path-change-prep.fio"
2754 fiovrfy="$AUTOPKGTEST_ARTIFACTS/path-change-check.fio"
2755@@ -48,6 +48,7 @@ do
2756 done
2757
2758 udevadm settle
2759+sleep 5 # sleep a bit to allow device to be created....
2760
2761 # status summary
2762 echo "Status after initial setup"

Subscribers

People subscribed via source and target branches