From d6750e9d76dfbdea65f140db5104099dc9dbd6ef Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 4 Feb 2002 13:08:31 +0000 Subject: [PATCH] lv->minor >= 0 (ejt) --- lib/activate/activate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 2b673b6ca..0740f03c6 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -287,7 +287,7 @@ int _load(struct logical_volume *lv, int task) log_very_verbose("Activating %s read-only", lv->name); } - if (lv->minor) { + if (lv->minor >= 0) { if (!dm_task_set_minor(dmt, MINOR(lv->minor))) { log_error("Failed to set minor number for %s to %d " "during activation.", lv->name, lv->minor); -- 2.43.5