]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: fix usage of ->used_pdes
authorNeilBrown <neilb@suse.de>
Wed, 9 Apr 2014 06:45:27 +0000 (16:45 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 21 May 2014 01:54:47 +0000 (11:54 +1000)
commit217dead48fdeb31bc351efe1cec0ab7a53f288e1
treefa4fcf245282942812ac7f8b90e003e67c216bff
parent41bcbc14c432ea80d99ae9148f180c588be08285
DDF: fix usage of ->used_pdes

The "used_pdes" value counts the number of physdisk entries that
are in used.
It may not be the last one in use as there may be unused slots in
the middle.

So when were are iterating over phys disks, we need to use max_pdes
and skip unused entries.

Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c