Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
mdadm.14070
0185-imsm-Write-empty-PPL-header-if-assembling-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0185-imsm-Write-empty-PPL-header-if-assembling-regular-cl.patch of Package mdadm.14070
From 50b9c10da0e7c153744b548680147dc8cc7c4c72 Mon Sep 17 00:00:00 2001 From: Pawel Baldysiak <pawel.baldysiak@intel.com> Date: Thu, 28 Sep 2017 14:41:15 +0200 Subject: [PATCH] imsm: Write empty PPL header if assembling regular clean array. Git-commit: 50b9c10da0e7c153744b548680147dc8cc7c4c72 Patch-mainline: mdadm-4.0+ References: bsc#1069165, bsc#1069167, bsc#1068030 If array was initially assembled with kernel without PPL support - initial header was never written to the drive. If initial resync was completed and system is rebooted to kernel with PPL support - mdadm prevents from assembling normal clean array due to lack of valid PPL. Write empty header when assemble normal clean array, so the its assamble is no longer blocked. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com> Signed-off-by: Coly Li <colyli@suse.de> --- super-intel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/super-intel.c b/super-intel.c index 7b2327b..501d0c3 100644 --- a/super-intel.c +++ b/super-intel.c @@ -6225,7 +6225,9 @@ out: } if (ret == 1) { - if (map->map_state == IMSM_T_STATE_UNINITIALIZED) + if (map->map_state == IMSM_T_STATE_UNINITIALIZED || + (map->map_state == IMSM_T_STATE_NORMAL && + !(dev->vol.dirty & RAIDVOL_DIRTY))) ret = st->ss->write_init_ppl(st, info, d->fd); else info->mismatch_cnt++; -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor