Changeset 6b8e89b0 in mainline for uspace/srv/bd/hr/var.h


Ignore:
Timestamp:
2024-10-05T13:11:11Z (8 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
dceb6e7
Parents:
dbd91da
git-author:
Miroslav Cimerman <mc@…> (2024-10-05 12:39:13)
git-committer:
Miroslav Cimerman <mc@…> (2024-10-05 13:11:11)
Message:

hr: init fuction for each RAID level

Compute total blocks, data blocks and set block size, data offset, strip
size there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/var.h

    rdbd91da r6b8e89b0  
    4949typedef struct hr_ops {
    5050        errno_t (*create)(hr_volume_t *);
     51        errno_t (*init)(hr_volume_t *);
    5152} hr_ops_t;
    5253
     
    5960        uint64_t nblocks;
    6061        uint64_t data_blkno;
    61         uint32_t data_offset;
     62        uint32_t data_offset; /* in blocks */
    6263        uint32_t strip_size;
    6364        service_id_t svc_id;
     
    7475extern errno_t hr_raid4_create(hr_volume_t *);
    7576
     77extern errno_t hr_raid0_init(hr_volume_t *);
     78extern errno_t hr_raid1_init(hr_volume_t *);
     79extern errno_t hr_raid4_init(hr_volume_t *);
     80
    7681#endif
    7782
Note: See TracChangeset for help on using the changeset viewer.