1
0
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:
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; 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);