]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix endian bug in xfs_copy, dealing with fragmented freespace (multi-level btrees).
authorNathan Scott <nathans@sgi.com>
Fri, 19 Mar 2004 01:53:26 +0000 (01:53 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 19 Mar 2004 01:53:26 +0000 (01:53 +0000)
copy/xfs_copy.c

index 077cc8ce0cf5b8c452f654843e953719344844df..d3b5029af93ef4bcfa5e418d7a7fb3fa36e111f4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
+ * Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
  * 
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of version 2 of the GNU General Public License as
@@ -961,7 +961,7 @@ main(int argc, char **argv)
                        ptr = XFS_BTREE_PTR_ADDR(sourceb_blocksize, xfs_alloc,
                                block, 1, mp->m_alloc_mxr[1]),
 
-                       bno = *ptr;
+                       bno = INT_GET(ptr[0], ARCH_CONVERT);
                }
 
                /* align first data copy but don't overwrite ag header */