Skip to content

Commit

Permalink
Author: Ryan Attard <frontrunner4000@gmail.com>
Browse files Browse the repository at this point in the history
ata_id: Add support for host managed zone block devices (#14933)

If the peripheral device type is that of a host managed zone block device (0x14),
the device supports the same identification mechanisms as conventional disks (0x00).

systemd-commit: 06654d1225157ef2031559e47109730111514be2
  • Loading branch information
bbonev committed Sep 19, 2021
1 parent 1d093c2 commit 2978307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ata_id/ata_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ static int disk_identify_command(int fd,
return ret;
}

if (!(sense[0] == 0x72 && desc[0] == 0x9 && desc[1] == 0x0c)) {
if (!(sense[0] == 0x72 && desc[0] == 0x9 && desc[1] == 0x0c) &&
!(sense[0] == 0x70 && sense[12] == 0x00 && sense[13] == 0x1d)) {
errno = EIO;
return -1;
}
Expand Down

0 comments on commit 2978307

Please sign in to comment.