diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2024-03-13 18:33:26 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-16 08:07:01 +0100 |
| commit | df4a6bcb156677165318d397b0bb8fbd24408231 (patch) | |
| tree | 8b15f0d53f4665a26d0d1f2298c1478c26b45ad2 /meta/recipes-extended/mdadm/files/0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch | |
| parent | 352e2a327b6647afd0fee2399c33953fc99ba4e9 (diff) | |
| download | poky-df4a6bcb156677165318d397b0bb8fbd24408231.tar.gz | |
mdadm: update 4.2 -> 4.3
Drop a gigantic set of patches: either backports or
test fixups (which are no longer testable after exclusion of
mdadm from ptests).
Add musl fixes:
0001-util.c-add-limits.h-include-for-NAME_MAX-definition.patch
0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch
(From OE-Core rev: 952a2a94901ea6e9416e517e9f6c97dbc7e3bb2d)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/files/0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch')
| -rw-r--r-- | meta/recipes-extended/mdadm/files/0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch b/meta/recipes-extended/mdadm/files/0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch deleted file mode 100644 index c621c082e8..0000000000 --- a/meta/recipes-extended/mdadm/files/0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | From 39b381252c32275079344d30de18b76fda4bba26 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Logan Gunthorpe <logang@deltatee.com> | ||
| 3 | Date: Wed, 27 Jul 2022 15:52:45 -0600 | ||
| 4 | Subject: [PATCH] tests/00readonly: Run udevadm settle before setting ro | ||
| 5 | |||
| 6 | In some recent kernel versions, 00readonly fails with: | ||
| 7 | |||
| 8 | mdadm: failed to set readonly for /dev/md0: Device or resource busy | ||
| 9 | ERROR: array is not read-only! | ||
| 10 | |||
| 11 | This was traced down to a race condition with udev holding a reference | ||
| 12 | to the block device at the same time as trying to set it read only. | ||
| 13 | |||
| 14 | To fix this, call udevadm settle before setting the array read only. | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=39b381252c32275079344d30de18b76fda4bba26] | ||
| 17 | |||
| 18 | Signed-off-by: Logan Gunthorpe <logang@deltatee.com> | ||
| 19 | Signed-off-by: Jes Sorensen <jsorensen@fb.com> | ||
| 20 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 21 | --- | ||
| 22 | tests/00readonly | 1 + | ||
| 23 | 1 file changed, 1 insertion(+) | ||
| 24 | |||
| 25 | diff --git a/tests/00readonly b/tests/00readonly | ||
| 26 | index 39202487..afe243b3 100644 | ||
| 27 | --- a/tests/00readonly | ||
| 28 | +++ b/tests/00readonly | ||
| 29 | @@ -12,6 +12,7 @@ do | ||
| 30 | $dev1 $dev2 $dev3 $dev4 --assume-clean | ||
| 31 | check nosync | ||
| 32 | check $level | ||
| 33 | + udevadm settle | ||
| 34 | mdadm -ro $md0 | ||
| 35 | check readonly | ||
| 36 | state=$(cat /sys/block/md0/md/array_state) | ||
| 37 | -- | ||
| 38 | 2.25.1 | ||
| 39 | |||
