mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
udev: distinguish host-managed zoned block in scsi_id
According to SPC4, the value of 0x14 is reserved to distinguish host managed zoned block, e.g., some SMR (Shingled Magnetic Recording) disks. Other utilities such as sg3_utils can successfully recognize such kind of disks. This patch implements the same ability.
This commit is contained in:
@@ -84,6 +84,13 @@ static void set_type(unsigned type_num, char *to, size_t len) {
|
||||
case 0xf:
|
||||
type = "optical";
|
||||
break;
|
||||
case 0x14:
|
||||
/*
|
||||
* Use "zbc" here to be brief and consistent with "lsscsi" command.
|
||||
* Other tools, e.g., "sg3_utils" would say "host managed zoned block".
|
||||
*/
|
||||
type = "zbc";
|
||||
break;
|
||||
default:
|
||||
type = "generic";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user