Changeset 746e636 in mainline for uspace/srv/bd/hr/raid0.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/raid0.c

    rd082801 r746e636  
    100100}
    101101
     102/*
     103 * Called only once in volume's lifetime.
     104 */
    102105errno_t hr_raid0_init(hr_volume_t *vol)
    103106{
     
    114117        vol->nblocks = total_blkno;
    115118        vol->bsize = bsize;
     119        /*
     120         * XXX: according to bsize set the data_offset...
     121         *
     122         * also can change this depending on level, like
     123         * RAID5 might try to put data at 64K boundary
     124         */
    116125        vol->data_offset = HR_DATA_OFF;
    117126        vol->data_blkno = vol->nblocks - (vol->data_offset * vol->extent_no);
Note: See TracChangeset for help on using the changeset viewer.