From: Steve Lord Date: Fri, 3 Aug 2001 15:28:29 +0000 (+0000) Subject: Fix endian conversion problem in frag command - we were byte flipping X-Git-Tag: v2.0.0~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c93f9b708e6fa9be18cc646ef4c183982f62c53;p=thirdparty%2Fxfsprogs-dev.git 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. --- 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 ||