Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/blkdev: get_device_id: behave if model is lvm and id_model_enc isn't there #27156

Merged
merged 1 commit into from Mar 25, 2019

Conversation

liewegas
Copy link
Member

If that happens, leave ID_MODEL blank and we'll fall back to something
else, like ID_SERIAL (which is present in each case I've seen this).

Signed-off-by: Sage Weil sage@redhat.com

if (enc.size()) {
id_model = enc;
const char *enc = udev_device_get_property_value(dev, "ID_MODEL_ENC");
if (cenc) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not build.
s/cenc/enc/

… isn't there

If that happens, leave ID_MODEL blank and we'll fall back to something
else, like ID_SERIAL (which is present in each case I've seen this).

Signed-off-by: Sage Weil <sage@redhat.com>
Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm -- it also fixes the bootstrap crashes in ceph-mon for me as an added bonus.

@liewegas
Copy link
Member Author

also fixed the problem in my environment

@liewegas liewegas merged commit ec4434a into ceph:master Mar 25, 2019
liewegas added a commit that referenced this pull request Mar 25, 2019
* refs/pull/27156/head:
	common/blkdev: get_device_id: behave if model is lvm and id_model_enc isn't there

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants