mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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;
|
||||
}
|
||||
*result = MKDEV((dev_t)major, minor);
|
||||
ret = 1;
|
||||
ret = 2;
|
||||
out:
|
||||
if (fp && fclose(fp))
|
||||
log_sys_error("fclose", path);
|
||||
|
Loading…
Reference in New Issue
Block a user