Changeset 150adbd2 in mainline for uspace/srv/bd/hr/superblock.c


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

hr: add NOOP metadata type

File:
1 edited

Legend:

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

    r93ea452 r150adbd2  
    6161extern hr_superblock_ops_t metadata_softraid_ops;
    6262extern hr_superblock_ops_t metadata_md_ops;
     63extern hr_superblock_ops_t noop_ops;
    6364
    6465static hr_superblock_ops_t *hr_superblock_ops_all[] = {
     
    6768        [HR_METADATA_GEOM_STRIPE] = &metadata_gstripe_ops,
    6869        [HR_METADATA_SOFTRAID] = &metadata_softraid_ops,
    69         [HR_METADATA_MD] = &metadata_md_ops
     70        [HR_METADATA_MD] = &metadata_md_ops,
     71        [HR_METADATA_NOOP] = &noop_ops
    7072};
    7173
    7274hr_superblock_ops_t *hr_get_meta_type_ops(hr_metadata_type_t type)
    7375{
    74         assert(type >= HR_METADATA_NATIVE && type < HR_METADATA_LAST_DUMMY);
     76        assert(type >= HR_METADATA_NATIVE &&
     77            type < HR_METADATA_LAST_PLACEHOLDER);
    7578
    7679        return hr_superblock_ops_all[type];
     
    9295
    9396        volatile hr_metadata_type_t type = HR_METADATA_NATIVE;
    94         for (; type < HR_METADATA_LAST_DUMMY; type++) {
     97        for (; type < HR_METADATA_LAST_PLACEHOLDER; type++) {
    9598                meta_ops = hr_superblock_ops_all[type];
    9699
Note: See TracChangeset for help on using the changeset viewer.