Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/fstyp fstyp: Fix incorrect pfs_type test for HAMMER...



details:   https://anonhg.NetBSD.org/src/rev/1735e0f33c56
branches:  trunk
changeset: 1012903:1735e0f33c56
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Fri Aug 14 18:35:57 2020 +0000

description:
fstyp: Fix incorrect pfs_type test for HAMMER2 inode

taken-from: DragonFly BSD

diffstat:

 usr.sbin/fstyp/hammer2.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a2b1728da8d9 -r 1735e0f33c56 usr.sbin/fstyp/hammer2.c
--- a/usr.sbin/fstyp/hammer2.c  Fri Aug 14 16:53:06 2020 +0000
+++ b/usr.sbin/fstyp/hammer2.c  Fri Aug 14 18:35:57 2020 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: hammer2.c,v 1.4 2020/01/15 15:32:05 tkusumi Exp $      */
+/*        $NetBSD: hammer2.c,v 1.5 2020/08/14 18:35:57 tkusumi Exp $      */
 
 /*-
  * Copyright (c) 2017-2019 The DragonFly Project
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hammer2.c,v 1.4 2020/01/15 15:32:05 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hammer2.c,v 1.5 2020/08/14 18:35:57 tkusumi Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -122,7 +122,7 @@
        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 {



Home | Main Index | Thread Index | Old Index