Date: Thu, 20 Aug 2020 05:18:08 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r364417 - head/usr.sbin/fstyp Message-ID: <202008200518.07K5I8vA063447@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Thu Aug 20 05:18:08 2020 New Revision: 364417 URL: https://svnweb.freebsd.org/changeset/base/364417 Log: 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) Modified: head/usr.sbin/fstyp/hammer2.c Modified: head/usr.sbin/fstyp/hammer2.c ============================================================================== --- head/usr.sbin/fstyp/hammer2.c Thu Aug 20 05:08:49 2020 (r364416) +++ head/usr.sbin/fstyp/hammer2.c Thu Aug 20 05:18:08 2020 (r364417) @@ -127,7 +127,7 @@ find_pfs(FILE *fp, const hammer2_blockref_t *bref, con 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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008200518.07K5I8vA063447>