From: Ryan Attard Date: Thu, 27 Feb 2020 07:29:41 +0000 (-0600) Subject: ata_id: Add support for host managed zone block devices (#14933) X-Git-Tag: v245-rc2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06654d1225157ef2031559e47109730111514be2;p=thirdparty%2Fsystemd.git 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). --- diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c index deeb939f54a..57389372ce2 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;