mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Failure signalled by -1 not 0; MAX_DEVICES 256 (was 64); change a '>' to '>='.
This commit is contained in:
parent
cb0cc2999a
commit
dcde8bf026
@ -208,7 +208,7 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt)
|
|||||||
if (dmt->read_only)
|
if (dmt->read_only)
|
||||||
dmi->flags |= DM_READONLY_FLAG;
|
dmi->flags |= DM_READONLY_FLAG;
|
||||||
|
|
||||||
if (dmt->minor > 0) {
|
if (dmt->minor >= 0) {
|
||||||
dmi->flags |= DM_PERSISTENT_DEV_FLAG;
|
dmi->flags |= DM_PERSISTENT_DEV_FLAG;
|
||||||
dmi->dev = MKDEV(0, dmt->minor);
|
dmi->dev = MKDEV(0, dmt->minor);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user