summaryrefslogtreecommitdiff
path: root/usr.sbin/fstyp
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2020-08-20 05:18:08 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2020-08-20 05:18:08 +0000
commit0d2913adc34fb8c3729e8e358557f7cf8bebefab (patch)
treef7cb5d9d84ae1d6b906d993c7bcd954b32626885 /usr.sbin/fstyp
parentef20a5b58ce9a010cf24df390b47c83e49cfd550 (diff)
downloadsrc-test2-0d2913adc34fb8c3729e8e358557f7cf8bebefab.tar.gz
src-test2-0d2913adc34fb8c3729e8e358557f7cf8bebefab.zip
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)
Notes
Notes: svn path=/head/; revision=364417
Diffstat (limited to 'usr.sbin/fstyp')
-rw-r--r--usr.sbin/fstyp/hammer2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/fstyp/hammer2.c b/usr.sbin/fstyp/hammer2.c
index 1a4e655d0f8e..dfd026649fdb 100644
--- a/usr.sbin/fstyp/hammer2.c
+++ b/usr.sbin/fstyp/hammer2.c
@@ -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 {