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:
parent
812c699c8d
commit
d6750e9d76
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user