From dcde8bf026fef9ee22b966971ac490a8cde85182 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 1 Feb 2002 17:39:20 +0000 Subject: [PATCH] Failure signalled by -1 not 0; MAX_DEVICES 256 (was 64); change a '>' to '>='. --- libdm/ioctl/libdevmapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/ioctl/libdevmapper.c b/libdm/ioctl/libdevmapper.c index 5c339f5f5..da3aec5ee 100644 --- a/libdm/ioctl/libdevmapper.c +++ b/libdm/ioctl/libdevmapper.c @@ -208,7 +208,7 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt) if (dmt->read_only) dmi->flags |= DM_READONLY_FLAG; - if (dmt->minor > 0) { + if (dmt->minor >= 0) { dmi->flags |= DM_PERSISTENT_DEV_FLAG; dmi->dev = MKDEV(0, dmt->minor); }