mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
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).
This commit is contained in:
parent
1e84031952
commit
06654d1225
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user