This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FS cdl_interface


This patch adds an cdl_interface which filesystems should
implement. From this we can tell if/how many fs there are underneath
fileio. rom/ram/jff2 now implement this interface.

        Andrew

Index: io/fileio/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/fileio/current/ChangeLog,v
retrieving revision 1.24
diff -u -r1.24 ChangeLog
--- io/fileio/current/ChangeLog	11 Nov 2002 23:58:53 -0000	1.24
+++ io/fileio/current/ChangeLog	6 Dec 2002 15:57:33 -0000
@@ -1,3 +1,8 @@
+2002-12-06  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* cdl/fileio.cdl: Added interface CYGINT_IO_FILEIO_FS which any
+	FS which FILEIO can use should implement. 
+
 2002-11-10  Nick Garnett  <nickg@ecoscentric.com>
 
 	* src/fio.h: Added macros to deal with signal handling. These will
Index: io/fileio/current/cdl/fileio.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/fileio/current/cdl/fileio.cdl,v
retrieving revision 1.9
diff -u -r1.9 fileio.cdl
--- io/fileio/current/cdl/fileio.cdl	11 Nov 2002 23:58:53 -0000	1.9
+++ io/fileio/current/cdl/fileio.cdl	6 Dec 2002 15:57:33 -0000
@@ -72,6 +72,15 @@
     compile 	   fd.cxx file.cxx io.cxx dir.cxx
     compile        -library=libextras.a misc.cxx
 
+    cdl_interface     CYGINT_IO_FILEIO_FS {
+        display       "Filesystems interfacing to FILEIO"
+        no_define
+        description "
+           Each filesystem driver which FILEIO can use implements
+           this interface. You can use this to determine if there are
+           any filesystems configured in the system." 
+    }
+
     cdl_option CYGFUN_IO_FILEIO_SELECT {
 	display          "Enable support for select()"
 	active_if        CYGPKG_KERNEL
@@ -229,5 +238,6 @@
 
 # ====================================================================
 # End of fileio.cdl
+
 
 
Index: fs/jffs2/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/jffs2/current/ChangeLog,v
retrieving revision 1.3
diff -u -r1.3 ChangeLog
--- fs/jffs2/current/ChangeLog	14 Oct 2002 15:47:12 -0000	1.3
+++ fs/jffs2/current/ChangeLog	6 Dec 2002 15:57:33 -0000
@@ -1,3 +1,7 @@
+2002-12-06  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* cdl/jffs2.cdl: Implements the CYGINT_IO_FILEIO_FS interface.
+
 2002-10-11  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* src/crc32.h (crc32): Use the CRC package for crc calculation
Index: fs/jffs2/current/cdl/jffs2.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/jffs2/current/cdl/jffs2.cdl,v
retrieving revision 1.3
diff -u -r1.3 jffs2.cdl
--- fs/jffs2/current/cdl/jffs2.cdl	14 Oct 2002 15:47:12 -0000	1.3
+++ fs/jffs2/current/cdl/jffs2.cdl	6 Dec 2002 15:57:33 -0000
@@ -67,6 +67,8 @@
     requires       CYGPKG_IO_FLASH_BLOCK_DEVICE
     requires       CYGPKG_IO_FILEIO_INODE
 
+    implements     CYGINT_IO_FILEIO_FS      
+
     compile        -library=libextras.a jffs2.c
     compile        build.c scan.c malloc-ecos.c nodelist.c nodemgmt.c readinode.c erase.c dir-ecos.c write.c gc.c read.c compr.c compr_zlib.c compr_rtime.c compr_rubin.c file-ecos.c
 
Index: fs/ram/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/ram/current/ChangeLog,v
retrieving revision 1.5
diff -u -r1.5 ChangeLog
--- fs/ram/current/ChangeLog	23 May 2002 23:01:39 -0000	1.5
+++ fs/ram/current/ChangeLog	6 Dec 2002 15:57:33 -0000
@@ -1,3 +1,7 @@
+2002-12-06  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* cdl/ramfs.cdl: Implements the CYGINT_IO_FILEIO_FS interface
+
 2002-01-25  Jonathan Larmour  <jlarmour@redhat.com>
 
 	* tests/fileio1.c (main): Check in listdir that the number of 
Index: fs/ram/current/cdl/ramfs.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/ram/current/cdl/ramfs.cdl,v
retrieving revision 1.3
diff -u -r1.3 ramfs.cdl
--- fs/ram/current/cdl/ramfs.cdl	23 May 2002 23:01:39 -0000	1.3
+++ fs/ram/current/cdl/ramfs.cdl	6 Dec 2002 15:57:33 -0000
@@ -61,6 +61,8 @@
     requires       CYGINT_ISO_ERRNO
     requires       CYGINT_ISO_ERRNO_CODES
 
+    implements     CYGINT_IO_FILEIO_FS
+
     compile        -library=libextras.a ramfs.c
 
     # ----------------------------------------------------------------------
Index: fs/rom/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/rom/current/ChangeLog,v
retrieving revision 1.7
diff -u -r1.7 ChangeLog
--- fs/rom/current/ChangeLog	23 May 2002 23:01:39 -0000	1.7
+++ fs/rom/current/ChangeLog	6 Dec 2002 15:57:33 -0000
@@ -1,3 +1,7 @@
+2002-12-06  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* cdl/romfs.cdl: Implements the CYGINT_IO_FILEIO_FS interface.
+
 2002-04-15  Bart Veer  <bartv@redhat.com>
 
 	* support/file2c.tcl:
Index: fs/rom/current/cdl/romfs.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/rom/current/cdl/romfs.cdl,v
retrieving revision 1.6
diff -u -r1.6 romfs.cdl
--- fs/rom/current/cdl/romfs.cdl	23 May 2002 23:01:39 -0000	1.6
+++ fs/rom/current/cdl/romfs.cdl	6 Dec 2002 15:57:33 -0000
@@ -60,6 +60,8 @@
     requires       CYGINT_ISO_ERRNO
     requires       CYGINT_ISO_ERRNO_CODES
 
+    implements     CYGINT_IO_FILEIO_FS
+    
     compile        -library=libextras.a romfs.c
 
     # ----------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]