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


Ignore:
Timestamp:
2025-03-07T20:53:54Z (4 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
e494d7b
Parents:
d2da1be
Message:

hr: add NONE state (use INVALID for inconsistent)

File:
1 edited

Legend:

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

    rd2da1be re24c064  
    321321{
    322322        switch (status) {
    323         case HR_VOL_INVALID:
    324                 return "INVALID";
     323        case HR_VOL_NONE:
     324                return "NONE/UNKNOWN";
    325325        case HR_VOL_ONLINE:
    326326                return "ONLINE";
     
    332332                return "REBUILD";
    333333        default:
    334                 return "UNKNOWN";
     334                return "Invalid state value";
    335335        }
    336336}
     
    339339{
    340340        switch (status) {
     341        case HR_EXT_NONE:
     342                return "NONE/UNKNOWN";
    341343        case HR_EXT_INVALID:
    342344                return "INVALID";
     
    352354                return "HOTSPARE";
    353355        default:
    354                 return "UNKNOWN";
     356                return "Invalid state value";
    355357        }
    356358}
     
    366368                        return "RAID-4 Non-Rotating Parity N";
    367369                default:
    368                         return "RAID-4 INVALID";
     370                        return "Invalid RAID 4 layout";
    369371                }
    370372        case HR_LVL_5:
     
    377379                        return "RAID-5 Rotating Parity N with Data Continuation";
    378380                default:
    379                         return "RAID-5 INVALID";
     381                        return "Invalid RAID 5 layout";
    380382                }
    381383        default:
    382                 return "INVALID";
     384                return "Invalid RAID level";
    383385        }
    384386}
Note: See TracChangeset for help on using the changeset viewer.