From b0b5cf615c30723299552baec83b1b5192ac40c4 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 19 Mar 2004 01:53:26 +0000 Subject: [PATCH] Fix endian bug in xfs_copy, dealing with fragmented freespace (multi-level btrees). --- copy/xfs_copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c index 077cc8ce0..d3b5029af 100644 --- a/copy/xfs_copy.c +++ b/copy/xfs_copy.c @@ -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 */ -- 2.47.2