Author: stepan
Date: 2008-01-16 15:40:04 +0100 (Wed, 16 Jan 2008)
New Revision: 41
Modified:
trunk/filo-0.5/fs/filesys.h
trunk/filo-0.5/fs/vfs.c
Log:
hook up cramfs and squashfs
Modified: trunk/filo-0.5/fs/filesys.h
===================================================================
--- trunk/filo-0.5/fs/filesys.h 2008-01-16 14:19:17 UTC (rev 40)
+++ trunk/filo-0.5/fs/filesys.h 2008-01-16 14:40:04 UTC (rev 41)
@@ -170,6 +170,18 @@
int iso9660_dir (char *dirname);
#endif
+#ifdef FSYS_CRAMFS
+int cramfs_mount (void);
+int cramfs_read (char *buf, int len);
+int cramfs_dir (char *dirname);
+#endif
+
+#ifdef FSYS_SQUASHFS
+int squashfs_mount (void);
+int squashfs_read (char *buf, int len);
+int squashfs_dir (char *dirname);
+#endif
+
/* This is not a flag actually, but used as if it were a flag. */
#define PC_SLICE_TYPE_HIDDEN_FLAG 0x10
Modified: trunk/filo-0.5/fs/vfs.c
===================================================================
--- trunk/filo-0.5/fs/vfs.c 2008-01-16 14:19:17 UTC (rev 40)
+++ trunk/filo-0.5/fs/vfs.c 2008-01-16 14:40:04 UTC (rev 41)
@@ -46,6 +46,12 @@
# ifdef FSYS_ISO9660
{"iso9660", iso9660_mount, iso9660_read, iso9660_dir, 0, 0},
# endif
+# ifdef FSYS_CRAMFS
+ {"cramfs", cramfs_mount, cramfs_read, cramfs_dir, 0, 0},
+# endif
+# ifdef FSYS_SQUASHFS
+ {"squashfs", squashfs_mount, squashfs_read, squashfs_dir, 0, 0},
+# endif
};
/* NULLFS is used to read images from raw device */