The UUID thing (a) relies on partition labels to work, which isn't
always true (and won't be true for ceph-volume going forward), and
(b) reportedly doesn't work anyway. The fd-based helper works
just fine (even for vstart).
Fixes: http://tracker.ceph.com/issues/20944
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
e62862be0b68a17763e19ed8453436c457294505)
(*pm)["filestore_f_type"] = ss.str();
if (cct->_conf->filestore_collect_device_partition_information) {
- rc = get_device_by_uuid(get_fsid(), "PARTUUID", partition_path,
- dev_node);
+ rc = get_device_by_fd(fsid_fd, partition_path, dev_node, PATH_MAX);
} else {
rc = -EINVAL;
}