mirror of
git://sourceware.org/git/lvm2.git
synced 2025-12-22 08:23:49 +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:
@@ -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)
|
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 {
|
struct _write_single_mda_baton {
|
||||||
|
|||||||
Reference in New Issue
Block a user