[syslinux:elflink] Add support for 64-bit filesystem compatible struct inode.

syslinux-bot for Chen Baozi baozich at gmail.com
Tue Nov 27 12:57:07 PST 2012


Commit-ID:  15b96c3fa40825b2469e3e86fd820d58976631d9
Gitweb:     http://www.syslinux.org/commit/15b96c3fa40825b2469e3e86fd820d58976631d9
Author:     Chen Baozi <baozich at gmail.com>
AuthorDate: Thu, 12 Jul 2012 09:33:58 +0800
Committer:  Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Sat, 21 Jul 2012 01:21:45 -0300

Add support for 64-bit filesystem compatible struct inode.

The struct inode of syslinux is designed for 32-bit filesystem.
However, mordern filesystem has already evolved into 64-bit,
such as XFS. So we modified it according the current linux
kernel's struct inode, which would support 64-bit file size,
block number and inode number.

Signed-off-by: Chen Baozi <baozich at gmail.com>
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>

---
 core/include/fs.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/include/fs.h b/core/include/fs.h
index e1f5733..a9c76ae 100644
--- a/core/include/fs.h
+++ b/core/include/fs.h
@@ -98,9 +98,9 @@ struct inode {
     const char *name;		/* Name, valid for generic path search only */
     int		 refcnt;
     int          mode;   /* FILE , DIR or SYMLINK */
-    uint32_t     size;
-    uint32_t	 blocks; /* How many blocks the file take */
-    uint32_t     ino;    /* Inode number */
+    uint64_t     size;
+    uint64_t	 blocks; /* How many blocks the file take */
+    uint64_t     ino;    /* Inode number */
     uint32_t     atime;  /* Access time */
     uint32_t     mtime;  /* Modify time */
     uint32_t     ctime;  /* Create time */


More information about the Syslinux-commits mailing list