[syslinux:elflink] xfs: Fix inode size attribution
syslinux-bot for Paulo Alcantara
pcacjr at zytor.com
Tue Nov 27 12:57:07 PST 2012
Commit-ID: 443c194c3dd89ef77ea5c9338365b70f3df53e64
Gitweb: http://www.syslinux.org/commit/443c194c3dd89ef77ea5c9338365b70f3df53e64
Author: Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Thu, 12 Jul 2012 01:58:36 -0300
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Sat, 21 Jul 2012 01:21:45 -0300
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 at zytor.com>
---
core/fs/xfs/xfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index e998f64..1987fa7 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);
More information about the Syslinux-commits
mailing list