Thread (3 messages) 3 messages, 3 authors, 2017-05-26

Re: [Patch v5] super1: fix sb->max_dev when adding a new disk in linear array

From: Jes Sorensen <jes.sorensen@gmail.com>
Date: 2017-05-26 18:35:51

On 05/25/2017 05:28 AM, Lidong Zhong wrote:
The value of sb->max_dev will always be increased by 1 when adding
a new disk in linear array. It causes an inconsistence between each
disk in the array and the "Array State" value of "mdadm --examine DISK"
is wrong. For example, when adding the first new disk into linear array
it will be:

Array State : RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
('A' == active, '.' == missing, 'R' == replacing)

Adding the second disk into linear array it will be

Array State : .AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
('A' == active, '.' == missing, 'R' == replacing)

Signed-off-by: Lidong Zhong <redacted>
---
  super1.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)
Applied!

Thanks,
Jes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help