1
0
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:
Peter Rajnoha 2013-06-23 11:14:34 +02:00
parent bdcfe8c6de
commit c9e8e7c235

View File

@ -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);