Changeset 4a2a6b8b in mainline for uspace/srv/bd/hr/superblock.c


Ignore:
Timestamp:
2024-09-06T22:09:33Z (16 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
57c61b0
Parents:
a19d7fc4
Message:

hr: add initial RAID 4 0 (non-rotating parity on disk 0)

File:
1 edited

Legend:

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

    ra19d7fc4 r4a2a6b8b  
    7878        } else if (vol->level == hr_l_0) {
    7979                data_blkno = vol->nblocks - (data_offset * vol->dev_no);
     80        } else if (vol->level == hr_l_4) {
     81                data_blkno = vol->nblocks - (data_offset * vol->dev_no) - (vol->nblocks / vol->dev_no);
    8082        } else {
    8183                log_msg(LOG_DEFAULT, LVL_ERROR,
Note: See TracChangeset for help on using the changeset viewer.