diff options
author | Chen Baozi <baozich@gmail.com> | 2012-07-12 09:33:58 +0800 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-21 01:21:45 -0300 |
commit | 15b96c3fa40825b2469e3e86fd820d58976631d9 (patch) | |
tree | bdf5d4992d195f3a6e1e5c3de602cb02d2573f71 | |
parent | 443c194c3dd89ef77ea5c9338365b70f3df53e64 (diff) | |
download | syslinux-15b96c3fa40825b2469e3e86fd820d58976631d9.tar.gz syslinux-15b96c3fa40825b2469e3e86fd820d58976631d9.tar.xz syslinux-15b96c3fa40825b2469e3e86fd820d58976631d9.zip |
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@gmail.com>
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | core/include/fs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/include/fs.h b/core/include/fs.h index e1f5733c..a9c76aed 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 */ |