2020-01-02 02:57:11 |
Aaron Blair |
description |
Currently ceph-osd device and partition functions use hard coded regexex (i.e. '[0-9]*') over the entire code base that limits supported devices those only with alphabetic characters; this limited regex, used for partition and device determination, is not able to handle devices that also have numbers within the device name (i.e. nvme0n1).
To determine disk device and partitions within ceph-osd, I recommend replacing the current use of static regexes with a set of common functions that can be updated more easily to support more exotic device types than standard sdx and hdx devices. |
Currently ceph-osd uses hard coded regexes (i.e. '[0-9]*') for partition and device determination over the entire code base. This regex limits supported devices to those with alphabetic characters only, and is not able to handle devices that also have numbers within the device name (i.e. nvme0n1).
To determine disk device and partitions within ceph-osd, I recommend replacing the current use of static regexes with a set of common functions that can be updated more easily to support more exotic device types than standard sdx and hdx devices. |
|