Changeset ca212a51 in mainline for uspace/srv/bd/hr/raid0.c


Ignore:
Timestamp:
2025-07-11T20:13:38Z (9 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
a0abd46
Parents:
b127da2f
Message:

hr: RAID 0, 5: init strip size to closest (down) pow of 2

File:
1 edited

Legend:

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

    rb127da2f rca212a51  
    123123        vol->data_blkno -= vol->meta_ops->get_size() * vol->extent_no;
    124124
    125         vol->strip_size = HR_STRIP_SIZE;
     125        vol->strip_size = hr_closest_pow2(HR_STRIP_SIZE / vol->extent_no);
    126126
    127127        return EOK;
Note: See TracChangeset for help on using the changeset viewer.