Skip to content

Commit a241c19

Browse files
ikegami-tigaw
authored andcommitted
nvme: correct sanitize in progress definition name
Change to NVME_SANITIZE_SSTAT_STATUS_IN_PROGRESS. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent a57c1b3 commit a241c19

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

libnvme/src/nvme/types.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5396,7 +5396,7 @@ enum nvme_resv_notify_rnlpt {
53965396
* sanitize operation. The value is a numerator of the fraction
53975397
* complete that has 65,536 (10000h) as its denominator. This value
53985398
* shall be set to FFFFh if the @sstat field is not set to
5399-
* %NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS.
5399+
* %NVME_SANITIZE_SSTAT_STATUS_IN_PROGRESS.
54005400
* @sstat: Sanitize Status (SSTAT): indicates the status associated with
54015401
* the most recent sanitize operation. See &enum nvme_sanitize_sstat.
54025402
* @scdw10: Sanitize Command Dword 10 Information (SCDW10): contains the value
@@ -5494,7 +5494,8 @@ struct nvme_sanitize_log_page {
54945494
* @NVME_SANITIZE_SSTAT_STATUS_COMPLETE_SUCCESS: The most recent sanitize operation
54955495
* completed successfully including any
54965496
* additional media modification.
5497-
* @NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS: A sanitize operation is currently in progress.
5497+
* @NVME_SANITIZE_SSTAT_STATUS_IN_PROGRESS: A sanitize operation is currently in
5498+
* progress.
54985499
* @NVME_SANITIZE_SSTAT_STATUS_COMPLETED_FAILED: The most recent sanitize operation
54995500
* failed.
55005501
* @NVME_SANITIZE_SSTAT_STATUS_ND_COMPLETE_SUCCESS: The most recent sanitize operation
@@ -5532,7 +5533,7 @@ enum nvme_sanitize_sstat {
55325533
NVME_SANITIZE_SSTAT_STATUS_MASK = 0x7,
55335534
NVME_SANITIZE_SSTAT_STATUS_NEVER_SANITIZED = 0,
55345535
NVME_SANITIZE_SSTAT_STATUS_COMPLETE_SUCCESS = 1,
5535-
NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS = 2,
5536+
NVME_SANITIZE_SSTAT_STATUS_IN_PROGRESS = 2,
55365537
NVME_SANITIZE_SSTAT_STATUS_COMPLETED_FAILED = 3,
55375538
NVME_SANITIZE_SSTAT_STATUS_ND_COMPLETE_SUCCESS = 4,
55385539
NVME_SANITIZE_SSTAT_COMPLETED_PASSES_SHIFT = 3,

nvme-print-stdout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4683,7 +4683,7 @@ static void stdout_sanitize_log(struct nvme_sanitize_log_page *sanitize,
46834683
printf("Sanitize Progress (SPROG) : %u",
46844684
le16_to_cpu(sanitize->sprog));
46854685

4686-
if (human && status == NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS)
4686+
if (human && status == NVME_SANITIZE_SSTAT_STATUS_IN_PROGRESS)
46874687
stdout_sanitize_log_sprog(le16_to_cpu(sanitize->sprog));
46884688
else
46894689
printf("\n");

nvme-print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const char *nvme_sstat_status_to_string(__u16 status)
146146
return "NVM Subsystem has never been sanitized.";
147147
case NVME_SANITIZE_SSTAT_STATUS_COMPLETE_SUCCESS:
148148
return "Most Recent Sanitize Command Completed Successfully.";
149-
case NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS:
149+
case NVME_SANITIZE_SSTAT_STATUS_IN_PROGRESS:
150150
return "Sanitize in Progress.";
151151
case NVME_SANITIZE_SSTAT_STATUS_COMPLETED_FAILED:
152152
return "Most Recent Sanitize Command Failed.";

0 commit comments

Comments
 (0)