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/87e67ba582f6
branches: trunk
changeset: 937287:87e67ba582f6
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 cb0c8e95cacf -r 87e67ba582f6 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