diff ffstools/tiffs-rd/struct.h @ 224:2900fe603f8a

beginning of MPFFS->TIFFS naming convention change
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Jan 2014 07:59:00 +0000
parents
children 5ceacdbd4490
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ffstools/tiffs-rd/struct.h	Sun Jan 12 07:59:00 2014 +0000
@@ -0,0 +1,40 @@
+/* actual TIFFS on-media structure */
+struct inode_flash {
+	u16	len;
+	u8	reserved1;
+	u8	type;
+	u16	descend;
+	u16	sibling;
+	u32	dataptr;
+	u16	sequence;
+	u16	updates;
+};
+
+struct journal_entry {
+	u8	status;
+	u8	objtype;
+	u16	this_ino;
+	u16	link_ptr;
+	u16	replacee;
+	u32	location;
+	u16	size;
+	u16	repli;	/* ??? */
+};
+
+/* our own struct for convenience */
+struct inode_info {
+	struct	inode_flash *flash;
+	int	parent;
+	int	type;
+	u8	*dataptr;
+	u32	offset;
+	u32	rawloc;
+	u16	len;
+	int	descend;
+	int	sibling;
+	u8	*byte_after_name;
+	/* info added from parsing the journal */
+	struct	journal_entry *jflash;
+	int	j_unlink_ptr;
+	int	j_oldver;
+};