mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
Merge pull request #272 from mscdex/add-nvme-by-path
udev/path_id: introduce support for NVMe devices
This commit is contained in:
commit
3465d068b2
@ -636,6 +636,15 @@ static int builtin_path_id(struct udev_device *dev, int argc __attribute__((unus
|
|||||||
parent = skip_subsystem(parent, "scm");
|
parent = skip_subsystem(parent, "scm");
|
||||||
supported_transport = true;
|
supported_transport = true;
|
||||||
supported_parent = true;
|
supported_parent = true;
|
||||||
|
} else if (streq(subsys, "nvme")) {
|
||||||
|
const char *nsid = udev_device_get_sysattr_value(dev, "nsid");
|
||||||
|
|
||||||
|
if (nsid) {
|
||||||
|
path_prepend(&path, "nvme-%s", nsid);
|
||||||
|
parent = skip_subsystem(parent, "nvme");
|
||||||
|
supported_parent = true;
|
||||||
|
supported_transport = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parent = udev_device_get_parent(parent);
|
parent = udev_device_get_parent(parent);
|
||||||
|
Loading…
Reference in New Issue
Block a user