1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-12-10 16:23:54 +03:00

independent metadata areas: fix bogus code

Fix mixing bitwise & and logical && which was
always 1 in any case.
This commit is contained in:
David Teigland
2017-10-25 13:55:22 -05:00
parent 2773767924
commit 654525b33d

View File

@@ -1314,7 +1314,9 @@ static int _scan_raw(const struct format_type *fmt, const char *vgname __attribu
static int _text_scan(const struct format_type *fmt, const char *vgname)
{
return (_scan_file(fmt, vgname) & _scan_raw(fmt, vgname));
_scan_file(fmt, vgname);
_scan_raw(fmt, vgname);
return 1;
}
struct _write_single_mda_baton {