/* The following functions are to convert the block contents into raw data written to disk and vice versa. (Add other formats here ;-))  */
static unsigned long scan_sync(unsigned long raw, unsigned long end)
/* The following functions are to convert the block contents into raw data written to disk and vice versa. (Add other formats here ;-))  */
static unsigned long scan_sync(unsigned long raw, unsigned long end)
{
	ushort *ptr = (ushort *)raw, *endp = (ushort *)end;
	while (ptr < endp && *ptr++ != 0x4489)
		;
	if (ptr < endp) {
		while (*ptr == 0x4489 && ptr < endp)
			ptr++;
		return (ulong)ptr;
	}
	return 0;
}