aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@zytor.com>2012-07-12 01:58:36 -0300
committerPaulo Alcantara <pcacjr@zytor.com>2012-07-21 01:21:45 -0300
commit443c194c3dd89ef77ea5c9338365b70f3df53e64 (patch)
tree63728a6623c94241192068ae26fb7ddab217276b
parent248096bedcf779c9b37531c09a916bacd436c132 (diff)
downloadsyslinux-443c194c3dd89ef77ea5c9338365b70f3df53e64.tar.gz
syslinux-443c194c3dd89ef77ea5c9338365b70f3df53e64.tar.xz
syslinux-443c194c3dd89ef77ea5c9338365b70f3df53e64.zip
xfs: Fix inode size attribution
Since the inode's size is stored on disk in big-endian format, we must store it in the Syslinux's inode as little-endian, since Syslinux is supposed to be running on x86 CPUs only. Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r--core/fs/xfs/xfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index e998f64f..1987fa74 100644
--- a/core/fs/xfs/xfs.c
+++ b/core/fs/xfs/xfs.c
@@ -230,7 +230,7 @@ found:
XFS_INFO(fs)->inode_shift >> BLOCK_SHIFT(fs);
inode->ino = XFS_INFO(fs)->rootino;
inode->mode = DT_DIR;
- inode->size = core->di_size;
+ inode->size = be64_to_cpu(core->di_size);
free(core);