From 15b96c3fa40825b2469e3e86fd820d58976631d9 Mon Sep 17 00:00:00 2001 From: Chen Baozi Date: Thu, 12 Jul 2012 09:33:58 +0800 Subject: 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 Signed-off-by: Paulo Alcantara --- core/include/fs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/include/fs.h') 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 */ -- cgit v1.2.1 From 10bb72d1528b909a8e6f270fca02e6b5afae6a6e Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Fri, 30 Nov 2012 09:50:53 +0000 Subject: PATH: Use installation directory for 'PATH' Files in the installation directory should be able to be executed (along with their dependencies) from any directory in the file hierarchy. Using the installation directory as the default value for 'PATH' is the most sensible way to do this. The PATH config directive still allows other directories to be appended to the 'PATH' variable, which is useful when there are other directories containing modules. Signed-off-by: Matt Fleming --- core/include/fs.h | 1 - 1 file changed, 1 deletion(-) (limited to 'core/include/fs.h') diff --git a/core/include/fs.h b/core/include/fs.h index fa5bbc2c..9d552787 100644 --- a/core/include/fs.h +++ b/core/include/fs.h @@ -182,7 +182,6 @@ static inline struct file *handle_to_file(uint16_t handle) return handle ? &files[handle-1] : NULL; } -#define PATH_DEFAULT "/boot/syslinux/:/boot/" extern char *PATH; /* fs.c */ -- cgit v1.2.1