Changeset 746e636 in mainline for uspace/srv/bd/hr/raid0.c
- Timestamp:
- 2025-03-30T16:17:37Z (3 months ago)
- Children:
- 6d0fc11
- Parents:
- d082801
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid0.c
rd082801 r746e636 100 100 } 101 101 102 /* 103 * Called only once in volume's lifetime. 104 */ 102 105 errno_t hr_raid0_init(hr_volume_t *vol) 103 106 { … … 114 117 vol->nblocks = total_blkno; 115 118 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 */ 116 125 vol->data_offset = HR_DATA_OFF; 117 126 vol->data_blkno = vol->nblocks - (vol->data_offset * vol->extent_no);
Note:
See TracChangeset
for help on using the changeset viewer.