Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/autoval_ssd/lib/utils/storage/nvme/nvme_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,8 +1420,6 @@ def get_tcg_ownership_status(self) -> OwnershipStatus:
sid_auth_blocked_state = (byte_0xA8_int >> 1) & 1
if sid_state and not sid_auth_blocked_state:
return OwnershipStatus.SET
if sid_auth_blocked_state and sid_state:
return OwnershipStatus.BLOCKED_AND_SET
if sid_auth_blocked_state and not sid_state:
return OwnershipStatus.BLOCKED_AND_NOT_SET
if not sid_state and not sid_auth_blocked_state:
Expand Down
2 changes: 1 addition & 1 deletion src/autoval_ssd/tests/sed_check/sed_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def execute(self) -> None:
str(drive.get_tcg_ownership_status()),
[
str(OwnershipStatus.SET),
str(OwnershipStatus.BLOCKED_AND_SET),
str(OwnershipStatus.BLOCKED_AND_NOT_SET),
],
"validating the drive ownership status"
f" {drive.block_name} {drive.serial_number}",
Expand Down