From 3c93f9b708e6fa9be18cc646ef4c183982f62c53 Mon Sep 17 00:00:00 2001 From: Steve Lord Date: Fri, 3 Aug 2001 15:28:29 +0000 Subject: [PATCH] Fix endian conversion problem in frag command - we were byte flipping the inode type twice, resulting in unrecognized inodes and most of them getting skipped. --- db/frag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/frag.c b/db/frag.c index 59991f627..a3485992e 100644 --- a/db/frag.c +++ b/db/frag.c @@ -339,12 +339,12 @@ process_inode( dic = &dip->di_core; ino = XFS_AGINO_TO_INO(mp, INT_GET(agf->agf_seqno, ARCH_CONVERT), agino); - switch (INT_GET(dic->di_mode, ARCH_CONVERT) & IFMT) { + switch (dic->di_mode & IFMT) { case IFDIR: skipd = !dflag; break; case IFREG: - if (!rflag && (INT_GET(dic->di_flags, ARCH_CONVERT) & XFS_DIFLAG_REALTIME)) + if (!rflag && (dic->di_flags & XFS_DIFLAG_REALTIME)) skipd = 1; else if (!Rflag && (ino == mp->m_sb.sb_rbmino || -- 2.47.2