]> sourceware.org Git - lvm2.git/commitdiff
lv->minor >= 0 (ejt)
authorAlasdair Kergon <agk@redhat.com>
Mon, 4 Feb 2002 13:08:31 +0000 (13:08 +0000)
committerAlasdair Kergon <agk@redhat.com>
Mon, 4 Feb 2002 13:08:31 +0000 (13:08 +0000)
lib/activate/activate.c

index 2b673b6ca9487292bf4c95716399302272889b27..0740f03c6dbfc8cdeae1c1fcf113e5b21bd0c791 100644 (file)
@@ -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);
This page took 0.034331 seconds and 5 git commands to generate.