logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nvme-wdc-get-drive-status - Send the NVMe WDC get-drive-status command, return result

Description

       For the NVMe device given, send the unique WDC get-drive-status command and provide the additional drive
       status information.

       The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0).

       This will only work on WDC devices supporting this feature. Results for any other device are undefined.

       On success it returns 0, error code otherwise.

Examples

       •   Has the program issue WDC get-drive-status command :

               # nvme wdc get-drive-status /dev/nvme0

Name

       nvme-wdc-get-drive-status - Send the NVMe WDC get-drive-status command, return result

Nvme

       Part of the nvme-user suite.

NVMe                                               02/16/2025                               NVME-WDC-GET-DRIV(1)

Output Explanation

       ┌───────────────────────────┬──────────────────────────────────────┐
       │ FieldDescription                          │
       ├───────────────────────────┼──────────────────────────────────────┤
       │                           │                                      │
       │ PercentLifeUsed.        │ The percentage of drive function     │
       │                           │ used.                                │
       ├───────────────────────────┼──────────────────────────────────────┤
       │                           │                                      │
       │ EOL(EndofLife)Status  │ The 3 possible states are : Normal,  │
       │                           │ Read Only, or End of Life.           │
       ├───────────────────────────┼──────────────────────────────────────┤
       │                           │                                      │
       │ AssertDumpStatus        │ The 2 possible states are : Present  │
       │                           │ or Not Present.                      │
       ├───────────────────────────┼──────────────────────────────────────┤
       │                           │                                      │
       │ ThermalThrottlingStatus │ The 3 possible states are : Off, On, │
       │                           │ or Unavailable.                      │
       ├───────────────────────────┼──────────────────────────────────────┤
       │                           │                                      │
       │ FormatCorruptReason     │ The 3 possible states are : Not      │
       │                           │ Corrupted, Corrupt due to FW Assert, │
       │                           │ or Corrupt for Unknown Reason.       │
       └───────────────────────────┴──────────────────────────────────────┘

Synopsis

nvmewdcget-drive-status <device>

See Also