aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShao Miller <syslinux@synthetel.com>2016-03-08 21:17:49 -0500
committerShao Miller <syslinux@synthetel.com>2016-03-08 21:17:49 -0500
commitdf22b3f175c628c2c115c1b5de9c9b96bdbb5260 (patch)
tree5a651d8c489dbb90c68b0da4fc4df37b84fdcab6
parent1ac927d131d088e07320942d29f65208c34f08c8 (diff)
downloadsyslinux-cpiofs2.tar.gz
syslinux-cpiofs2.tar.xz
syslinux-cpiofs2.zip
[cpiofs] Introduce skeletoncpiofs2
Signed-off-by: Shao Miller <syslinux@synthetel.com>
-rw-r--r--core/fs/cpiofs/cpiofs.c144
1 files changed, 144 insertions, 0 deletions
diff --git a/core/fs/cpiofs/cpiofs.c b/core/fs/cpiofs/cpiofs.c
new file mode 100644
index 00000000..da57cb93
--- /dev/null
+++ b/core/fs/cpiofs/cpiofs.c
@@ -0,0 +1,144 @@
+/*
+ * Copyright (C) 2016 Synthetel Corporation - All Rights Reserved
+ * Author: Shao Miller <syslinux@synthetel.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+ * Boston MA 02111-1307, USA; either version 2 of the License, or
+ * (at your option) any later version; incorporated herein by reference.
+ */
+
+#include <fs.h>
+
+#define TODO 0
+
+static int cpio_fs_chdir(struct fs_info *fs_info, const char *new_dir)
+{
+ (void)fs_info;
+ (void)new_dir;
+ return TODO;
+}
+
+static int cpio_fs_chdir_start(void)
+{
+ return TODO;
+}
+
+static void cpio_fs_close_file(struct file *file)
+{
+ (void)file;
+}
+
+static int cpio_fs_copy_super(void *buf)
+{
+ (void)buf;
+ return TODO;
+}
+
+static uint32_t cpio_fs_getfssec(struct file *file, char *buf, int blocks,
+ bool * have_more)
+{
+ (void)file;
+ (void)buf;
+ (void)blocks;
+ (void)have_more;
+ return TODO;
+}
+
+static struct inode *cpio_fs_iget(const char *dname, struct inode *parent)
+{
+ (void)dname;
+ (void)parent;
+ return TODO;
+}
+
+static struct inode *cpio_fs_iget_root(struct fs_info *fs_info)
+{
+ (void)fs_info;
+ return TODO;
+}
+
+static int cpio_fs_init(struct fs_info *fs_info)
+{
+ (void)fs_info;
+ return TODO;
+}
+
+static void cpio_fs_mangle_name(char *dst, const char *src)
+{
+ (void)dst;
+ (void)src;
+}
+
+static int cpio_fs_next_extent(struct inode *inode, uint32_t lstart)
+{
+ (void)inode;
+ (void)lstart;
+ return TODO;
+}
+
+static int cpio_fs_open_config(struct com32_filedata *filedata)
+{
+ (void)filedata;
+ return TODO;
+}
+
+static int cpio_fs_readdir(struct file *file, struct dirent *dirent)
+{
+ (void)file;
+ (void)dirent;
+ return TODO;
+}
+
+static int cpio_fs_readlink(struct inode *inode, char *buf)
+{
+ (void)inode;
+ (void)buf;
+ return TODO;
+}
+
+static size_t cpio_fs_realpath(struct fs_info *fs_info, char *dst,
+ const char *src, size_t buf_sz)
+{
+ (void)fs_info;
+ (void)dst;
+ (void)src;
+ (void)buf_sz;
+ return TODO;
+}
+
+static void cpio_fs_searchdir(const char *filename, int flags,
+ struct file *file)
+{
+ (void)filename;
+ (void)flags;
+ (void)file;
+}
+
+char *cpio_fs_uuid(struct fs_info *fs_info)
+{
+ (void)fs_info;
+ return TODO;
+}
+
+const struct fs_ops cpio_fs_ops = {
+ .fs_name = "cpiofs",
+ .fs_flags = FS_NODEV,
+ .fs_init = cpio_fs_init,
+ .searchdir = cpio_fs_searchdir,
+ .getfssec = cpio_fs_getfssec,
+ .close_file = cpio_fs_close_file,
+ .mangle_name = cpio_fs_mangle_name,
+ .realpath = cpio_fs_realpath,
+ .chdir = cpio_fs_chdir,
+ .chdir_start = cpio_fs_chdir_start,
+ .open_config = cpio_fs_open_config,
+ .iget_root = cpio_fs_iget_root,
+ .iget = cpio_fs_iget,
+ .readlink = cpio_fs_readlink,
+ .readdir = cpio_fs_readdir,
+ .next_extent = cpio_fs_next_extent,
+ .copy_super = cpio_fs_copy_super,
+ .fs_uuid = cpio_fs_uuid
+};