Changeset 746e636 in mainline for uspace/srv/bd/hr/raid5.c


Ignore:
Timestamp:
2025-03-30T16:17:37Z (3 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
6d0fc11
Parents:
d082801
Message:

hr: add comments to raid init()

File:
1 edited

Legend:

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

    rd082801 r746e636  
    11/*
    2  * Copyright (c) 2024 Miroslav Cimerman
     2 * Copyright (c) 2025 Miroslav Cimerman
    33 * All rights reserved.
    44 *
     
    117117}
    118118
     119/*
     120 * Called only once in volume's lifetime.
     121 */
    119122errno_t hr_raid5_init(hr_volume_t *vol)
    120123{
     
    131134        vol->nblocks = total_blkno;
    132135        vol->bsize = bsize;
     136        /*
     137         * XXX: according to bsize set the data_offset...
     138         *
     139         * also can change this depending on level, like
     140         * RAID5 might try to put data at 64K boundary
     141         */
    133142        vol->data_offset = HR_DATA_OFF;
    134143        vol->data_blkno = vol->nblocks - (vol->data_offset * vol->extent_no) -
Note: See TracChangeset for help on using the changeset viewer.