summaryrefslogtreecommitdiff
path: root/core/include/fs.h
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-06-12 11:24:04 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-06-20 14:51:09 +0100
commit3e7446afe578dcad987076fdd340740d2c2f53d2 (patch)
tree9720cd1d7e62e97e2ee6ac291a8a7740873927b2 /core/include/fs.h
parent97a087ea7814db5134e4d5cd40930fa4bd20f2e0 (diff)
downloadsyslinux-3e7446afe578dcad987076fdd340740d2c2f53d2.tar.gz
fs: Add .copy_super to struct fs_ops
commit c0d18deeee2 ("elflink: Fix boot sector booting") makes reference to vfat_copy_superblock() which is only implemented for SYSLINUX, resulting in an undefined symbol when booting ISOLINUX or PXELINUX. Move the superblock copy operation to struct fs_ops so that we don't need to add a stub implementation of vfat_copy_superblock() to ISOLINUX and PXELINUX. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'core/include/fs.h')
-rw-r--r--core/include/fs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/include/fs.h b/core/include/fs.h
index ded8c154..08ac7385 100644
--- a/core/include/fs.h
+++ b/core/include/fs.h
@@ -72,6 +72,8 @@ struct fs_ops {
int (*readdir)(struct file *, struct dirent *);
int (*next_extent)(struct inode *, uint32_t);
+
+ int (*copy_super)(void *buf);
};
/*
@@ -234,7 +236,4 @@ uint32_t generic_getfssec(struct file *file, char *buf,
/* nonextextent.c */
int no_next_extent(struct inode *, uint32_t);
-/* fat.c */
-int vfat_copy_superblock(void *buf);
-
#endif /* FS_H */