Changeset 150adbd2 in mainline for uspace/srv/bd/hr/hr.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/hr.c

    r93ea452 r150adbd2  
    131131        }
    132132
    133         rc = hr_create_vol_struct(&vol, cfg->level, cfg->devname,
    134             HR_METADATA_NATIVE);
     133        hr_metadata_type_t meta_type;
     134        if (cfg->vol_flags & HR_VOL_FLAG_NOOP_META)
     135                meta_type = HR_METADATA_NOOP;
     136        else
     137                meta_type = HR_METADATA_NATIVE;
     138
     139        printf("creating with type %d\n", meta_type);
     140        rc = hr_create_vol_struct(&vol, cfg->level, cfg->devname, meta_type);
    135141        if (rc != EOK) {
    136142                free(cfg);
Note: See TracChangeset for help on using the changeset viewer.