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


Ignore:
Timestamp:
2024-12-06T19:46:43Z (6 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
241c3f6
Parents:
586b39d
Message:

hr: add different RAID4,5 layouts

Also prepare the metadata for metada versioning
and sync counter.

File:
1 edited

Legend:

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

    r586b39d rd7768d11  
    7070        uint64_t nblocks;
    7171        uint64_t data_blkno;
    72         uint32_t data_offset; /* in blocks */
     72        uint64_t data_offset; /* in blocks */
    7373        uint32_t strip_size;
    7474
    7575        uint64_t rebuild_blk;
    7676
     77        uint64_t counter; /* metadata syncing */
     78
    7779        service_id_t svc_id;
    7880        hr_vol_status_t status;
    7981        hr_level_t level;
     82        /*
     83         * SNIA
     84         * Common RAID Disk Data Format
     85         * Specification
     86         * Version 2.0 Revision 19
     87         */
     88#define HR_RLQ_RAID4_0  0x00 /* RAID-4 Non-Rotating Parity 0 */
     89#define HR_RLQ_RAID4_N  0x01 /* RAID-4 Non-Rotating Parity N */
     90#define HR_RLQ_RAID5_0R 0x00 /* RAID-5 Rotating Parity 0 with Data Restart */
     91#define HR_RLQ_RAID5_NR 0x02 /* RAID-5 Rotating Parity N with Data Restart */
     92#define HR_RLQ_RAID5_NC 0x03 /* RAID-5 Rotating Parity N with Data Continuation */
     93        uint8_t RLQ; /* RAID Level Qualifier */
    8094        char devname[HR_DEVNAME_LEN];
    8195} hr_volume_t;
Note: See TracChangeset for help on using the changeset viewer.