]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/Grow: Update new level when starting reshape
authorXiao Ni <xni@redhat.com>
Wed, 11 Sep 2024 08:54:23 +0000 (16:54 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 23 Sep 2024 08:47:55 +0000 (10:47 +0200)
commit21212f6ad7c634f5f114f342ca84fe8c42a13f40
tree029c555d05bd700ae5c55df195cdff15d09e34ae
parent983e9226fb02a91692c2c55a19b5cd06d8ddd005
mdadm/Grow: Update new level when starting reshape

Reshape needs to specify a backup file when it can't update data offset
of member disks. For this situation, first, it starts reshape and then
it kicks off mdadm-grow-continue service which does backup job and
monitors the reshape process. The service is a new process, so it needs
to read superblock from member disks to get information.

But in the first step, it doesn't update new level in superblock. So
it can't change level after reshape finishes, because the new level is
not right. So records the new level in the first step.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Grow.c