Changeset 9c1cf34c in mainline for uspace/srv/bd/hr/superblock.c


Ignore:
Timestamp:
2024-09-06T12:14:09Z (10 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
24968b5
Parents:
b0f1366
Message:

hr: add strip size to metadata and hr_volume_t

File:
1 edited

Legend:

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

    rb0f1366 r9c1cf34c  
    9090        metadata->data_blkno = host2uint64_t_le(data_blkno);
    9191        metadata->data_offset = host2uint32_t_le(data_offset);
     92        metadata->strip_size = host2uint32_t_le(vol->strip_size);
    9293        for (i = 0; i < vol->dev_no; i++) {
    9394                metadata->index = host2uint32_t_le(i);
     
    144145        new_volume->data_blkno = uint64_t_le2host(metadata->data_blkno);
    145146        new_volume->data_offset = uint32_t_le2host(metadata->data_offset);
     147        new_volume->strip_size = uint32_t_le2host(metadata->strip_size);
    146148
    147149        if (str_cmp(metadata->devname, new_volume->devname) != 0) {
Note: See TracChangeset for help on using the changeset viewer.