do {
- if (m->gfs2&& m->mh_type == mtype)
- return m;
+ if (((gfs1&& m[n].gfs1) || (!gfs1&& m[n].gfs2))
I'm wondering if we should represent the version metadata as flags
instead of separate gfs1 and gfs2 fields and define some constants so we
can do the comparison in one go, e.g.
if ((m[n].versions & versions) ...
Where versions is some combination of defined constants passed into the
function like LGFS2_VER_1 | LGFS2_VER_2
But that has its own drawbacks I guess so I'm probably just splitting
hairs. What do you think?