Changeset 150adbd2 in mainline for uspace/lib/device


Ignore:
Timestamp:
2025-06-29T10:08:40Z (3 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
40ab4901
Parents:
93ea452
Message:

hr: add NOOP metadata type

Location:
uspace/lib/device
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/include/hr.h

    r93ea452 r150adbd2  
    8888        HR_METADATA_SOFTRAID,
    8989        HR_METADATA_MD,
    90         HR_METADATA_LAST_DUMMY
     90        HR_METADATA_NOOP,
     91        HR_METADATA_LAST_PLACEHOLDER
    9192} hr_metadata_type_t;
     93
     94typedef enum hr_vol_flag {
     95        HR_VOL_FLAG_NOOP_META = 0x01
     96} hr_vol_flag_t;
    9297
    9398typedef struct hr {
     
    100105        size_t dev_no;
    101106        hr_level_t level;
     107        uint8_t vol_flags;
    102108} hr_config_t;
    103109
  • uspace/lib/device/src/hr.c

    r93ea452 r150adbd2  
    554554        case HR_METADATA_MD:
    555555                return "Linux Multiple Device";
     556        case HR_METADATA_NOOP:
     557                return "NOOP Metadata";
    556558        default:
    557559                return "Invalid metadata type value";
Note: See TracChangeset for help on using the changeset viewer.