Skip to content
This repository
tree: 3928e70ce5
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.505 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
CubeOS (CAT) Filesystem
General File Format Specification

Words | Usage
0x0000-0x0004 | Inode
0x0005-(n-1) | File contents
n | EOF (0x0004)

0x0001: Inode type (0x0000: unused, 0x0001: directory, 0x0002: file)
0x0002: Reserved
0x0003: Reserved
0x0004: File length (Not including inode)

The first 4 words of the file are the inode. The first of those words must contain the inode type and the last must contain the file length.
The last word of the file must be 0x0004 (EOF).
Something went wrong with that request. Please try again.