Changeset 3a68baa in mainline


Ignore:
Timestamp:
2025-01-12T21:53:55Z (4 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
36661772
Parents:
5ee041e
git-author:
Miroslav Cimerman <mc@…> (2025-01-12 21:21:03)
git-committer:
Miroslav Cimerman <mc@…> (2025-01-12 21:53:55)
Message:

lib/device/hr: add INVALID state

Location:
uspace/lib/device
Files:
2 edited

Legend:

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

    r5ee041e r3a68baa  
    6868
    6969typedef enum hr_vol_status {
    70         HR_VOL_ONLINE,  /* OK, OPTIMAL */
     70        HR_VOL_INVALID,
     71        HR_VOL_ONLINE,  /* OPTIMAL */
    7172        HR_VOL_FAULTY,
    7273        HR_VOL_DEGRADED, /* also used for partial, but usable mirror */
     
    7576
    7677typedef enum hr_ext_status {
     78        HR_EXT_INVALID,
    7779        HR_EXT_ONLINE,  /* OK */
    7880        HR_EXT_MISSING,
  • uspace/lib/device/src/hr.c

    r5ee041e r3a68baa  
    321321{
    322322        switch (status) {
     323        case HR_VOL_INVALID:
     324                return "INVALID";
    323325        case HR_VOL_ONLINE:
    324326                return "ONLINE";
     
    337339{
    338340        switch (status) {
     341        case HR_EXT_INVALID:
     342                return "INVALID";
    339343        case HR_EXT_ONLINE:
    340344                return "ONLINE";
Note: See TracChangeset for help on using the changeset viewer.