view ffstools/tiffs-rd/struct.h @ 619:f82551c77e58

libserial-newlnx: ASYNC_LOW_LATENCY patch reverted Reports from Das Signal indicate that loadtools performance on Debian is about the same as on Slackware, and that including or omitting the ASYNC_LOW_LATENCY patch from Serg makes no difference. Because the patch in question does not appear to be necessary, it is being reverted until and unless someone other than Serg reports an actual real-world system on which loadtools operation times are slowed compared to the Mother's Slackware reference and on which Slackware-like performance can be restored by setting the ASYNC_LOW_LATENCY flag.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 27 Feb 2020 01:09:48 +0000
parents e7502631a0f9
children
line wrap: on
line source

/* 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 distilled info struct */
struct inode_info {
	int	ino;
	/* info from the inode record */
	int	type;
	int	descend;
	int	sibling;
	u16	len;
	u32	rawloc;
	u32	offset;
	u8	*dataptr;
	/* filled by treewalk */
	int	nparents;
	int	parent;
	/* filled by misc */
	u8	*byte_after_name;
};

/* chunk location and size info */
struct chunkinfo {
	u8	*start;
	u8	*end;
	size_t	len;
};