From 06654d1225157ef2031559e47109730111514be2 Mon Sep 17 00:00:00 2001 From: Ryan Attard Date: Thu, 27 Feb 2020 01:29:41 -0600 Subject: [PATCH] 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). --- src/udev/ata_id/ata_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c index deeb939f54..57389372ce 100644 --- a/src/udev/ata_id/ata_id.c +++ b/src/udev/ata_id/ata_id.c @@ -354,7 +354,7 @@ static int disk_identify(int fd, ret = disk_identify_packet_device_command(fd, out_identify, 512); goto check_nul_bytes; } - if (peripheral_device_type != 0x00) { + if (!IN_SET(peripheral_device_type, 0x00, 0x14)) { ret = -1; errno = EIO; goto out; -- 2.25.1