summaryrefslogtreecommitdiff
path: root/core/include/fs.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-03-06 18:08:28 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-03-06 18:08:28 -0800
commitb84aec6ed33e657621465eb9c7d700a122d88e29 (patch)
tree7042446822806db2e3958fc7882658ee04574b7d /core/include/fs.h
parent8c9d059b1584310dcbc39f3bc81d4c8401f6e78b (diff)
downloadsyslinux-b84aec6ed33e657621465eb9c7d700a122d88e29.tar.gz
pxe: use an inode structure for pxesyslinux-4.00-pre36
Use an inode structure for PXE as well. Even though this is really rather superfluous in the case of PXE, it eliminates an ugly special case in the generic code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include/fs.h')
-rw-r--r--core/include/fs.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/core/include/fs.h b/core/include/fs.h
index 187a55d0..fb12ce3c 100644
--- a/core/include/fs.h
+++ b/core/include/fs.h
@@ -122,26 +122,12 @@ struct inode {
char pvt[0]; /* Private filesystem data */
};
-struct open_file_t;
-
struct file {
struct fs_info *fs;
- uint32_t file_len;
- union {
- /* For the new universal-path_lookup */
- struct {
- struct inode *inode; /* The file-specific information */
- uint32_t offset; /* for next read */
- };
-
- /* For the old searchdir method */
- struct {
- struct open_file_t *open_file;/* The fs-specific open file struct */
- };
- };
+ uint32_t offset; /* for next read */
+ struct inode *inode; /* The file-specific information */
};
-
enum dev_type {CHS, EDD};
/*