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:
parent
ef20a5b58c
commit
0d2913adc3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user