Changeset b883aa8 in mainline for uspace/lib/device/src/hr.c


Ignore:
Timestamp:
2025-04-21T12:47:58Z (4 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
5cb1631
Parents:
75262d2f
Message:

hr: move metadata_type_t to lib/hr for type printing

Also renames metadata_type_t → hr_metadata_type_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/src/hr.c

    r75262d2f rb883aa8  
    456456}
    457457
     458const char *hr_get_metadata_type_str(hr_metadata_type_t type)
     459{
     460        switch (type) {
     461        case HR_METADATA_NATIVE:
     462                return "Native HelenRAID metadata";
     463        case HR_METADATA_GEOM_MIRROR:
     464                return "GEOM::MIRROR";
     465        case HR_METADATA_GEOM_STRIPE:
     466                return "GEOM::STRIPE";
     467        default:
     468                return "Invalid metadata type value";
     469        }
     470}
     471
    458472/** @}
    459473 */
Note: See TracChangeset for help on using the changeset viewer.