From 657e1bf66b9406cd4c18af1265443e9ebf006f39 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 26 Oct 1999 20:17:13 +0000 Subject: Added initial cut at miniIMFS which leaves out memfile and directory readdir support. The next step is to add a mount table and configure either the miniIMFS or the full IMFS at the application level. --- c/src/exec/libcsupport/include/rtems/libio.h | 2 +- c/src/exec/libcsupport/src/base_fs.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'c/src/exec/libcsupport') diff --git a/c/src/exec/libcsupport/include/rtems/libio.h b/c/src/exec/libcsupport/include/rtems/libio.h index 4cd1f3f6f6..a8c2c09090 100644 --- a/c/src/exec/libcsupport/include/rtems/libio.h +++ b/c/src/exec/libcsupport/include/rtems/libio.h @@ -306,7 +306,7 @@ typedef struct { * Structure for a mount table entry. */ -struct rtems_filesystem_mount_table_entry_tt{ +struct rtems_filesystem_mount_table_entry_tt { Chain_Node Node; rtems_filesystem_location_info_t mt_point_node; rtems_filesystem_location_info_t mt_fs_root; diff --git a/c/src/exec/libcsupport/src/base_fs.c b/c/src/exec/libcsupport/src/base_fs.c index e5f53c042b..ee342afad6 100644 --- a/c/src/exec/libcsupport/src/base_fs.c +++ b/c/src/exec/libcsupport/src/base_fs.c @@ -52,6 +52,13 @@ void rtems_filesystem_initialize( void ) init_fs_mount_table(); + /* + * mount the first filesystem. + * + * NOTE: XXX This really needs to be read from a table of filesystems + * to mount initially and the miniIMFS needs to be shaken out. + */ + status = mount( &first_entry, &IMFS_ops, -- cgit v1.2.3