usr.sbin/fstyp: Fix incorrect pfs_type test in ondisk inode

"ipdata.meta.pfs_type & HAMMER2_PFSTYPE_SUPROOT" happened to have
the same result (except HAMMER2_PFSTYPE_DUMMY could also match).

Obtained from: Dragonfly (git 29e6489bbd4f8e237c9c17b300ac8b711f36770)
This commit is contained in:
Pedro F. Giffuni 2020-08-20 05:18:08 +00:00
parent ef20a5b58c
commit 0d2913adc3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364417

View File

@ -127,7 +127,7 @@ find_pfs(FILE *fp, const hammer2_blockref_t *bref, const char *pfs, bool *res)
switch (bref->type) {
case HAMMER2_BREF_TYPE_INODE:
ipdata = media->ipdata;
if (ipdata.meta.pfs_type & HAMMER2_PFSTYPE_SUPROOT) {
if (ipdata.meta.pfs_type == HAMMER2_PFSTYPE_SUPROOT) {
bscan = &ipdata.u.blockset.blockref[0];
bcount = HAMMER2_SET_COUNT;
} else {