Changeset b22ea202 in mainline


Ignore:
Timestamp:
2025-06-17T13:32:31Z (4 days ago)
Author:
Miroslav Cimerman <mc@…>
Children:
9d1685b
Parents:
73425d4
Message:

hr: rai1.c: make rebuild_blk evaluation more conservative

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/raid1.c

    r73425d4 rb22ea202  
    304304                if (vol->extents[i].state == HR_EXT_ONLINE ||
    305305                    (vol->extents[i].state == HR_EXT_REBUILD &&
    306                     ba < rebuild_blk)) {
     306                    rebuild_blk >= ba)) {
    307307                        count++;
    308308                }
     
    420420                        if (vol->extents[i].state != HR_EXT_ONLINE &&
    421421                            (vol->extents[i].state != HR_EXT_REBUILD ||
    422                             ba >= rebuild_blk)) {
     422                            ba > rebuild_blk)) {
    423423                                /*
    424424                                 * When the extent is being rebuilt,
Note: See TracChangeset for help on using the changeset viewer.