1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dev_manager: fix mknodes

Fix regression introduced with a2c1024f6a

_setup_task(mknodes ? name : NULL...

has been replaced with:

_setup_task(type != MKNODES ? name : NULL....

Use '=='
This commit is contained in:
Zdenek Kabelac 2014-11-21 19:36:51 +01:00
parent 6ce8e57989
commit 4dc602f79b
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.113 -
=====================================
Fix regression in vgscan --mknodes usage (2.02.112).
Respect --prefix when setting CLMVD_PATH configure (2.02.89).
Default to configure --enable-udev-systemd-background-jobs for systemd>=205.
Fix ignore_vg() to properly react on various vg_read errors (2.02.112).

View File

@ -206,7 +206,7 @@ static int _info_run(info_type_t type, const char *name, const char *dlid,
return 0;
}
if (!(dmt = _setup_task(type != MKNODES ? name : NULL, dlid, 0, dmtask,
if (!(dmt = _setup_task((type == MKNODES) ? name : NULL, dlid, 0, dmtask,
major, minor, with_open_count)))
return_0;