Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
osd: enumerate device names in a simple way #18453
This adds a 'devices' metadata key that is a comma-separated list of device names (e.g., "sdc", "dm-1", "nvme0n1"). If there is a dm device in there, we also include all of the parent/consituent devices that it is built out of. For example, for my simple LV, I get
This will simplify the mgr's efforts to correlate devices and osds. It will also be useful for the OSD code that queries SMART info.
What it doesn't do is distinguish between "primary" and "secondary" devices. So if you have a shared SSD with journals on it, all OSDs using it will include it in their list.