Merging upstream version 4.2+20231026.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
bb079da599
commit
a701b01644
30 changed files with 956 additions and 423 deletions
|
@ -1975,7 +1975,6 @@ static void getinfo_super_ddf(struct supertype *st, struct mdinfo *info, char *m
|
|||
info->array.ctime = DECADE + __be32_to_cpu(*cptr);
|
||||
|
||||
info->array.chunk_size = 0;
|
||||
info->container_enough = 1;
|
||||
|
||||
info->disk.major = 0;
|
||||
info->disk.minor = 0;
|
||||
|
@ -1984,12 +1983,14 @@ static void getinfo_super_ddf(struct supertype *st, struct mdinfo *info, char *m
|
|||
info->disk.number = be32_to_cpu(ddf->dlist->disk.refnum);
|
||||
info->disk.raid_disk = find_phys(ddf, ddf->dlist->disk.refnum);
|
||||
|
||||
if (info->disk.raid_disk < 0)
|
||||
return;
|
||||
|
||||
info->data_offset = be64_to_cpu(ddf->phys->
|
||||
entries[info->disk.raid_disk].
|
||||
config_size);
|
||||
info->component_size = ddf->dlist->size - info->data_offset;
|
||||
if (info->disk.raid_disk >= 0)
|
||||
pde = ddf->phys->entries + info->disk.raid_disk;
|
||||
pde = ddf->phys->entries + info->disk.raid_disk;
|
||||
if (pde &&
|
||||
!(be16_to_cpu(pde->state) & DDF_Failed) &&
|
||||
!(be16_to_cpu(pde->state) & DDF_Missing))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue