Every file, directory and link has a header block, found through the hash table of its parent directory. Header blocks share one layout at their start and end; what lies between depends on the block’s secondary type. Offsets are for 512-byte blocks; all numbers are big-endian longs unless stated. Checksums and dates are described on the disk blocks page.
Block types
| Block | Type (offset 0) | Secondary type (offset 0x1FC) |
|---|---|---|
| Root | 2 T_HEADER | 1 ST_ROOT |
| Directory | 2 | 2 ST_USERDIR |
| Soft link | 2 | 3 ST_SOFTLINK |
| Hard link to a directory | 2 | 4 ST_LINKDIR |
| File header | 2 | −3 ST_FILE |
| Hard link to a file | 2 | −4 ST_LINKFILE |
| File extension | 16 T_LIST | −3 |
| OFS data | 8 T_DATA | – |
| Directory cache | 33 T_DIRC | – |
File header block
| Offset | Size | Name | Description |
|---|---|---|---|
0x000 | 4 | type | 2. |
0x004 | 4 | header_key | This block’s own number. |
0x008 | 4 | high_seq | How many data block pointers this block holds. Beats (1989) writes “total blocks used in file (not updated by FFS, only the old filing system)”; on the 1,888 FFS file headers reachable from the trees of the 17 FFS floppies (scripts/adf/real-disk-facts.mjs follows the tree; a scan of every block finds 2,012 FFS file header blocks, the rest being leftovers of deleted files) it equals the number of non-zero pointers in 1,887 and is 0 in one (probably an empty file), so FFS does keep it there. |
0x00C | 4 | data_size | 0 (Clévy: unused). Beats calls it “number of data blocks used for this file” and the 1985 manual “number of data block slots used”; it is 0 in all 1,888 reachable FFS file headers, and in all 3,439 scanned file header blocks (scripts/adf/real-disk-facts2.mjs: 1,427 OFS and 2,012 FFS), so the field is unused in both. |
0x010 | 4 | first_data | The first data block. |
0x014 | 4 | chksum | Block checksum. |
0x018 | 288 | data_blocks | 72 data block numbers, filled from the end: the first data block is at 0x134, the second at 0x130, and so on. |
0x138 | 4 | – | Unused. |
0x13C | 2 + 2 | UID, GID | User and group IDs (used by multi-user systems). Third-party source only; Commodore’s Beats article lists this long as spare: both readings. |
0x140 | 4 | protect | Protection bits. |
0x144 | 4 | byte_size | The file’s size in bytes. |
0x148 | 1 | comm_len | Comment length. |
0x149 | 79 | comment | The file’s comment (its “file note”). |
0x198 | 12 | – | Unused. |
0x1A4 | 12 | days, mins, ticks | Last change (Clévy, ADFlib); the 1985 manual and Beats call it the creation date: a source conflict. |
0x1B0 | 1 | name_len | Name length, at most 30. |
0x1B1 | 30 | filename | The name. |
0x1CF | 5 | – | Unused. |
0x1D4 | 4 | real_entry | 0 (used in link blocks). |
0x1D8 | 4 | next_link | FFS: the first hard link to this file (newest first); 0 if none. |
0x1DC | 20 | – | Unused. |
0x1F0 | 4 | hash_chain | The next entry in the same hash slot of the parent; 0 at the end. |
0x1F4 | 4 | parent | The parent directory’s header block. |
0x1F8 | 4 | extension | The first file extension block, for files with more than 72 data blocks; 0 otherwise. |
0x1FC | 4 | sec_type | −3. |
A file extension block has the same frame (type 16, header_key,
high_seq, checksum at 0x14, 72 more data block numbers from the end of the
table), unused space, then parent (the file header) at 0x1F4, the next
extension at 0x1F8 and −3 at 0x1FC.
Data blocks
Under FFS a data block is 512 bytes of the file and nothing else. Under OFS it has a 24-byte header and 488 bytes of data:
| Offset | Size | Name | Description |
|---|---|---|---|
0x00 | 4 | type | 8 (T_DATA). |
0x04 | 4 | header_key | The file header block. |
0x08 | 4 | seq_num | This block’s position in the file, from 1. |
0x0C | 4 | data_size | Bytes of data used, at most 488. |
0x10 | 4 | next_data | The next data block; 0 for the last. |
0x14 | 4 | chksum | Block checksum. |
0x18 | 488 | data | The data. |
Reading a file
FFS has one way: take the data block numbers from the file header’s table (the first at 0x134, then downwards to 0x018, high_seq of them), then from each file extension block in turn (the header’s extension, then each block’s extension, 0 ends the list). A data block holds nothing but data
(Beats: so that the controller can transfer it by DMA straight to the caller’s buffer); if a header or extension block cannot be read there is no way to find the later data blocks (Clévy).
OFS has two ways, because every data block names the next one: either the table way above, or follow first_data (header 0x010) to the first data block and then next_data (0x10) in each data block until it is 0 (Clévy, section 4.4; the 1985 manual describes the same chain: “the last data block has a forward pointer of zero”).
Each OFS data block also carries the header block’s number, its own sequence number (from 1) and its data size, so a damaged OFS disk can often be put together from the data blocks alone; Clévy: “the OFS is more robust than FFS, but slower and can store less data on disk”. The 1985 manual says that normally all data blocks but the last are full (block size − 24 bytes in the present layout).
The empty file. A file with no data is a file header alone: byte_size 0, high_seq 0 and no data block numbers in the table (Clévy, section 4.4).
Size. byte_size is a 32-bit number, so a file cannot be larger than 4 GB, which the disk offsets limit too (see the 4 GB limit). How many blocks a file needs follows from the file system: an OFS file of n bytes needs ⌈n ÷ 488⌉ data blocks, an FFS file ⌈n ÷ 512⌉, and one extension block for every 72 data blocks beyond the first 72 (our arithmetic from the tables).
Links exist only under FFS is Clévy’s statement (section 4: “Links are only supported under FFS”). None of the implementations read (Linux affs, AROS afs, ADFlib) tests for it in the code that creates or follows links, so we cannot confirm it as an on-disk rule; the sources that define the link blocks do not mention OFS at all.
Writing, deleting and renaming
These sections come from Clévy’s “Advanced information” and are checked against the code of ADFlib, AROS’s file system and the Linux driver, which show the same steps; no Commodore text describes them beyond the disk editor passage quoted below.
- Order of the blocks of one file. Clévy: the file header is written first, then the data blocks its table holds. FFS then writes all extension blocks, then all remaining data blocks: header → data blocks → all extension blocks → all remaining data blocks. OFS writes each extension block followed by its own data blocks: header → data → extension → data → extension → data. He guesses that this difference is the main reason FFS is faster. The order in which blocks are chosen is the bitmap allocation order. This is how a new file typically lies on a disk, not a rule for reading.
- Deleting. Only two things change: the entry’s block number is cleared from the directory’s hash table (or the previous entry’s
hash_chainis set to the deleted entry’s ownhash_chain), and the bitmap marks the header, extension and data blocks free. The blocks themselves are not cleared (Clévy). ADFlib’sadfRemoveEntrydoes exactly this (and refuses a non-empty directory); the Commodore manual of 1985 describes deletion the other way, as a repair: to delete a file whose header makes the restart fail, clear its slot in the hash table with the disk editor DISKED and correct the checksum, because “the blocks that the file used in error become available once more after the RESTART process has successfully scanned the disk”. - Undeleting is therefore possible while the blocks have not been used again: find the old header block, put its number back into the hash table (or chain) of its directory, mark its blocks used again in the bitmap and fix the checksums. Clévy: after a delete nothing should be written to the disk, because the blocks that were just freed are the first to be reused. Clévy’s list of what ADFlib can do includes undelete for files and directories (section 10); its code was not read for that.
- Renaming (Clévy, three steps): compute the new hash value; move the first block pointer from the old hash table index to the new one; change the name in the header block. Read as a recipe that is incomplete in two places that ADFlib’s
adfRenameEntryand the Linux driver handle: the entry must be unlinked from its old chain (the previous entry, or the table slot, gets the entry’shash_chain), its ownhash_chainreset to 0, and then added to the chain of the new slot; the checksum of every block written must be corrected, and the parent’s date updated. Beats adds a use for this: an FFS chain that is not sorted makes files vanish from a directory listing (“ExNext”) but they can still be opened by name, and renaming one away and back sorts the chain again.
Directory block
Like the file header, but the table at 0x18 is a hash table of the directory’s
entries rather than data blocks; there is no size; the date is the last access, not the last change (Clévy: “last access date”; ADFlib’s adf_blk.h comments the directory block’s date “last access”, where the file header’s date is the last change);
next_link (0x1D8) lists hard links to the directory; extension
(0x1F8) is the first directory cache block under FFS with the cache; and
sec_type is 2.
Links
- Hard link (
sec_type−4 to a file, 4 to a directory): the common frame with protection bits, comment, date and name, andreal_entry(0x1D4), the header block of the real file or directory;next_link(0x1D8) chains the links to the same target. - Soft link (
sec_type3): the path of the target as a zero-terminated string from0x18to0x137, so up to 287 characters and the zero byte (288 bytes), then the common frame: UID and GID unused, protection at0x140, the comment at0x148, the date at0x1A4, the name at0x1B0, thenhash_chain,parentandsec_type3. A soft link has noreal_entryornext_link.
The field size was disputed, and is now sourced. An earlier version of this page said 288 bytes, and a check against ADFlib’s
adf_blk.h found realName[64] at that place. Both are real, but they are not the same thing. Clévy’s table gives the
target as BSIZE − 224 − 1 characters, “for floppy disk: size = 288 − 1”; the AROS file system’s block layout
(rom/filesys/afs/afsblocks.h) runs the symbolic name from long 6 (byte 0x18) to the long at BSIZE − 51 longs, which is the same
end. ADFlib declares only 64 bytes for its own realName and then r2[83] longs of reserved space up to the date, so 64 is that library’s
declared limit, not the on-disk field. We take the 288-byte field from two sources that agree; neither is Commodore’s own text.
Soft links were taken out of AmigaDOS 3.0 as “terribly broken” (Clévy’s words).
Long names (DOS6 and DOS7)
The flag byte values 6 and 7 are the long-name file systems: DOS\6 is OFS and DOS\7 is FFS, both with international
characters (amitools’ DosType.py names them “ofs+intl+longname” and “ffs+intl+longname”; it treats the directory cache types 4 and 5 and these
two as values, not as combinations of bits). Only file and directory headers change; the rest of the block keeps the layout above.
| Offset | Size | Name | Description |
|---|---|---|---|
0x148 | 112 | name and comment | The name as a length byte and characters, immediately followed by the comment the same way. This replaces the 80-byte comment field at 0x148, the unused bytes after it and the name_len/filename fields at 0x1B0. |
0x1B8 | 4 | comment block | When the name and comment do not fit together (their lengths add to more than 110 in amitools) the comment length is 0 and this is the block number of a comment block; otherwise 0. |
0x1C4 | 12 | days, mins, ticks | The date moves here (BSIZE − 60), from 0x1A4. |
A comment block (type 64) holds the comment as a length byte and up to 79 characters at 0x18, with its own block number at 0x04,
the header block of the entry at 0x08 and a checksum at 0x14. The hash function is unchanged (amitools hashes long names the same way); a name
may be up to 110 characters in amitools’ check (the real limit on a given AmigaOS version may be lower: not verified). This section was first written from amitools’
fs/block/EntryBlock.py, CommentBlock.py and DosType.py (raw source) and is now confirmed field by field by Olaf Barthel’s DCFS and LNFS Low Level Data Structures (the AmigaOS wiki; Barthel wrote the long-name mode in 2001 for AmigaOS 4): the merged name-and-comment field, its 112 bytes,
the comment block number, the comment block (type 64: own number, header key, 80 bytes of comment, “only 80 characters … including the length byte”, since the AmigaDOS API allows 79) and the root block’s count and DOS type. Barthel adds: the name and comment go in the merged field only if both fit; an empty comment there does not mean no comment, the comment may be in a comment block (number
in CommentBlock; 0 means none); the hash function is unchanged and is always the international one; the root directory is unaffected (its name stays at 30 characters); and there is no directory cache variant of long names (“no DCFS variant of the LNFS mode”). Barthel’s examples: name barney with comment fred is stored as [6]barney[4]fred; wilma with no comment as [5]wilma[0].
He also says a converter could change every entry block to the new layout without re-hashing or allocating blocks. The limit of 107 characters per name that Barthel quotes for directory listings is for dos.library’s examine calls, not the on-disk limit; the on-disk space allows a name of up to 110 characters (amitools’ test) when the comment is empty, as the merged field has 112 bytes for two length bytes and both strings.
No real DOS6 or DOS7 disk was available, and the viewer was tested only on disks built from this description.
A third source now agrees with the layout: the FastFileSystem handler by Stefan Reinauer (2026, core/fs.c, release v0.2, third-party, an implementation and not Commodore’s file system) reads and writes DOS\6 and DOS\7 with the name and comment as consecutive length-prefixed strings in 112 bytes at BSIZE − 184 (0x148), the comment block number at BSIZE − 72 (0x1B8), the date at BSIZE − 60 (0x1C4) and a comment block of type 64 with its own number, its header and the comment at byte 24; its limits are a name of up to 107 bytes (new names up to 106), a comment of up to 79 and name plus comment of up to 110 bytes for the inline form. Its pull requests state that the images it checked, DOS6 and DOS7 volumes written by Hyperion’s FastFileSystem 47.4, were read back identically by that handler and by amitools, and that amitools’ comment blocks match FastFileSystem 47.4’s “field for field”; the images themselves are not published, so none could be saved and read here.
The root block of a long-name volume differs too: amitools’ RootBlock.py keeps the number of used blocks at 0x1D4 and the volume’s DOS type (DOS\6 or
DOS\7) at 0x1F0, as described in the root block table
(rootblock_tracks_used_blocks in DosType.py is true for exactly those two types).
Link blocks on a long-name volume. amitools has no link block class, but Barthel says the changed part of the block, the part between his two lines of dashes (name and comment, the comment block number and the date, 0x148 to 0x1CF), “is common to all directory entries, i.e. directories, files, hard links and soft links”.
So hard and soft link blocks take the same long-name fields as the others. The fields that belong to links alone lie outside that part: a hard link’s real_entry (0x1D4, inside the two unused longs Barthel shows at 0x1D0) and next_link (0x1D8, his FirstLink), and a soft link’s target path (0x18 to 0x137), so they stay where
the table above puts them. That last step is our inference from Barthel’s layout of the directory block; Barthel does not draw a link block, and no disk was available.
Directory cache
Disks with the directory cache (DOS types 4 and 5) keep a summary of each directory in
cache blocks, so a listing needs fewer reads. Olaf Barthel’s note on the AmigaOS wiki (not Commodore’s text) calls it the Directory Caching File System (DCFS) and the blocks “directory list blocks”: it was added to the ROM file system in Kickstart 3.0 (1992) by Randell Jesup, and every directory, root included, must have a list (the field at 0x1F8 of its block, never 0).
Each entry is a copy of the name, comment, size, date and protection of one entry of the directory, so a listing needs only the list blocks and not one block per file.
| Offset | Size | Name | Description |
|---|---|---|---|
0x00 | 4 | type | 33. |
0x04 | 4 | header_key | This block. |
0x08 | 4 | parent | The directory it describes. |
0x0C | 4 | records_nb | Number of records. |
0x10 | 4 | next_dirc | The next cache block; 0 for the last. |
0x14 | 4 | chksum | Block checksum. |
0x18 | 488 | Records | Packed records, below. |
| Offset | Size | Name | Description |
|---|---|---|---|
0 | 4 | header | The entry’s header block; for a link, the link block itself (Clévy: “the link block for a link”), not the block it points to. |
4 | 4 | size | File size; 0 for directories and links. |
8 | 4 | protect | Protection bits of the entry (Barthel: “protection bits for this file/directory”). Clévy: “0 for a link ?”, with his own question mark; Barthel says the entry is a copy of the block it names, which for a link is the link block, but does not say what that block’s protection field holds. Real image (round 11, ADFlib’s testffs.adf, origin unstated, and test_link_chains.adf): every hard and soft link block holds 0, including a hard link to a directory whose own protection is 2 (hlink_dir2 to dir_2) and one to a file whose protection is 4 (file_5u to file_1a), so a link block does not copy the protection of its target on these disks; which AmigaOS release wrote them is not known. |
12 | 2 + 2 | UID, GID | Owner. |
16 | 6 | days, mins, ticks | The date, as three 16-bit numbers. |
22 | 1 | type | The entry’s secondary type. |
23 | 1 | name_len | 1 to 30. |
24 | n | name | The name. |
| 24 + n | 1 | comm_len | 0 to 22. |
| 25 + n | c | comment | The comment, then a padding byte if needed to keep the next record on an even offset. |
Record size. Clévy’s heading for the record is “26 ≤ size (in bytes) ≤ 77”: 25 bytes of fixed fields plus the name (1 to 30) plus the comment (0 to 22), so 26 to 77 without the padding byte, which makes it 78 when the sum is odd. amitools’ DirCacheBlock.py
(get_size) computes a record as 25 + name length + comment length rounded up to an even number, starting at offset 24 of the block, and treats a record that does not lie wholly inside the block as an error; it keeps its UID and GID as two zero 16-bit values when it writes.
Both sources agree with the table, and so does Barthel’s description, which comes from someone who worked on the file system itself:
- The block begins with six longs: type, own number, the directory it belongs to, the number of entries, the next block of the list (0 ends it) and the checksum. Barthel’s type 33 is
TYPE_DIRLIST_REV1, “the only form which should be used”; type 32 (REV0) was a short-lived precursor from while Kickstart 3.0 was being written: the same, but its entry has no owner (UID/GID) long. The number of entries must equal the entries present. - An entry is a fixed part of 23 bytes (block number, size, protection, owner as one long, the date as three 16-bit numbers “truncated … so the date range is restricted to 179 years”, then the type byte), then the name and the comment as length-prefixed strings with no terminating zero, then one zero padding byte if the total is odd. If there is room left after the last entry, the list is ended by a zero long (a key of 0).
- No garbage collection: when entries are removed from a block no neighbouring blocks are merged, and an empty list block is kept and its space is not reclaimed until the (empty) directory is deleted. A rename or comment change that makes an entry too big for its block needs a new list block, or the change is undone if the disk is full.
- Keeping the cache consistent is the job of the validator, which needs two passes on such a volume (first find which blocks are in use, then rebuild the cache) and so takes at least twice as long. Updates take longer than on the same volume without a cache, and during one the structures are briefly inconsistent.
The cache block of a blank disk is on the disk blocks page. What real cache blocks show (round 11, two real DOS5 and DOS4 volumes: ADFlib’s testffs.adf, of unstated origin, and the DOS4 and DOS5 partitions that AmigaOS 3.1 formatted on a590_WD93028XA_6parts.hdd; checked by parser-test/test-adf-real-11.mjs): records start at offset 24 and each takes 25 bytes plus the name and the comment, rounded up to an even number; a record never crosses a block (the root of testffs.adf holds 12 records to offset 480 in its first block and the 34-byte record that would end at 514 starts the second); the blocks of a directory are chained through the long at offset 16 and each has type 33, its own number as key and the directory as parent; every record carries the header’s block number, protection, size (0 for directories and links), date and secondary type, and the two long words after the protection are 0; the records are not in hash table order; and a record can be older than its header (in testffs.adf the records of the three directories same_hash, same_hash2 and same_hash3 have older dates than the headers). An empty directory has one cache block with no record there, and two chained empty blocks on the directories Trashcan that 3.1 made on its fresh volumes. What decides when a file system splits a directory, whether it reuses emptied blocks and when it refreshes a record is still not described: two samples cannot show it and no Commodore text was found.
Name hashing
A directory finds a name through its 72-slot hash table:
- h = length of the name.
- For each character: h = (h × 13 + upper-case(character))
AND
0x7FF. - The slot is h mod 72.
Upper-casing maps only a–z on ordinary disks; in
international mode (DOS types 2 to 5) it also maps the Latin-1 letters 224–254 except
247 by subtracting 32. Entries that share a slot are chained through
hash_chain, and names are compared without regard to case.
Order within a chain. Clévy’s two statements differ. In section 4.2 (anchor p422) a new entry whose slot is taken is stored at the tail of the chain
(“the addition is made at the tail, not the head”) and he adds “Jorg tells the list is instead sorted by block number”; in his section 8, “Advanced information”, he states flatly that under FFS the hash chains are sorted by block number.
A Commodore text now settles most of it: Steve Beats’ 1989 Amiga Mail article says “hash chains MUST be sorted for FFS”: the old file system “sticks the new header at the head of the list, while FFS merges the new header into the list in ascending block order”, and an unsorted FFS chain makes files “disappear when ExNexting a directory”
(they can still be found by name, and renaming a file away and back re-sorts the chain). So on FFS the chain is in ascending block order (Beats; Clévy, section 8), which is a rule for a writer and a reason to read the whole chain even so. For OFS the sources differ: Beats says a new entry goes at the head; Clévy (section 4.2), ADFlib’s
adfRenameEntry and the Linux driver’s affs_insert_hash append at the tail. Real disks: in the 28 floppy images read (11 OFS, 17 FFS) every hash chain with two or more entries is in ascending block order: 148 of 148 on the OFS disks and 215 of 215 on the FFS disks, none descending or mixed. That agrees with Beats for FFS. For OFS it
does not show head insertion (which would usually give descending numbers when blocks are handed out in rising order); it fits tail insertion or sorting, which the disks cannot tell apart. A reader should accept any order; the viewer follows the chain as it finds it.
A second Commodore text and a larger count (round 9). The AmigaDOS Manual, 3rd edition (Bantam, 1991, Chapter 9 “The Filing System”, in the part titled “The Technical Reference Manual”) says the same as Beats, in nearly the same words: “One major difference between FFS and the old filing system is that hash chains must be sorted for FFS … The old filing system sticks the new header at the head of the list, while FFS merges the new header into the list in ascending block order” (it also says the old file system is “the filing system used in V1.2 and earlier” and FFS “the newer, faster filing system used in V1.3 and all later versions”). So two Commodore texts say OFS inserts at the head. The disks were counted again over a larger set (scripts/adf/hash-chain-order.mjs, the 975 real DMS files unpacked by this site’s own unpacker, 863 volumes with an OFS boot block and 57 with FFS): of 5,227 OFS hash chains of two or more entries 4,789 (91.6%) are ascending, 305 descending and 133 in another order; of 4,174 two-entry OFS chains 3,887 ascend and 287 descend; of 231 FFS chains 230 ascend and 1 descends. Head insertion into rising block numbers would give descending chains, so what wrote most of these disks did not insert at the head; the descending and mixed chains (8.4%) are what head insertion, or a tail insertion of a block number lower than the one before it, would leave. These images are mostly scene and game disks, mastered or copied by tools, so they cannot show what the ROM file system itself did, and the order is still a conflict between two Commodore texts (about the old file system of V1.2 and earlier) and the disks. The handler of Kickstart 2.04 to 3.1.4 (What the ROM file system does) inserts in ascending order and tests no DOS type, so for that handler, DOS\0 included, the question is decided; the 1.x file system was not read. The viewer accepts any order.
Names. The characters / and : are forbidden in file and directory names, as in the volume name (Clévy: “As with volume names ‘:’ and ‘/’ are forbidden in file names”).
His list of characters that are allowed is * ! @ # $ % | ^ + & _ ( ) = \ - [ ] { } ' ; " , < > . ? and accented letters such as â and è. A days value of 0 in any date is illegal in most programs (Clévy), see
dates.
Protection bits
| Bit | Letter | Meaning |
|---|---|---|
| 0 | D | Owner: deleting is forbidden when set |
| 1 | E | Owner: executing is forbidden when set |
| 2 | W | Owner: writing is forbidden when set |
| 3 | R | Owner: reading is forbidden when set |
| 4 | A | Archived (Commodore’s dos/dos.h: “cleared whenever file is changed”; the same header says the read and write bits (3 and 2) are “ignored by old filesystem” and the execute bit (1) “ignored by system, used by Shell”) |
| 5 | P | Pure: re-entrant, may be made resident |
| 6 | S | Script: run by the shell or ARexx |
| 7 | H | Hold: Clévy: “if H+P (and R+E) are set the file can be made resident on first load” (OS 2.x and 3.0). The text does not say whether “R+E set” means the owner’s inverted read and execute bits or the rights being granted; we do not decide. Two sources say the bit is not defined: AROS dos/dos.h names the bit FIBB_HOLD (“make program resident at boot, ‘H’ bit”) and in the next comment says “Flag number 7 is not defined. It used to describe different conditions in different revisions of AmigaOS and was also misused as hidden flag. Because of this confusion, this flag should not be used!”, and Commodore’s own dos/dos.h in the Developer Kits 3.1 and 3.5 lists bits 0 to 6 and 8 to 15 and has no name for bit 7 at all (the Linux driver names it FIBF_HIDDEN, “hidden”, and ignores it). The page therefore gives both statements: Clévy’s Hold rule describes what a program did with the bit, and the headers say that nothing may be assumed of it. |
| 8–11 | D, E, W, R | The same four for the group |
| 12–15 | D, E, W, R | The same four for others |
| 16–30 | – | Reserved |
| 31 | – | Set-user-ID (MultiUserFileSystem only) |
The owner bits 0–3 are inverted: a clear bit grants the right, which is why a new
file has all four clear. The group and other bits 8–15 are the other way round: a set bit grants the right.
Sources: AROS dos/dos.h (comments: owner flags “are active-low, i.e. not set means the action is allowed”; group and
other flags “these are high-active!”), the AROS file system’s default protection for the root directory, which sets the group and other read
and execute bits, and Clévy’s table for the other three bits (“Group (E): is executable”, “(W): is writable”, “(R): is readable”).
The delete bits disagree: Clévy labels bit 8 and bit 12 “is delete protected” when set, whereas AROS lists them with the same high-active sense as the
others (set means deleting is allowed). ADFlib only names the masks. Commodore’s own header contradicts itself on the same two bits. The Developer Kit 3.1 and 3.5 dos/dos.h says “Regular RWED bits are 0 == allowed” and “NOTE: GRP and OTR RWED permissions are 0 == not allowed!”, “Group and Other permissions are not directly handled by the filesystem”
(so the file system itself does nothing with bits 8 to 15; they are only what a multi-user layer stores), yet its names for the delete bits read FIBB_GRP_DELETE 8 /* Group: prevent file from being deleted */ and FIBB_OTR_DELETE 12 /* Other: prevent file from being deleted */, the same words as for the owner’s bit 0, where set means
protected, while its names for the other six group and other bits read “file is readable/writable/executable”. Read literally, the comment makes a set bit mean “deleting prevented”, as for bit 0, and the note makes a set bit mean “allowed”; the header does not say which. No test on a real disk can decide it, because AmigaDOS’s file system does not act on these bits. We follow AROS for all six bits (set
means allowed, as the note says) and keep the two delete bits as the one point where the sources, Commodore’s header included, conflict. The viewer shows the three groups as ----rwed for the owner (a letter means allowed) and as rwed for group and other (a letter
means the bit is set, which means allowed).
What the ROM file system does
Several questions that no text answers are answered by the code itself: the filesystem resident of the Kickstart ROMs, which is the file system the Amiga ran from. The ROM files were disassembled with this site’s own 68000 decoder and the listings were read; they are kept with their sources and checksums in samples/README.md (samples/adf/rom). The versions read are the file system 36.263 (Kickstart 2.0, 36.143, A3000), 37.26 (Kickstart 2.04, 37.175), 39.27 (Kickstart 3.0, 39.106), 40.1 (Kickstart 3.1, 40.68, ROM file SHA-256 6d43840d…5707, listing ks31-40.68-fs-40.1.lst) and 46.13 (Kickstart 3.1.4, 46.143, Hyperion’s, ROM file SHA-256 f7a827e9…c396d0, listing kick-46.143-fs.lst). The addresses below are ROM addresses in the listing named. This is code, not a specification, and it is the code of one release: what it does is what the file system wrote, and the other releases are named where they were compared. The Kickstart 1.2 and 1.3 ROMs hold the older file system, which was not read.
| Question | What the code does | Where (listing) |
|---|---|---|
The date of a header (0x1A4) | One routine reads the system time and stores days, minutes and ticks into the three longs it is given. It is called when a header is created (the new file, directory or link header, after the block clear) and when a header is changed (entries added or removed, the header rewritten); three more callers were not traced. On a change it also clears bit 4 of the protection byte (the archive bit) of the header it stamps. A change to an entry stamps the entry’s own date and the date of the directory that holds it. So the date is the time of the last change, and the first change is the creation; for a directory it is the last change of its contents. No call of the routine sits on a read path (six calls in all). | 40.1: routine 0xFAA6B6; callers 0xFA8B26, 0xFA8ECE, 0xFA9D40 (not traced further), 0xFAB402 (header created), 0xFABB1C and 0xFABB4E (header and its directory changed; bclr #4 at 0xFABB0E, 0xFABB40, 0xFA8EC4) |
| Order within a hash chain | A new entry is not appended or put at the head: the routine walks the chain from the slot and puts the new header before the first entry whose block number is greater (a slot that is empty, or an entry with a greater number, ends the walk; an entry with a smaller or equal number is passed). So the chain is in ascending block number. The routine tests no DOS type, so the same insertion is used on a DOS\0 volume, which this file system also mounts. The same compare is in 37.26, 39.27 and 46.13 (unsigned there). 36.263 was not matched, its listing does not decode the same way. | 40.1: 0xFABA5E (chain walk 0xFABA76 to 0xFABA90, new header’s hash_chain set at 0xFABAB0); 37.26: 0xF9D1AE; 39.27: 0xFA2884; 46.13: 0xFAB874 |
| The directory cache: filling, splitting, deleting | The record is built by one routine (header block number, size, protection, owner as one long, the date as three words, the type byte, the name, the comment; 25 bytes plus the two lengths, padded to an even size). To add a record the file system starts at the first cache block of the directory (the long at BSIZE − 8) and appends the record after the last record of the first block that has room (the free space is the block size minus 24 minus the bytes used); if no block has room, one free block is taken, made a cache block (type 33, key, parent, next pointer) and linked at the end of the chain with the record in it. Nothing is split and no record is moved to make room. To delete a record the file system finds it by its header number, lowers the record count and moves the later records of that block down over it; the routine contains no instruction that unlinks or frees the cache block, so an emptied cache block stays in the chain (the same as Barthel’s note, “an empty list block is kept”). | 40.1: record builder 0xFAC0A4 (size 0xFAC108, next-record step 0xFAC120); add 0xFAC14E (room test 0xFAC1B4 to 0xFAC1C0, new block 0xFAC218); delete 0xFAC37A |
The protect field of a new link header | A link is made by the same routine that makes a file or directory header. It first clears the whole block, then stores the header type 2, its own key, the secondary type (−4 for a link to a file, 3 for a soft link, 4 for a link to a directory), the date and the name. Nothing in the routine writes the protection long (BSIZE − 192), so a new link header has protect 0. The only store to that long anywhere in the 46.13 file system is the long copy that rewrites a header from another, which is not on the link creation path. | 46.13: create routine 0xFAADFE to 0xFAB10E; block clear 0xFA9456 (called at 0xFAAF8E); the other store 0xFABCD2. 40.1: clear 0xFAA362 at 0xFAB3E2 |
Link headers on a long-name (DOS\6, DOS\7) volume | The long-name flag moves the name and the date, not the link fields: with the flag set the date is stored 32 bytes later (BSIZE − 60 instead of BSIZE − 92) and the name is stored 104 bytes earlier (BSIZE − 184 instead of BSIZE − 80). The target key of a hard link is stored at BSIZE − 44 and the chain of links at BSIZE − 40 whatever the flag; a soft link’s target path is copied to byte 0x18 of the header, with no flag test. When a link is made to a file the new header gets secondary type −4; when the target is not a file it gets 4. This backs the layout on this page for a long-name volume from the code of Hyperion’s file system, not from a disk. | 46.13: flag test btst #4 at 0xFAAFAA (date), 0xFAB8CA (name); link pointer 0xFAAFFA; soft link name 0xFAAFD8; chain 0xFAB0C8 to 0xFAB0DE; type 4 0xFAB0E4 to 0xFAB0EC |
| Which protection bits the file system tests | The protection long is copied whole into the information that Examine returns, and written back whole when a header is rewritten. The only single-bit tests are: bit 3 (owner read) on opening for reading, bit 2 (owner write) on opening for writing and on replacing a file (error 223 when set), and bit 0 (owner delete) on deleting and on replacing a file (error 222 when set); bit 4 is cleared on a change (see the date). Bit 7 and the group and other bits (8 to 15) are not tested anywhere in the 40.1 file system. | 40.1: 0xFA9130, 0xFA93A8, 0xFAB2E6, 0xFAB2F0, 0xFABC58 (delete, error 222, then a non-empty directory, error 216 at 0xFABC8C) |
| Which release first accepts which DOS type | The type compare in the mount path: 36.263 accepts DOS\0 and DOS\1 only; 37.26 accepts DOS\0 to DOS\3; 39.27 accepts DOS\0 to DOS\5; 40.1 the same; 46.13 also names DOS\7. So DOS\2 and DOS\3 are in the file system of Kickstart 2.04 (37.175) and not in that of Kickstart 2.0 (36.143), and DOS\4 and DOS\5 arrive with Kickstart 3.0 (39.106), as Barthel says. The first release that wrote DOS\2 or DOS\3 lies between 36.263 and 37.26: Kickstart 2.02 and 2.05 and the other 36.x and 37.x builds were not held, so that release is not named. | 36.263: 0xF99078, 0xF99080; 37.26: 0xF9A12E to 0xF9A146; 39.27: 0xFA1BF0 to 0xFA1C18; 40.1: 0xFAADB6 to 0xFAADDE; 46.13: 0xFAE372 |
The viewer does not need these rules to read a disk; they say what a writer of the same family produces, and the viewer’s checks that depend on them (a hash chain out of order, a cache record that differs from its header) report a difference and do not refuse the disk.
Where Commodore’s texts differ from this page
The tables above follow Clévy’s layout. Commodore’s own texts (the 1985 AmigaDOS Technical Reference Manual, figures 1-A to 1-E; Steve Beats, Low Level Differences Between FFS and the ROM Filing System, Amiga Mail 1989) say something different in the places below. Each is given with both readings, the source of each and what the 28 real floppy images show (scripts/adf/real-disk-facts2.mjs, which scans every block of each disk: 3,439 file header blocks, 14,725 OFS data blocks of 488 bytes among 16,148, 168 blocks of type 16). Two sets are counted in this table and the numbers below say which. Scanned means every block of the disk that has the type and the key the count asks for, whether or not the directory tree reaches it, so the leftovers of deleted files are in it. Reachable means found by following the tree from the root block (hash chains, directories, file headers, extension blocks). Counted both ways on the 28 floppies (scripts/adf/real-reachable-headers.mjs, scripts/adf/real-reachable-sizes.mjs): file header blocks, 3,439 scanned (1,427 on the 11 OFS disks, 2,012 on the 17 FFS disks) and 3,244 reachable (1,356 OFS, 1,888 FFS), so 195 are leftovers; blocks of type 16 with secondary type −3, 164 scanned and 149 reachable; OFS data blocks with a file header block as header key, 16,148 scanned and 15,425 reachable, so 723 are leftovers.
| Field | Reading A (Commodore’s words) | Reading B (this page) | Real disks |
|---|---|---|---|
File header 0x008 (high_seq) and extension block 0x008 |
1985, Figure 1-C: “Total number of data blocks in file” for the file header’s second long, and “Number of data block slots used” for the third. Figure 1-D (file list block): BLOCK COUNT is “= number of data blocks in block list”. The root block’s second long is “Highest seq number (always zero)”. Beats: HighSeq “total blocks used in file (not updated by FFS, only the old filing system)”, DataSize “number of data blocks used for this file”. |
The long at 0x008 is how many data block numbers this block holds (at most 72), in headers and in extension blocks; the long at 0x00C is unused (0). AROS names the long at 0x008 BLK_BLOCK_COUNT (third-party). |
Among the 3,439 scanned file header blocks: on every one with an extension block, 33 OFS and 58 FFS, the long is 72, the number of pointers in that header, not the file’s total; on the 1,394 OFS and 1,954 FFS headers without one it equals the pointer count; the long at 0x00C is 0 in all 3,439. In the 164 scanned extension blocks that are valid it equals the pointers in that block. The “total in file” reading therefore does not describe what AmigaDOS wrote on these disks; the 1985 wording for the extension block (“number of data blocks in block list”) does. |
OFS data block 0x00C (data_size) |
1985, Figure 1-E: “number of words of data”; “normally, all data blocks except the last are full (that is, they have a size = blocksize-6)”, six words of filing system information. Taken with the manual’s own word (a “word” there is a 32-bit long: its block is blocksize words), a full block has 122 in this field. | Beats: “number of bytes of info used in this block”. A full block has 488. | Of the 15,425 OFS data blocks reachable from the trees of the 11 OFS floppies, 14,076 hold 488 and 1,349 hold fewer (384 of them 1 to 122, 965 of them 123 to 487); every shorter one is the last block of its file, and none holds more than 488. Counting every block of type 8 whose header key is a file header block, the leftovers of deleted files included, there are 16,148: 14,725 hold 488 and 1,423 hold fewer (411 of them 1 to 122, 1,012 of them 123 to 487); none holds more, and all 74 shorter blocks that nothing reaches have a next-block pointer of 0, as a last block has. The two counts differ by the 723 unreachable blocks (649 of 488 bytes, 74 shorter). The values 1 to 122 therefore occur only in short last blocks on the reachable set, and in short blocks with a next pointer of 0 among the leftovers. The field holds bytes. The manual’s “words” are therefore not what the file system wrote (or the manual means bytes). |
| The type of a file extension block | Beats: the extension block “has the same format as the file header block (but FileName and Date are not maintained and secondary type is ST_LIST (16))”. |
1985, Figure 1-D: type T.LIST at offset 0 and secondary type ST.FILE at the last long. This page: type 16 (T_LIST), secondary type −3. (Clévy and amitools Block.py, whose is_file_ext is “type T_LIST and secondary type ST_FILE”, agree with the 1985 figure.) |
All 164 valid (scanned) extension blocks have type 16 and secondary type −3. Beats’ 16 is the type, not the secondary type; his words are read as a slip, which the disks support but do not prove. |
File header 0x138, 0x13C and 0x1D4 to 0x1EF |
Beats struct FileHeaderBlock: Spare1 and Spare2 (“Not used, must be set to 0”) between the data block table and Protect; Spare3[7] (“not used, must be set to 0”) before HashChain. 1985, Figure 1-C: one Spare box at SIZE-50, and the file name field running from SIZE-20 to the hash chain at SIZE-4: sixteen longs, 0x1B0 to 0x1EF. Beats’ structure also leaves out the byte size and the comment (as printed it adds up to 104 longs of 128, our arithmetic), so it is an abbreviation. |
UID and GID at 0x13C (two 16-bit numbers), real_entry at 0x1D4 and next_link at 0x1D8, and the rest to 0x1EF unused. These fields are in third-party sources only, below. |
All five of those longs (0x138, 0x13C, 0x1D4, 0x1D8 and 0x1DC to 0x1EF) are 0 in all 3,439 scanned file header blocks: there is no owner and there are no hard links on these disks, so they cannot decide between the readings. The two readings agree for a header where the fields are zero and differ only for a header that has an owner or a link. |
Described from third-party sources only
No Commodore text found has the items below; each is described completely from the sources named and is third-party source only. File names are in samples/adf/sources; none of these features occurs on the 28 real floppies, so the viewer’s support for them was tested on images built from these descriptions.
| Item | Layout and rules | Sources |
|---|---|---|
| Hard link block (secondary type 4 to a directory, −4 to a file) | Type 2, own number, checksum at 0x14; protection at 0x140, comment (length byte and up to 79 characters) at 0x148, date at 0x1A4 (ADFlib comments it “last access”), name at 0x1B0 (length byte, up to 30 characters); real_entry at 0x1D4: the header block of the real file or directory; next_link at 0x1D8: the next link to the same entry; hash chain 0x1F0, parent 0x1F4, secondary type 0x1FC. The real entry’s own next_link starts the chain, newest first (FFS, Clévy). A directory cache record for a link names the link block itself. |
ADFlib adf_blk.h struct AdfLinkBlock (realEntry /*1d4*/, nextLink /*1d8*/, secType == -4, 4, 3); AROS afsblocks.h (BLKO_ORIGINAL −11 and BLKO_LINKCHAIN −10 longs from the end, which are 0x1D4 and 0x1D8; hard link name BLKO_HARDLINKNAME_START −20 to −13); Linux amigaffs.h struct affs_tail (original, link_chain); Clévy section 4. |
| Soft link block (secondary type 3) | The target path as a zero-ended string from 0x18 to 0x137 (up to 287 characters), then the common tail with the name, comment, date and parent; no real_entry or next_link. Details and the 64-byte disagreement with ADFlib are under Links. |
AROS afsblocks.h (BLK_SYMBOLICNAME_START 6, BLKO_SYMBOLICNAME_END −51); Linux amigaffs.h struct slink_front (symname[] after six longs); Clévy (288 − 1); ADFlib realName[64]. |
| Owner: UID and GID | The long at 0x13C of file and directory headers is two 16-bit numbers, user id then group id (zero on a volume not written by a multi-user system); the long before it, 0x138, stays unused. Bit 31 of the protection long is set-user-id (multi-user file system only). Directory cache records carry the same two numbers at record offset 12. The viewer shows the field as “Owner”. |
Linux amigaffs.h struct affs_tail (spare1, __be16 uid, __be16 gid, protect) and inode.c (a 0 means “the mount’s default user or group”, and 0xFFFF on a multi-user volume means root); AROS afsblocks.h (BLKO_OWNER −49, one long); Clévy’s file header table; the id muF\x is under disk blocks. |
| DOS6 and DOS7 file, directory and link blocks | The merged name-and-comment field at 0x148 to 0x1B7, the comment block number at 0x1B8 and the date at 0x1C4, as in Long names. For link blocks Barthel says the changed part is common to all four entry kinds; that the link-only fields (real_entry, next_link, the soft link text) stay where they are is our inference, as the page says there. |
Barthel, DCFS and LNFS Low Level Data Structures (wiki-dcfs-lnfs.html); amitools EntryBlock.py, DosType.py. |
| Directory cache blocks (type 33) | As in Directory cache: six longs, then packed records, each with the header block, size, protection, owner, date (three 16-bit numbers), type byte, name and comment; every directory has a chain of them, pointed to from 0x1F8. Barthel names the blocks “directory list blocks”. |
Barthel (same page); Clévy section 4; amitools DirCacheBlock.py; ADFlib struct AdfDirCacheBlock (records[488]); the Linux driver mounts these volumes read-only (super.c). |
| Comment blocks (type 64) | Type 64, own number at 0x04, the entry’s header block at 0x08, checksum at 0x14, the comment as a length byte and up to 79 characters from 0x18 (Barthel: 80 bytes including the length byte). Used on DOS\6 and DOS\7 when the comment does not fit beside the name. |
amitools CommentBlock.py and Block.py (T_COMMENT = 64); Barthel. |
| Name rules: forbidden characters and day 0 | / and : are not allowed in names; a date whose days is 0 is illegal in most programs. |
Clévy (the sentence “As with volume names ‘:’ and ‘/’ are forbidden in file names” and the note on a zero day value). |
What the viewer checks and shows
- Directory cache. On a
DOS\4orDOS\5volume the cache chain of every directory is followed from0x1F8and each block checked (type 33, its own number, the directory as parent, checksum, records inside the block); a directory whose pointer is 0 is reported (Barthel: never 0); and the records of the chain are compared with the directory: an entry with no record, or a record naming an entry that is not in the directory, is reported. Each record is shown with its header block, size, protection, owner, date, type, name and comment. Checked on built images only; no real disk has a cache. - Owner. The 16-bit UID and GID at
0x13Care shown (built images; all 3,439 scanned real file header blocks have 0). - Protection, both readings. When bit 7, bit 8 or bit 12 is set, the field shows both readings: Hold (Clévy) or undefined (Commodore’s
dos.h), and deleting allowed (AROS, thedos.hnote) or prevented (thedos.hname, Clévy). The table’s Protection column keeps the owner letters. - Names and dates. An empty name,
/or:in a name, a length byte over the limit, and a date with day 0 or out of range are reported for every entry. - OFS data blocks. Each data block of an OFS file is checked for type 8, the file header’s number as header key, its place in the file as sequence number, a size of at most 488 bytes (and 488 unless it is the last), the next pointer from the file header’s list, and a checksum of zero over all its longs; a fault is a Problem naming the block and the file (what the viewer checks).
- Comment blocks are shown as blocks of their own with their type, keys, checksum and comment; a wrong checksum is a Problem.
- Extension chains. A file’s extension blocks are followed until the long at
0x1F8is 0. An extension pointer that names the header itself, or any block that is already a header or an extension block, is a loop: it is reported once and not followed, so no data block is listed twice because of it. The walk is bounded by the number of blocks of the disk, not by a fixed number of hops, so a file of any length is read in full (built images with 6,000 extension blocks, 432,000 data blocks).
Not described
This page follows Laurent Clévy’s ADF description (read raw from a web.archive.org copy of lclevy.free.fr on 2026-11-14), checked against Commodore’s own texts where they exist (the AmigaDOS Technical Reference Manual 1985, Steve Beats’ Amiga Mail article of 1989, the Developer Kit 3.1 and 3.5 dos/dos.h) and Olaf Barthel’s note on the directory cache and long names (not Commodore’s),
ADFlib’s adf_blk.h and code, the AROS dos/dos.h and file system, amitools’ block classes, the Linux affs driver and 28 real floppy images. The Commodore texts are partial and from different years.
Known, not yet covered
- Reference: hard-link and soft-link blocks on a DOS6 or DOS7 volume: Barthel’s statement that the changed part is common to all four entry types, and our inference that the link-only fields stay where they are, are the only Commodore-side evidence; he draws no link block and no real long-name disk was available (see Long names). Round 12: the FastFileSystem handler by Stefan Reinauer (third-party source,
core/fs.c, saved with its release notes and two pull request pages) reads the link pointer at BSIZE − 44, the link chain at BSIZE − 40, the protection at BSIZE − 192, the size at BSIZE − 188, the owner at BSIZE − 196 and the hash chain at BSIZE − 16 in the long-name layout, the same offsets as the classic one; only the name, comment block and date move. That backs the inference as one implementation’s reading, but a real long-name link block from a Commodore or Hyperion file system was still not seen, so the item stays open. - Reference: the directory cache: layout, entry format and limits are from Barthel’s note and agree with Clévy, amitools and ADFlib; how a file system fills and splits cache blocks is now written by one source, ADFlib’s
adfAddInCache(adf_cache.c, third-party, an implementation and not Commodore’s file system): a new record is appended after the last record of the last cache block of the directory when its end is at most byte 488 of the data area (a record is 25 bytes plus the name and comment lengths, padded to an even length); when it does not fit, one free block is taken, made a cache block of the same directory with one record, and linked from the last block’s next pointer. Nothing is split or moved; the 1991 manual and the Developer Kits do not describe the cache at all (the manual’s figures end at the user directory block and file blocks). What the real DOS4/DOS5 file system does is therefore known only through that one implementation, and a real disk with a cache was not available. What a link’sprotectfield holds (“0 for a link ?” is Clévy’s own question) is in no source read, the 1991 manual’s hard link text included, which gives the pointer at size−11 and the chain at size−10 and says nothing of the protection long: it stays open, and the viewer shows whatever the field holds. - Reference: the sense of the group and other delete bits (8 and 12): Clévy and AROS disagree, and Commodore’s
dos/dos.hdisagrees with itself (its note says set = allowed, its names say “prevent file from being deleted”); the file system does not act on those bits, so no disk can settle it. New in round 9: the Linuxaffsdriver (amigaffs.c,affs_mode_to_prot, third-party, but written for multi-user volumes in real use) stores the group and other delete bits not inverted, sets them whenever any other bit of the same class is set, and calls the result “the delete-allow bit”: the same reading as AROS and as Commodore’s note, against Clévy’s label and Commodore’s own names. Three implementations read a set bit as “allowed”; the conflict inside Commodore’s header is not resolved by any Commodore text. See Protection bits. - Reference: the Hold bit (bit 7): Clévy’s rule against AROS’s and Commodore’s headers (undefined, “should not be used”); both are stated, neither is decided. New in round 9: the PROTECT command of The AmigaDOS Manual, 3rd edition (1991), lists seven letters (read, write, executable, delete, script, pure, archived) and no hold bit; the Linux driver names bit 7
FIBF_HIDDEN. So Commodore’s manuals and headers of 1991 to 1999 name no bit 7, Clévy names it Hold, AROS names itFIBB_HOLDand then says it must not be used, Linux calls it hidden: no source says what a Commodore file system did with it. Round 14: the 40.1 file system code never tests bit 7 or bits 8 to 15 (see What the ROM file system does), so it did nothing with them; the sense of the group and other delete bits stays open until a Commodore text or Kickstart 3.2 behaviour is seen. - Reference: the order of an OFS hash chain: Commodore (Beats) says head insertion, Clévy, ADFlib and the Linux driver say tail insertion, and all 148 OFS chains with two or more entries on the real disks are ascending, which head insertion would not usually give; the disks cannot tell tail insertion from sorting. FFS chains are ascending (Beats, the 1991 AmigaDOS Manual, real disks). Round 9: a second Commodore text (the 1991 manual) says head insertion for OFS, and a count over 863 real OFS volumes shows 91.6% of 5,227 chains ascending (see Order within a chain): the Commodore statements and the disks conflict, and the disks come from mastering and copying tools, so they cannot decide what the ROM file system wrote.
- Reference: whether the date of a file or directory header is the creation date (the 1985 manual, Beats) or the last change or access (Clévy, ADFlib): no real disk can decide. Round 9 found Commodore texts after 1989, and they disagree with each other: The AmigaDOS Manual, 3rd edition (1991) labels the date field of a file header and of an OFS directory “Creation date and time”, of an FFS user directory “when this directory was created or last modified”, and of the root “time root was last modified or a file in the root was last modified”; the
dos/dos.hof the Developer Kits (2.0, 3.1, 3.5) saysfib_Date, which Examine fills from this field, is the “Date file last changed”; the 2.0 autodoc ofExamine()says the information it fills in “includes the name, size, creation date”. Commodore’s own words are “creation” and “last changed” for the same field, so the question is open and the viewer says “date” and does not say which. - Reference: “links exist only under FFS” is Clévy’s statement alone; no code read tests for it. The 1991 manual says only that hard and soft links are “a new feature added to AmigaDOS in V2.0” and are “implemented in the filesystem as modified file header blocks”; it does not say they need FFS.
- Reference: the four places where Commodore’s texts differ from the tables here are now stated with both readings and the real-disk counts (above). What stays open: for UID and GID,
real_entryandnext_linkno Commodore text exists and no real disk has a non-zero value, so they rest on the third-party sources of the table above; and the reading of the 1985 “words” of an OFS data block is decided only by what the 28 disks show. - Viewer: the fields of file headers, directories, extension blocks, link blocks, comment blocks, directory cache blocks (every record), the owner and the long-name fields are shown, file contents are read out for OFS and FFS (checked on the Workbench disks and on the 848 AmigaDOS volumes unpacked from 975 real DMS files), and what is checked is listed under what the viewer checks and shows. The long-name, link, comment-block, owner and directory cache code was tested on images built from this page’s descriptions only; no real disk has any of them. Link blocks on a long-name volume are read with the long-name fields when they hold a name there and the old way otherwise, which is unconfirmed.