1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lv->minor >= 0 (ejt)

This commit is contained in:
Alasdair Kergon 2002-02-04 13:08:31 +00:00
parent 812c699c8d
commit d6750e9d76

View 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);