Module fs:romfs - ROM file-system

ROM file-system. This implements a file-system on top of a ROM memory image.

Index

Declarations

romfs.inc:22Constant ROMFS.HDR.IDENT.LEN

VAL INT ROMFS.HDR.IDENT.LEN

Header identity length.

romfs.inc:23Constant ROMFS.HDR.IDENT.VAL

VAL [8]BYTE ROMFS.HDR.IDENT.VAL

Header identity string.

romfs.inc:26Record ROMFS.HDR

DATA TYPE ROMFS.HDR

ROM file-system header structure.

romfs.inc:28Variable ident

[ROMFS.HDR.IDENT.LEN]BYTE

Header identity.

romfs.inc:29Variable version

BYTE

ROMFS version (current #01).

romfs.inc:30Variable blkshft

BYTE

Block size in powers of 2.

romfs.inc:31Variable nblks

INT16

Number of blocks.

romfs.inc:32Variable checksum

INT16

Checksum: sum of entire image in 16-bit words = 0

romfs.inc:33Variable rootblk

INT16

Block where root directory lives.

romfs.inc:34Variable rootlen

INT16

Bytes in root directory.

romfs.inc:35Variable spare

INT16

Spare bits.

romfs.inc:39Record ROMFS.ENTRY

DATA TYPE ROMFS.ENTRY

ROM file-system entry.

romfs.inc:41Variable stroffs

INT16

Name offset in string table (from start of image).

romfs.inc:42Variable mode

INT16

Mode and permission bits (MODE).

romfs.inc:43Variable length

INT32

Length of the entry in bytes.

romfs.inc:44Variable sblk

INT16

Starting block number.

romfs.inc:45Variable spare

INT16

Spare bits.