diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-02-09 14:02:16 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-02-13 16:01:37 +0100 |
commit | c9b6ee639d118ef16cb5d6d709b21d9bdd0d03f2 (patch) | |
tree | 6b13020a2b4838aab4af02b65925a5796e185fee | |
parent | Revert "mdadm: remove container_enough logic" (diff) | |
download | mdadm-c9b6ee639d118ef16cb5d6d709b21d9bdd0d03f2.tar.xz mdadm-c9b6ee639d118ef16cb5d6d709b21d9bdd0d03f2.zip |
mdadm: fix update=resync regression
mdadm --assemble --update=resync started failing with the error
"mdadm: --update=resync not understood for 1.x metadata".
It is a regression. Add omitted branch to fix error.
Resubmitted, original author is not responding.
https://lore.kernel.org/linux-raid/ZZqJlCToUS3Qrl4J@bianca.dpss.psy.unipd.it/
Fixes: 7e8daba8b793 ("super1: refactor the code for enum")
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
-rw-r--r-- | super1.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1348,6 +1348,10 @@ static int update_super1(struct supertype *st, struct mdinfo *info, __cpu_to_le16(info->disk.raid_disk); break; } + case UOPT_RESYNC: + /* make sure resync happens */ + sb->resync_offset = 0; + break; case UOPT_UUID: copy_uuid(sb->set_uuid, info->uuid, super1.swapuuid); |