mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
dev-type: dev_get_primary_dev: fix ret value if dev is a partition and we used sysfs
This commit is contained in:
parent
bdcfe8c6de
commit
c9e8e7c235
@ -434,7 +434,7 @@ int dev_get_primary_dev(struct dev_types *dt, struct device *dev, dev_t *result)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
*result = MKDEV((dev_t)major, minor);
|
*result = MKDEV((dev_t)major, minor);
|
||||||
ret = 1;
|
ret = 2;
|
||||||
out:
|
out:
|
||||||
if (fp && fclose(fp))
|
if (fp && fclose(fp))
|
||||||
log_sys_error("fclose", path);
|
log_sys_error("fclose", path);
|
||||||
|
Loading…
Reference in New Issue
Block a user