]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix endian conversion problem in frag command - we were byte flipping
authorSteve Lord <lord@sgi.com>
Fri, 3 Aug 2001 15:28:29 +0000 (15:28 +0000)
committerSteve Lord <lord@sgi.com>
Fri, 3 Aug 2001 15:28:29 +0000 (15:28 +0000)
the inode type twice, resulting in unrecognized inodes and most
of them getting skipped.

db/frag.c

index 59991f62700f0f138f989c289ae5f97ececcd49c..a3485992e9526f0c4c4213db6fab06bc2bbc98f6 100644 (file)
--- 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 ||