An ADF is the 512-byte blocks of an Amiga floppy, one after another, with no header. Its
contents are the AmigaDOS file system, OFS or FFS. Commodore never published one complete specification of the disk layout, but it did
publish pieces of it, and they are on this page next to the community description: the AmigaDOS Technical Reference Manual (1985, the original layout), Steve Beats’ Amiga Mail article Low Level Differences Between FFS and the ROM Filing System (1989), the
Amiga ROM Kernel Reference Manual: Devices (3rd edition, 1991: the boot and hard disk rules) and the dos/dos.h and dos/filehandler.h headers of the Developer Kits 3.1 and 3.5. Olaf Barthel’s
DCFS and LNFS Low Level Data Structures (AmigaOS wiki) is not Commodore’s but describes Commodore’s directory cache and the later long-name mode from the inside. The field-by-field tables follow Laurent Clévy’s The ADF File
Format, kept by the ADFlib project, and are checked against all of those, against ADFlib, amitools, the Linux affs driver and the AROS file system, and against real disks. Where they disagree the page says so.
All numbers are big-endian 32-bit (“longs”) unless stated.
Geometry
| Double density (DD) | High density (HD) | |
|---|---|---|
| Cylinders × heads | 80 × 2 | 80 × 2 |
| Sectors per track | 11 | 22 |
| Blocks | 1,760 (0–1759) | 3,520 (0–3519) |
| File size | 901,120 bytes | 1,802,240 bytes |
| Root block | 880 | 1,760 |
Block n is at byte n × 512. Blocks run sector by sector along a track, then the other side, then the next cylinder. In general the root block is (reserved blocks + highest block) ÷ 2, with 2 reserved blocks on a floppy (Clévy; the Workbench disks read here all have it at 880).
The root block formula in Commodore’s text. Beats’ 1989 article gives the root as LowerKey = LowerCyl × Surfaces × BlocksPerTrack + Reserved,
UpperKey = (UpperCyl + 1) × Surfaces × BlocksPerTrack − 1 and RootKey = (UpperKey − LowerKey) ÷ 2, with “all block numbers stored within the filing system … relative to the beginning of the partition not including the Reserved blocks”
and physical block = LowerKey + Block# − Reserved. Taken literally for a double density floppy (LowerKey 2, UpperKey 1,759) that gives 878, not the 880 of every real disk, so the printed formula is not usable as it stands (adding the reserved blocks to
its result gives 880, which equals Clévy’s formula for a partition that starts at cylinder 0; we do not claim that is what Beats meant). We use Clévy’s formula, which the real disks confirm. Beats adds that the root is placed so that the worst-case seek to it
is at most half the cylinders, and that for FFS PreAlloc is subtracted from UpperKey only after the root is computed, so it has no effect on where the root is (the same as the PART table below). Since block number 0 ends a list, block 0 can never belong to the file system, which is why at least one reserved block is needed (Beats).
Size limit. Clévy: the file system’s internal read and write commands take one 32-bit unsigned byte offset, so a disk or a file cannot be larger than 232 bytes (4 GB); a third-party patch (ffstd64) and the TD64 and NSD device extensions go beyond that. No Commodore text for the 4 GB limit was found, and the other sources read do not contradict it. Barthel’s text says block sizes can be “as large as 65536 bytes”.
Which AmigaDOS version introduced what. The sources do not agree and none is a release note. Beats (1989) writes that a Fast Filing System for hard disks “has been added to V1.3”. Clévy: FFS with AmigaDOS 2.04, and the international and directory cache modes with 3.0. Barthel: the directory cache (DCFS) was added to the ROM file system in Kickstart 3.0 (1992) by Randell Jesup, and the long-name mode (LNFS)
in 2001 for AmigaOS 4. On the 28 real floppy images read here (a limited sample, not a release history) the 1.0 to 2.04 disks are DOS\0, the 2.1 disks DOS\1, the six 3.0 disks DOS\3 (international FFS) and the six 3.1 disks DOS\1 again; none is DOS\2, DOS\4 or DOS\5.
What Commodore’s own kits and manual add (round 9). The AmigaDOS Manual, 3rd edition (1991): the old file system is “the filing system used in V1.2 and earlier versions of AmigaDOS” and the fast one “the newer, faster filing system used in V1.3 and all later versions”; hard and soft links are “a new feature added to AmigaDOS in V2.0”; the FORMAT command “normally” formats floppies with the old file system and has an FFS switch. Two Commodore texts (Beats 1989 and this manual) therefore date the Fast File System to V1.3, which is earlier than Clévy’s 2.04. The Developer Kit headers show when each disk type is first named: the 1.3 kit (October 1988) libraries/dos.h lists only ID_DOS_DISK (DOS\0), no ID_FFS_DISK; the 2.0 kit (November 1991) dos/dos.h lists ID_FFS_DISK, ID_INTER_DOS_DISK and ID_INTER_FFS_DISK with the comment “ID_INTER_* use international case comparison routines for hashing” and no directory cache type; the 3.1 kit adds ID_FASTDIR_DOS_DISK and ID_FASTDIR_FFS_DISK (DOS\4, DOS\5). What that fixes: FFS at V1.3 (two Commodore texts); the international types are named in the Release 2 kit and not in the 1.3 kit, so they date from Release 2.0 or earlier than its kit and later than the 1.3 kit; the directory cache types are named first in the 3.1 kit (Barthel: Kickstart 3.0). No text says which release first wrote DOS\2 or DOS\3 on a disk, so this is a bound from documentation, not a release note.
Boot block
Blocks 0 and 1, 1,024 bytes, on a floppy. On a hard disk partition the boot area is Bootblocks × BSIZE bytes, where Bootblocks is the field of the partition’s
DOS environment vector (the “boot blocks” entry at 0xCC of the PART block; Clévy says that since Kickstart 2.0 the number of boot blocks can be set
“independently of the number of reserved blocks” by BOOTBLOCKS in the vector). Clévy: the boot code is (DosEnvVec->Bootblocks × BSIZE) − 12 bytes,
and the checksum loop runs over BOOTBLOCKSIZE, which is 1,024 for floppies and Bootblocks × BSIZE for hard disks, so the checksum covers the whole boot area. The table below is for the 1,024-byte floppy case; the boot code field
is then 1,012 bytes.
How many boot blocks: Clévy’s two statements and the Commodore rule. Clévy’s section 6.3 says “the first two blocks of a partition contain a Bootblock”, while his sections 4.1 and 4.3 say the boot area of a hard disk partition is Bootblocks × BSIZE bytes.
They are the same rule for the usual case: the Amiga ROM Kernel Reference Manual (Devices, 3rd edition, the boot sequence) says the boot blocks are the de_BootBlocks blocks read from the beginning of the partition, de_BootBlocks × de_SizeBlock × 4 bytes, which must start with
“DOS” and pass the longword checksum with carry wraparound. A floppy has no environment vector and always has two; for a partition “two” is only the common value of Bootblocks. The same text says that when the environment vector is shorter than DE_BOOTBLOCKS or its
Bootblocks entry is zero, the partition is not booted from its boot blocks at all (it is booted through the expansion board’s boot routine, “BootPoint” booting), so there is then no boot block to check. Floppies always use the boot block method. Beats (1989) says that on hard disks no code is run from the boot block and the driver
starts DOS itself; the Reference Manual (1991) says partitions can use either method from Kickstart 2.0 on. We take the later text for what AmigaOS 2.0 and later do.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
0x00 | 3 | text | Disk type | DOS for an AmigaDOS disk. (PFS or other letters mean another file system.) |
0x03 | 1 | bits | Flags | Which variant of AmigaDOS: see DOS types. |
0x04 | 4 | uint32 | Checksum | See checksums. A bootable disk needs it correct. |
0x08 | 4 | uint32 | Root block | 880. (Written as 880 on HD disks too, though their root is at 1,760.) |
0x0C | 1012 | code | Boot code | 68000 code run at start-up if the disk is bootable; zeros otherwise. The standard routines are described below. |
| Flags | Shown as | File system |
|---|---|---|
| 0 | DOS\0 | OFS, the original file system |
| 1 | DOS\1 | FFS, the fast file system |
| 2 | DOS\2 | OFS with international mode (case folding of accented letters) |
| 3 | DOS\3 | FFS with international mode |
| 4 | DOS\4 | OFS with directory cache (and international mode) |
| 5 | DOS\5 | FFS with directory cache (and international mode) |
| 6 | DOS\6 | OFS with international mode and long names (up to about 110 characters; see long names) |
| 7 | DOS\7 | FFS with international mode and long names |
Bit 0 selects FFS and bit 1 international mode. Values 4 and 5 are the directory cache, which
implies international mode even though bit 1 is then clear, and 6 and 7 the long-name file systems, which are
international too: the sources (amitools DosType.py, which lists all eight names, and Clévy for 0 to 5) treat 4 to 7 as values and not as
independent bits. AROS dos/dos.h (read raw) names the values in its list of filesystem ids: ID_DOS_DISK to ID_INTER_FFS_DISK are
DOS\0 to DOS\3, ID_FASTDIR_DOS_DISK and ID_FASTDIR_FFS_DISK are DOS\4 and DOS\5 (“fast directory”, the directory cache), and
ID_LNFS_DOS_DISK and ID_LNFS_FFS_DISK are DOS\6 and DOS\7 (LNFS, the long-name file systems). The same list has
ID_UNREADABLE_DISK (BAD\0), ID_NOT_REALLY_DOS (NDOS), ID_KICKSTART_DISK (KICK) and
ID_MSDOS_DISK (MSD\0). The abbreviation “DCFS” (Directory Caching File System) is the name used by Olaf Barthel’s note on the AmigaOS wiki, which says the mode was added to the ROM file system by Commodore’s Randell Jesup for Kickstart 3.0 and also calls the cache blocks “directory list blocks”; the Developer Kit header calls the ids “fast directory” (FASTDIR). It is not an id in any header.
Flag values above 7 are not DOS types this page covers.
Long names change the file and directory headers, on the files and directories page; the root block of a long-name volume also holds
a count of used blocks and its DOS type, in the root block table below. Hard disk images do not start with a boot block but with a
Rigid Disk Block; the partitions inside them start with one of these boot blocks.
Boot code
How it is called. At start-up Kickstart reads the boot blocks of a floppy (always) or of a partition whose Bootblocks is not zero, checks that they start with DOS and that the checksum is right, and calls the code at offset 12 (BB_ENTRY)
with the I/O request it used for reading in A1 (its io_Offset is the start of the partition) and SysBase in A6. The code returns in D0 and A0: a non-zero D0 is a boot failure (Kickstart shows a “boot error” alert and goes on to the next boot candidate); a zero D0 means
A0 points to a function that completes the boot, which Kickstart calls once it has freed its own resources, and which is normally the start-up of dos.library (Amiga ROM Kernel Reference Manual: Devices, 3rd edition, the section “Amiga Bootstrap”).
A disk with zero in the checksum long, or without DOS, is not bootable; Kickstart then asks for another disk.
The standard 2.0 and later routine, 81 bytes at offset 12 (listing from Clévy’s section 5.2, the bytes checked against real disks; the comments are ours except the one marked Kessler):
| Code offset | Bytes | 68000 instruction | What it does |
|---|---|---|---|
| 0 | 43FA 003E | lea exp(pc),a1 | The library name expansion.library, at code offset 64. |
| 4 | 7025 | moveq #37,d0 | Version 37 (Kickstart 2.04). |
| 6 | 4EAE FDD8 | jsr -552(a6) | exec.library OpenLibrary(). |
| 10 | 4A80 | tst.l d0 | |
| 12 | 670C | beq.b error1 | The library could not be opened: skip to error1 (code offset 26). |
| 14 | 2240 | movea.l d0,a1 | The library base. |
| 16 | 08E9 0006 0022 | bset #6,34(a1) | Sets bit 6 of the byte at offset 34 of the library base. Kessler (quoted by Clévy): it tells the shell not to open its window at boot unless needed, so a black screen stays instead of an empty shell window (a 2.x feature). The Developer Kit 3.1 header libraries/expansionbase.h names bit 6 EBB_SILENTSTART and gives no description. |
| 22 | 4EAE FE62 | jsr -414(a6) | CloseLibrary(). |
| 26 | 43FA 0018 | error1: lea dos(pc),a1 | The name dos.library, at code offset 52. |
| 30 | 4EAE FFA0 | jsr -96(a6) | FindResident(): finds the resident module dos.library. |
| 34 | 4A80 | tst.l d0 | |
| 36 | 670A | beq.b error2 | Not found: fail. |
| 38 | 2040 | movea.l d0,a0 | The resident structure. |
| 40 | 2068 0016 | movea.l 22(a0),a0 | Its initialisation pointer (offset 22 of the exec Resident structure: our reading, Clévy calls it the “DosInit sub”). |
| 44 | 7000 | moveq #0,d0 | Zero: no failure. |
| 46 | 4E75 | rts | Return with A0 = the function that finishes the boot. |
| 48 | 70FF | error2: moveq #-1,d0 | Failure. |
| 50 | 4E75 | rts | |
| 52 | 646F732E6C69627261727900 | dos: "dos.library",0 | Followed by one padding byte (code offset 63), 0. |
| 64 | 657870616E73696F6E2E6C696272617279 | exp: "expansion.library" | 17 characters ending at code offset 80; the zero that ends the string is the first zero of the rest of the block. |
The rest of the 1,012 bytes are zero. The 1.x routine found on the Kickstart 1.0 to 1.3 Workbench disks and on an AROS boot disk is the second half of this one: 38 bytes, from lea dos(pc),a1 to the end of the dos.library string, with 70FF 60FA
(moveq #-1,d0, then a bra.s back to the rts) in place of the last two instructions. It has no expansion.library part.
On real disks (28 images, scripts/adf/real-disk-facts.mjs): the 81-byte routine, byte for byte and followed only by zeros, is on 8 disks (the 2.04, 2.1, 3.0 and 3.1 Install and Workbench disks); the 38-byte routine on 6 (af-boot, the 1.0, 1.1, 1.2 and 1.3 Workbench disks, and the AROS boot disk; the 1.0 disk has other data after it); the other 14 are data disks (extras, fonts, locale, storage) without either routine. On the 3.1 extras disk, opened by hand, the checksum long is zero (so it is not bootable) and block 1 holds a repeating run of longs, not code; the 1.3 extras disk has
repeated DOS\0 longs where the code would start. Both routines were checked only by their bytes; this page does not claim to have run them. The viewer names the two routines when it meets them, and on a bootable disk (correct checksum) lists the code disassembled with the explorer’s 68000 decoder by following the flow from offset 12 (an instruction per node, the library names after it as data): on the 14 real disks that carry a standard routine, the instruction offsets are exactly those of the table above (18 instructions for the 81-byte routine, 10 for the 38-byte one).
Root block
The top-level directory and the volume’s name and dates. Offsets are for 512-byte blocks.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
0x000 | 4 | int32 | type | 2 (T_HEADER). |
0x004 | 4 | int32 | header_key | 0. |
0x008 | 4 | int32 | high_seq | 0. |
0x00C | 4 | int32 | ht_size | Hash table size: 72 (block size ÷ 4 − 56). |
0x010 | 4 | int32 | first_data | 0. |
0x014 | 4 | int32 | chksum | Block checksum. |
0x018 | 288 | int32 × 72 | ht | Hash table: block numbers of the first file or directory in each hash slot; 0 empty. See hashing. |
0x138 | 4 | int32 | bm_flag | −1 when the bitmap is valid. |
0x13C | 100 | int32 × 25 | bm_pages | Block numbers of the bitmap blocks; a floppy needs only the first. |
0x1A0 | 4 | int32 | bm_ext | First bitmap extension block (large hard disk partitions only); 0 otherwise. Commodore (Beats; Barthel): the old file system has a bug in which it treats the root as if it had protection bits and writes them here, which is why partitions under the old file system are limited to about 53 MB (the 25 bitmap blocks of the root hold about 50 MB). Beats adds that the 1.3 ROM file system had bm_pages and bm_ext “reversed” and used the slots from bm_pages[24] down to [0]; all 28 real floppies read here, including the eleven OFS ones (1.0 to 2.04 and two boot disks), use slot 0 only and have bm_ext 0, and no partition image was available to check that statement for larger volumes. |
0x1A4 | 12 | date | r_days, r_mins, r_ticks | When the root directory last changed: Commodore calls it DirAltered, “the date when the root block was last modified or a file in the root block was modified” (Beats, Barthel). ADFlib labels it “creation date”: a source conflict, below. See dates. |
0x1B0 | 1 | uint8 | name_len | Length of the volume name, at most 30. |
0x1B1 | 30 | text | diskname | The volume name (no / or :). |
0x1CF | 9 | – | Unused | 0. On a DOS\6 or DOS\7 volume only the first 5 bytes (0x1CF–0x1D3) are unused: the last 4 are the used-blocks count below. |
0x1D4 | 4 | int32 | Blocks used | DOS\6 and DOS\7 only: the number of blocks in use on the volume. amitools RootBlock.py reads and writes it at the long BSIZE − 44 (_get_long(-11)), which is 0x1D4 for 512-byte blocks, and keeps 0 there for every other DOS type. This overlays the last 4 bytes of the 9-byte unused area above. Barthel’s DCFS and LNFS Low Level Data Structures (the AmigaOS wiki, by the author of the long-name mode) names it NumBlocksUsed, “total number of blocks allocated by bitmap”, and says it is valid only when the root block’s bm_flag says the bitmap is valid; a value of 0 means ignore it and count the cleared bits in the bitmap. Because it counts blocks allocated by the bitmap, and the boot blocks are not in the bitmap while the root block and the bitmap blocks are marked used, the count includes the root and bitmap blocks and excludes the boot blocks (our reading of “allocated by bitmap”; the text does not give an example). The 0x1D4 field is zero on all 28 real floppies read, which have no long-name format. |
0x1D8 | 12 | date | v_days, v_mins, v_ticks | When the volume last changed: Commodore’s DiskAltered, “any file or section of the partition was modified”. Beats adds: “FFS has a bug which prevents it from updating this correctly, the DirAltered date gets changed instead” (so an FFS volume’s v_ date may lag behind the real last change; not checked against a disk written by FFS). ADFlib labels it “last access”. |
0x1E4 | 12 | date | c_days, c_mins, c_ticks | When the volume was created (formatted): Commodore’s DiskMade, “first formatted and therefore created”. ADFlib labels it “creation date OFS”. |
0x1F0 | 4 | int32 | next_hash | 0 (Clévy: “unused”). On a DOS\6 or DOS\7 volume this long holds the volume’s DOS type instead (DOS\6 or DOS\7, 0x444F5306 or 0x444F5307): amitools RootBlock.py reads it from BSIZE − 16 (_get_long(-4)) and only trusts the used-blocks count when it holds one of those two values; it writes 0 for the other types. Barthel says the same in his own words: the field FileSystemType “repeats the signature of the first partition block” and “is zero for all other file system types”; the Barthel text also gives the long-name root block no directory cache (“there is no DCFS variant of the LNFS mode”) and says the root block itself is unchanged by long names except for these two fields, so its name stays limited to 30 characters. |
0x1F4 | 4 | int32 | parent_dir | 0. |
0x1F8 | 4 | int32 | extension | With the directory cache: the first cache block; 0 otherwise. Barthel: in a directory cache volume this field (Reserved4 of the root block, Reserved8 of a user directory block) holds the number of the first directory list block, “must never be 0” for the root and every directory. It is the field DirList in the long-name layout. |
0x1FC | 4 | int32 | sec_type | 1 (ST_ROOT). |
Bitmap
One bit per block, saying whether it is free. On a DD floppy one bitmap block covers blocks 2 to 1,759 (1,758 bits); it is usually block 881.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
0x000 | 4 | int32 | Checksum | The block checksum, here at offset 0. |
0x004 | 508 | int32 × 127 | Map | Bit set: block free; clear: block in use. Bit 0 (least significant) of the first long is the first block after the reserved ones (block 2), then upwards. |
Where the map ends. The boot blocks are not in the map: it starts at the first block after them (Clévy: “Bootblock allocation (2 for floppy, for hard disks the value can be found at
DOSEnvVec->Bootblocks) is not stored in bitmap”). A DD disk has 1,760 − 2 = 1,758 bits: 54 full longs and the first 30 bits of the 55th long (Clévy), so the last 2 bits of that long
(bits 30 and 31) belong to no block. No Commodore text says what value they must have, and Clévy does not either: his blank-disk example (section 5.1) lists every long that is not the root/bitmap one as 0xFFFFFFFF, so those two bits are set there. The 72 “unused” longs of that example
are the rest of the 127-long map after the 55th (127 − 55 = 72): they belong to no block at all, which is all “unused” means, and Clévy’s “≠ 0” is only what his example shows. What the implementations do with them settles that they carry no information:
AROS’s file system (rom/filesys/afs/bitmap.c) fills a new bitmap block entirely with 0xFFFFFFFF when it formats and, when it counts used blocks, looks only at as many bits as there are blocks; the Linux affs driver (fs/affs/bitmap.c), when it mounts a volume
read-write, clears the unused bits of the last long (“mark unused bits in the last word as allocated”), zeroes every long after it, and writes the checksum again. On the real disks read here (28 floppies) bits 30 and 31 of long 54 are set on 27 (the long reads 0xC0000000 where the last 30 blocks are in use, or 0xFFFFFFFF on three
disks whose last 30 blocks are free) and clear on one (the 1.0 Workbench disk, where the long is 0); of the 72 longs after the map, 10 disks have all of them 0xFFFFFFFF, the others a mixture, and none is all zero. A reader should therefore ignore them, and a checker should not flag them. Block 880 (root) and block 881 (the bitmap block itself) are
marked used in a blank disk: they are bits 14 and 15 of long 27 (block 880 = 2 + 27 × 32 + 14), so that long is 0xFFFF3FFF instead of 0xFFFFFFFF.
Clévy’s table is off by one. His table of block against long and bit ends with “1759 → long 54, bit 28” and “1760 → long 54, bit 29”, and then says the map is 1,758 bits “stored on 54 full filled long and the first 30th bits of the 55th long”.
Both cannot be right: block 1760 does not exist on a DD disk (blocks run to 1,759), and block n is at bit n − 2, so block 1,759 is bit 1,757, which is long 54 (the 55th, counting from 0) bit 29 (1,757 = 54 × 32 + 29). The table’s last two rows are therefore each one bit too low, and its 880 → long 27 bit 14 and 881 → bit 15
rows are right (878 = 27 × 32 + 14). This page uses the arithmetic, which the real disks confirm (on a disk whose last blocks are in use long 54 is 0xC0000000, bits 0 to 29 clear). Beats gives the same rule in words: bit 0 of long 0 is the first block after the reserved blocks (LowerKey), bit 0 of long 1 is LowerKey + 32, and the
bitmap holds only the blocks from LowerKey to UpperKey, so reserved and pre-allocated (PreAlloc) blocks are not in it; the bitmap blocks themselves are in it and marked used. He notes that read left to right as a byte stream the bits seem backwards at every 32-bit boundary, because the file system reads whole longs and uses the block number
modulo 32 as the bit; “free = 1” was chosen so that a search can skip a long that is zero (no free block in it) with one test.
Where the next block comes from. Clévy’s section 8: allocation starts at the root block, runs up to the highest block, then continues just after the boot blocks and ends at the block before the root: root → highest → boot + 1 → root − 1; freed blocks are reused first when the search meets them, so after a delete nothing should be written if
the file is to be recovered. Both open-source file systems read confirm the order and differ in where the search starts: ADFlib (adfGetFreeBlocks in adf_bitm.c) starts at the root block every time and wraps from the last block to the first after the reserved blocks; AROS’s file system (getFreeBlock in bitmap.c) remembers the last block it handled and searches on from there (up to the end of the volume if that is at or above the root, then from the first block after the boot blocks up to the root), with the comment
that all blocks before the remembered one are used, which is the same order. The Linux driver instead takes a goal block (usually next to the file’s previous block) and scans from there, wrapping around, and reserves up to 16 blocks of one long at a time. No Commodore text describes the strategy, so these are descriptions of how other implementations behave, not rules for a reader. Clévy’s guess for the purpose is to limit fragmentation.
Valid flag. Beats and Barthel: bm_flag is −1 when the bitmap is valid and 0 when it is not; if a volume is mounted with 0 the validator “kicks in” to rebuild the bitmap (the Technical Reference Manual of 1985 says the same of the whole structure: after a hardware error a disk can be patched with DISKED and “the blocks that the file used in error become available once more after the restart process has successfully scanned the disk”).
A bitmap extension block (hard disks) holds 127 more bitmap block numbers and, in its last long, the next extension block (0 for the last). It has no checksum or type.
Checksums
- Boot block: set the checksum to 0; add the 256 longs of the 1,024
bytes (on a hard disk partition: every long of the
Bootblocks × BSIZEboot area), adding any carry out of bit 31 back in at bit 0; the checksum is the bitwise NOT of the result. - Every other block (root, headers, extensions, OFS data, link and cache blocks, bitmap): set the checksum to 0; add the 128 longs, ignoring overflow; the checksum is the negative of the sum, so that the block then sums to 0.
Dates
Every date is three longs: days since 1 January 1978, mins
since midnight (0–1,439) and ticks of 1/50 second since the minute
(0–2,999). The time is the Amiga’s local time; no time zone is stored. A days value of 0 is illegal: Clévy writes that “a day value of zero is considered illegal by most
programs”. The viewer flags it as a problem, see what the viewer checks.
The root block’s r_* date is updated whenever the root directory changes, and the v_* date whenever anything on the volume changes (Clévy).
Where the sources disagree about the dates
| Field | Commodore (1985 manual, Beats 1989) and Barthel | Clévy, amitools (and this page) | ADFlib adf_blk.h |
|---|---|---|---|
root 0x1A4 | 1985: “volume last altered date and time”; Beats and Barthel: DirAltered, the root block or a file in the root last modified | r_: last change of the root directory | “creation date FFS and OFS” (cDays) |
root 0x1D8 | Beats and Barthel: DiskAltered, any change to the partition (not in the 1985 figure, whose disk name field runs over this place) | v_: last change of the volume | “last access” |
root 0x1E4 | 1985, Beats, Barthel: creation (DiskMade) | c_: creation | “creation date OFS” (coDays) |
Real disks side with the Commodore and Clévy reading. The three dates differ on the 1.3 Workbench disk (day numbers 12,835 at 0x1A4, 14,709 at 0x1D8, 9,570 at 0x1E4), so 0x1A4 cannot be the creation date; and on the 3.1 Workbench disk
(DOS\1, root at 0x6E000) 0x1A4 is day 6,030, 0x1D8 day 14,394 and 0x1E4 day 6,030. Across the 28 floppies the three values differ from one another on many disks (scripts/adf/real-disk-facts.mjs prints them); the measured facts are only that 0x1A4, 0x1D8 and 0x1E4 are three different fields and that the 0x1D8 value is later than the other two on the six 3.1 disks and on the 3.0 Install and Workbench disks. ADFlib’s comments are therefore not what AmigaDOS writes; its code still reads and writes the same offsets.
The date of a file or directory header is also named differently: the 1985 manual and Beats call the three longs at 0x1A4 of a file header (and the 1985 directory block) the “creation date”; Clévy calls it the last change for a file and the last access for a directory; Barthel’s directory block says “created or modified”;
ADFlib: a file’s last change, a directory’s last access. A real disk cannot tell these apart (a file that was never changed has all of them equal). The page and the viewer say “last change” for files and “last access” for directories, following Clévy and ADFlib, and name the others here.
A blank disk
A formatted empty floppy has three blocks that matter: the boot blocks, the root block and one bitmap block (Clévy, section 5). Everything else is free space, and its bytes are not defined.
| Block | Contents |
|---|---|
| 0 and 1 | DOS and the flag byte, then zeros: no boot code, checksum 0 (not bootable) or a correct checksum over the zeros. A bootable disk has the boot code at offset 12 and the checksum of all 256 longs (Clévy’s “1023 zero longs” cannot be right, the area after the four-byte id is 1,020 bytes, 255 longs). |
| 880 (root) | Type 2, ht_size 72, checksum, an empty hash table, bm_flag −1, bm_pages[0] = 881, the three dates, the volume name, secondary type 1; everything not named is 0. With the directory cache the long at 0x1F8 holds the cache block (882 in Clévy’s example). |
| 881 (bitmap) | Checksum, then 55 map longs: 0xFFFFFFFF except long 27, 0xFFFF3FFF (blocks 880 and 881 in use), with the last long (long 54) covering 30 blocks, then 72 longs after the map that belong to no block (see the bitmap). Clévy gives the offset of those 72 longs as 120 (0x78); 55 map longs from offset 4 end at 224 (0xE0), and 127 − 55 = 72 longs fill the block from there, so 120 is a typing error. With the directory cache, block 882 is also in use: bits 14, 15 and 16 of long 27 are clear, 0xFFFE3FFF (derived here: Clévy shows only the 880 and 881 case). |
| 882 (directory cache only) | Type 33 (0x21), its own number 882, the directory it describes (880), 0 records, next 0, checksum, then 122 zero longs (the 488 bytes of record space). Barthel: the list of records ends with a long 0 when there is room, which an empty block has from its first record position. |
Blocks 880, 881 and 882 are map bits 878, 879 and 880, that is bits 14, 15 and 16 of long 27 (27 × 32 = 864). The real floppies read here are blank only in part and none has a directory cache, so the 882 layout rests on Clévy’s example (the block number 882) and Barthel’s rules, not on a disk.
Example
00000000 44 4F 53 01 BB B0 A9 8E 00 00 03 70 00 00 00 00 DOS........p....
Reading it: DOS with flags 1, FFS; root block 0x370, 880;
no boot code. With every other long 0, the boot block sum is
0x444F5301 + 0x370 = 0x444F5671, and its bitwise
NOT gives the checksum 0xBBB0A98E. The root block itself is at byte
880 × 512 = 0x6E000.
Where Commodore’s texts differ from this page
Commodore’s texts are not one specification: the 1985 manual, the 1989 Amiga Mail article and the 1991 to 1999 headers were written by different people for different file system versions. Where one of them says something other than a table on this page, it is stated here with both readings and the source of each. Differences about the files and directories are on their page, those about hard disks on theirs.
| Field | Reading A | Reading B | What decides it here |
|---|---|---|---|
Root block 0x13C to 0x1A0: bitmap pages and the extension |
AmigaDOS Technical Reference Manual, 1985, Figure 1-A (Root Block): BMFLAG at SIZE-50 (“TRUE if Bitmap on disk is valid”), then one field “Bitmap pages … used to indicate the blocks containing the bitmap” from SIZE-49 to SIZE-24, followed by the date at SIZE-23. That is 26 longs, bytes 0x13C to 0x1A0 inclusive on a 512-byte block, with no separate extension field. |
Steve Beats, Amiga Mail 1989: BitmapKeys[25] (“A block number of 0 indicates the end of the list”) and then BitmapExtend (“If all of the BitmapKeys have been used then this will contain the block number of a disk block containing more Bitmap-Keys”). 25 pages plus the extension pointer: the same 26 longs. Beats adds that this layout is “valid for FFS only” and that the ROM file system “has these two entries reversed” and fills BitmapKeys from slot 24 down to 0 (see the 0x1A0 row above). |
The bytes are the same in both; only the meaning of the last long differs. This page and the viewer follow Beats (25 pages, then bm_ext), which is also what ADFlib (bmPages[…] at 0x13C, bmExt at 0x1A0), amitools (bitmap_ptrs and bitmap_ext_blk) and the Linux driver (bm_blk[25], bm_ext) do. On the 28 real floppies the long at 0x1A0 is 0 and one page is used, so the disks do not distinguish the readings; the viewer follows bm_ext when it is not 0. |
| The names of the file system ids | Commodore’s dos/dos.h (Developer Kits 3.1 and 3.5): ID_DOS_DISK, ID_FFS_DISK, ID_INTER_DOS_DISK, ID_INTER_FFS_DISK for DOS\0 to DOS\3; ID_UNREADABLE_DISK (BAD\0), ID_NOT_REALLY_DOS (NDOS), ID_KICKSTART_DISK (KICK), ID_MSDOS_DISK (MSD\0). No name for DOS\4 to DOS\7. |
AROS dos/dos.h adds ID_FASTDIR_DOS_DISK, ID_FASTDIR_FFS_DISK, ID_LNFS_DOS_DISK, ID_LNFS_FFS_DISK (third-party source only). |
Not a conflict: the names for 4 to 7 exist only in AROS, and the page says so where it uses them (DOS types). |
Described from third-party sources only
No Commodore text found describes the items below. Each is described completely from the sources named, which are not Commodore’s; every row is flagged third-party source only. “Real disks” means the 28 floppies read here; none of them has any of these features except where the row says so.
| Item | What the sources say | Sources (all in samples/adf/sources) |
|---|---|---|
International mode: which letters fold, and what DOS\2 to DOS\5 mean |
In the name hash and in name comparison, a to z and the Latin-1 codes 224 to 254 except 247 are mapped to upper case by subtracting 32 (the lower-case counterparts of 192 to 222; 215 and 247, the multiply and divide signs, have none). Bit 1 of the flag byte turns it on: DOS\2 is OFS and DOS\3 FFS with it; the directory cache types DOS\4 and DOS\5 and the long-name types DOS\6 and DOS\7 are international as well although bit 1 is clear in 4 and 5. Without international mode only a to z fold. Third-party source only.
The Linux driver also mounts DOS\4 and DOS\5 volumes read-only (“Dircache FS - mounting read only”). |
Clévy, section 5.4 (intl_toupper: (c>='a' && c<='z') || (c>=224 && c<=254 && c!=247)) and the flag-byte list in section 4.1; amitools FileName.py get_upper_ami_str (o >= 224 and o <= 254 and o != 247) and DosType.py is_intl; Linux fs/affs/namei.c affs_intl_toupper (0xE0 to 0xFE except 0xF7) and fs/affs/super.c (the switch that sets SF_INTL for FS_INTLOFS, FS_INTLFFS, FS_DCOFS, FS_DCFFS). |
| Multi-user file system ids | The multi-user file system writes muF and a flag byte 0 to 5 (muF\0 to muF\5), and muFS for an international FFS volume, in place of DOS; the layout is the AmigaDOS one with the owner fields (UID and GID at 0x13C of file and directory headers) used. The viewer reads such a boot block as the matching DOS type and says so. Third-party source only. |
Linux fs/affs/amigaffs.h (MUFS_FS, MUFS_OFS to MUFS_DCFFS), fs/affs/super.c (SF_MUFS), fs/affs/amigaffs.h struct affs_tail (uid, gid). |
The directory cache root field (0x1F8), comment block type 64, the long-name fields, the root block fields 0x1D4 and 0x1F0 |
Described in full on the files and directories page and in the root block table above. Barthel’s text is by the author of the long-name mode (written in 2001 for AmigaOS 4), but it is not a Commodore publication, so these rows stay in this list. Third-party source only. | Olaf Barthel, DCFS and LNFS Low Level Data Structures (wiki-dcfs-lnfs.html); amitools RootBlock.py, EntryBlock.py, CommentBlock.py (Block.T_COMMENT = 64 in Block.py), DirCacheBlock.py, DosType.py (rootblock_tracks_used_blocks). |
Hardfiles, FSHD patch flag bits, usual maximum transfer and mask, UNI\x ids |
On the hard disk page. | See that page. |
The viewer shows all of the above where the image has it: the international hash is used for DOS\2 to DOS\7 and muF volumes, directory cache and comment blocks are decoded, and the 0x1D4 and 0x1F0 root fields are shown. What the viewer checks against the tree is described in the next section.
What the viewer checks
- The bitmap against the tree. Every block the directory tree reaches (the root, every header, data, extension, comment and cache block, the bitmap blocks and their extension blocks) must be marked used, and a block marked used that nothing reaches is reported. The bitmap blocks are found from the root block’s 25 numbers and the
bm_extchain (Beats: 0 ends the list), and the reserved count, which an image does not contain, is the first of 2, 1, 3, 4 for which the root block and every bitmap block are marked used (2 on every floppy). A bitmap whose flag at0x138is not −1 is not compared (AmigaDOS rebuilds it when it mounts the volume, Beats and Barthel). The two bits after the last block and the 72 longs after the map are not looked at, because the sources and the real disks give them no meaning (the bitmap). On aDOS\6orDOS\7volume the count at0x1D4, when not 0, is compared with the number of blocks the bitmap marks used (our reading of the count, above). Result on the 28 real floppies: no difference on any of them, so the check agrees with every AmigaDOS-written bitmap read here; the same check reports a changed bit on a disk altered in memory. - Dates. A date whose
daysis 0 is reported (Clévy: illegal “by most programs”; third-party source only), and minutes of 1,440 or more or ticks of 3,000 or more (the ranges in dates). This applies to the three root dates and the date of every entry. None of the 28 real floppies has either; on the 848 AmigaDOS volumes unpacked from 975 real DMS files (scene and game disks, not Commodore’s) day 0 is common (869 day-0 reports on the run of 2026-11-19, round 10: 776 on entries and 93 on the three root dates). The disk images are the output of this site’s own DMS unpacker, so the figure depends on the unpacker too. Why the figure was 871 before round 10: the 2 entries of the difference were traced to single volumes,Utils02/Clarity16-B.DMS(directoryMidiMaps) andUtils03/Typist.DMS(directoryLektionen): the hash chains of those damaged directories lead into blocks that are not headers (type longs such as 539951836, junk names), and the viewer used to read such a block as an entry and report day 0 on it, one each, while an independent walk of type-2 headers only skipped them (776 on entries, 869 with the root dates). The viewer now does what that walk does: see “Chains” below. An independent walk of the same images that does not check the type counted 782. The figure now agrees with the independent walk on every volume (776 and 776, no volume differs). A day-0 report is a note about the disk, not a sign of damage. The same run reported 55 volumes with blocks marked used that nothing reaches, 1 with a reached block marked free and 20 whose bitmap flag is not valid. - Names. A name that is empty, contains
/or:(Clévy, third-party source only) or has a length byte over 30 (110 onDOS\6andDOS\7, amitools’ test) is reported, for the volume name and for every entry. None of the 28 real floppies has one. - Checksums. A wrong checksum is a Problem, not only a word in a row: the boot block (unless it is zero, which means “not bootable”), the root block, every file, directory and link header, every file extension block, every comment block, every bitmap block, every directory cache block and, on an OFS volume, every data block (next item). The “Root block” row still says “checksum wrong” as well.
- OFS data blocks. Every data block of every file on an OFS volume (
DOS\0,DOS\2,DOS\4,DOS\6,muFwith an even flag) is checked, and each fault is one Problem naming the block, its place in the file (“number 2 of 3”) and the file: the type long must be 8; the header key must be the file header block; the sequence number must be its place in the file counted from 1; the data size must not exceed 488 (bs − 24 on a larger block), and a block that is not the last must hold the full 488 (the 1985 manual says “normally, all data blocks except the last are full”: a short block in the middle is reported, not called invalid); the next data block must be the next one of the file header’s list, and 0 in the last; and all the longs of the block must add up to zero (the 1985 manual: “each filing system block contains a checksum, where the sum (ignoring overflow) of all the words in the block is zero”, and the data block figure lists the checksum; ADFlibadf_file_block.creads a data block the same way: type 8, size at most 488, sum over all 128 longs). The block’s bytes are still read as the file’s content, whatever the Problem says, and the Problem points at the node of the faulty data block itself, not at the file header. Result on the 28 real floppies: no Problem on any of the 15,425 OFS data blocks reachable from the trees of the 11 OFS disks (checked with a separate walk too); the only Problem on the 28 is still the boot checksum of the 1.3 extras disk. The faults themselves were tested on built images (type 7, wrong header key, wrong sequence number, size 489, a short block that is not the last, a wrong next pointer, a wrong checksum). - A bitmap that cannot be reached. When the flag at
0x138says the bitmap is valid but no bitmap block is listed (0x13Cis 0 and the extension at0x1A0lists none), the viewer reports that the bitmap is unreachable, shows a “Bitmap check” row saying the check was not possible, and compares nothing (AmigaDOS would rebuild such a bitmap, as it does when the flag is invalid). - Chains. Every chain the viewer follows (the hash chain of a slot, a file’s extension chain, a directory’s cache chain, the bitmap extension chain, and in a Rigid Disk Block the partition, file system header, load segment and bad block chains) is followed until it ends. The bound is the number of blocks of the disk, because a chain cannot be longer; a block reached twice is a loop, which is reported once (“reached twice”, “extension chain loops”, “loops at block”) and not followed further. Nothing is cut at a fixed length: chains of 6,000 blocks are followed in full (built images). A hash chain links headers. A block a hash chain points at whose type long is not 2 (a data block, a bitmap or cache block, junk from a damaged directory) is not read as an entry: it is one Problem, “The hash chain of slot s in block d points at block n, which is not a header: type t (a header has type 2)”, and the chain is not followed past it, since that block’s own next-hash long is not a chain link. Tested on built directories (junk at the head of a slot, a data block in the middle of a chain, a real header behind it that is not reached) and on the two real volumes
Clarity16-B(7 such Problems in the directory at block 882) andTypist(7 in block 1700); no entry of either reports day 0 any more. - Problems list. Every problem is listed: the first 500 are in the model, the true total is counted, and the Problems panel pages through the rest (1,201 problems on a built image are all reachable). Nothing is cut.
- Block sizes. A volume of 1,024, 2,048, 4,096 … 65,536-byte blocks (a hard disk partition; Barthel: blocks “can be as large as 65536 bytes”, the Linux
affsdriver documents 512 to 4,096) is read when a root block with a correct checksum is found for that size: at the place a root block of a volume of that many blocks can be, with type 2 and secondary type 1 in the last long and all the longs of the block adding up to zero. 512 is tried first, and is taken when none fits. On such a block the hash table (or the data block table of a header) has bs/4 − 56 entries from offset 24, every field after it is counted from the end of the block (the secondary type is the last long, the extension the one before, then parent, next hash, and so on: the 512-byte offsets plus bs − 512), a bitmap block holds bs/4 − 1 longs of bits, an extension block the same number of block numbers, an OFS data block bs − 24 bytes, and the name hash is taken modulo the table size. This is what amitools does (RootBlock.py: hash size is the block’s longs − 56 and the other fields are read at negative long offsets from the end of the block;BitmapExtBlock.py: the block’s longs − 1 numbers; read raw): ADFlib’s block structures are fixed at 512 bytes and say nothing about other sizes, and the long-name (DOS\6,DOS\7) fields, the comment block and the directory cache records are assumed to move the same way, which no source states. No real image with such blocks was available, so it was tested on built images only (1,024, 2,048 and 4,096 bytes, OFS and FFS, with directories, files over two blocks, bitmap and a data block fault). The boot area is the reserved blocks of the volume, and the boot checksum adds every long of every boot block (amitoolsBootBlock._calc_chksum), so 2 × bs bytes with the usual Reserved 2. - Reserved 1. A hardfile or partition with
Reserved1 has one boot block, and block 1 is a block of the volume. The reserved count is not in the image, so it is read from the bitmap (the first of 2, 1, 3, 4 for which the root block and every bitmap block are marked used); when that is 1 block 0 alone is the boot block and its checksum covers block 0 alone, block 1 is listed and followed like any other block (a bitmap block, a file’s data block, …), and a “Boot blocks” row says so. With an invalid bitmap flag, or no bitmap, 2 is taken, as before. - Reserved 3 and 4. The boot area is the
Reservedblocks at the start of the volume (the number of blocks reserved for boot, the DosEnvec field; the bitmap counts the blocks from the first block after them), whatever the count is: with 3 or 4 found by the rule above, blocks 0 to 2 (or 0 to 3) are the boot area, the boot block node covers all of them, the boot checksum adds every long of every one of them (amitoolsBootBlock._calc_chksum: a checksum sealed over the first two blocks only is a wrong checksum for a larger area), the bitmap is compared from block 3 (or 4), and nothing of the file system lies in the area: a pointer to one of its blocks from a file header is a Problem (“is not on the disk”), as for the two blocks of a floppy. A “Boot blocks” row says how many. Tested on built OFS and FFS volumes with Reserved 3 and 4, with a partition of a Rigid Disk Block whose DosEnvec says 3 (test-adf-big.mjs). The count is still inferred from the bitmap, never read from the DosEnvec, because a partition opens as an image of its own that carries only the bytes; where a bitmap marks the block before the root as used too, the count could be taken one too low. - Size and reading. An image up to 16 MB is read whole. A larger one (a hardfile or hard disk image can be gigabytes) is read block by block through its source and never whole: the boot block, the root block, the bitmap blocks and their extension chain, and the header, directory, extension, comment and cache blocks of the tree, through a cache of about 8 MB; what grows is kept sparse: the data blocks of a file are held as runs of consecutive block numbers (a file written in one go is one run, however large) and filed by 4,096-block range, and the set of blocks the tree reaches is kept as bit chunks of 65,536 blocks made only where a block lies, so memory follows the number of files, fragments and headers and not the size of the image (the bitmap check works 32 blocks at a time on the bitmap longs). A 64 GiB volume of 512-byte blocks with 33,026 bitmap blocks, 260 bitmap extension blocks and a contiguous 2 GiB file of 4,194,304 data blocks (58,254 extension blocks) opens in about 5 s with 77 MB read in 19,749 reads of at most 4 KB. The data of a file is read when the file is opened (a file over the 256 MB the explorer keeps of a decoded level is handed over as a windowed source read by range). The nodes of the blocks are not built at open: the tree has a virtual list of one node per block, made when it is shown. The bitmap against the tree reads the bitmap blocks and the headers only; the checksums of OFS data blocks, which cover the whole block, are checked at open while the data read for it stays under 256 MB (a “Data block check” row and a Problem say how many files were left out beyond it); a file left out is checked when it is opened or read: every data block a read takes bytes from is checked once (type, header key, sequence number, byte count, next block, checksum), and a fault found then joins the Problems list through the explorer’s late-problem call, as for an entry of a zip or rar archive past its budget, pointing at that data block’s own node (every fault is its own Problem, with no cap, and the Problems panel pages them like the open-time ones: the heading counts them; the explorer’s engine keeps up to 50,000 late problems per opened file). A file read only where it is sound reports nothing. Tested with a 327 MB function-made OFS volume of two files (154 MB checked at open, 143 MB left out with one corrupt data block: opening it reports exactly that block, once), with the same volume under a lowered budget, with 600 and 5,000 corrupt blocks in the file left out (all reported, by a whole read and by a windowed read in 4 MB pieces), and with a 2 GiB OFS file. Limit: 253 bytes (9,007,199,254,740,992 bytes, 8 PiB): a JavaScript number counts byte positions exactly only up to there; the explorer’s engine sets no limit of its own for a file opened as it is. The viewer’s earlier limit of 4 GiB is gone (its 8 bytes per block were the reason). A larger file gets one Problem and a “Not read” row stating the limit and that the directory tree, the bitmap, the files, the partitions and the block nodes were not read. The format’s own limit: a block number is a 32-bit long, so a volume names at most 232 blocks (2 TiB of 512-byte blocks, more with larger blocks); in a bigger image an “Addressable” row says that the blocks from there on cannot belong to the volume. Sparse sources (zeros but for the blocks written or made by a function, never written to disk) of 8 GiB (FFS and OFS), 64 GiB and 3 TiB are tested: the volume opens with a few reads of at most 4 KB, files and nodes near the end of the disk are reached, the free block count is exact, and a data block fault is one Problem that points at that block (
test-adf-huge.mjs,test-adf-big.mjs). An OFS file read by range finds each block’s start from the byte counts in the block headers, so the first range read of a file of millions of blocks reads every one of its block headers once. - High density. A 1,802,240-byte image (3,520 blocks) opens like a double density one, with the root block found at 1,760 by the same formula (see geometry). Only images built from this page were available, no real high density disk.
Not described
This page follows Laurent Clévy’s ADF description (read raw from a web.archive.org copy 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 ROM Kernel Reference Manual: Devices, the Developer Kit 3.1 and 3.5 headers) and Olaf Barthel’s DCFS and LNFS note (the AmigaOS wiki; not Commodore’s, Barthel wrote the long-name mode for AmigaOS 4), ADFlib, the AROS file system and headers, amitools,
the Linux affs driver and 28 real floppy images. The raw sources are kept under samples/adf/sources with their addresses, sizes and checksums in samples/README.md. The Commodore texts are partial, from different years and not always in agreement with each other or with the disks.
Known, not yet covered
- Reference: the long-name root block (used-blocks count at
0x1D4, DOS type at0x1F0) is now in Barthel’s text and in amitools, which agree; that the count includes the root and bitmap blocks and excludes the boot blocks is our reading of “allocated by bitmap”. No real DOS6 or DOS7 disk was available to confirm either. - Reference: Beats’ root block formula, taken literally, gives 878 for a DD floppy where every real disk has 880 (see Geometry); his remark that the ROM file system filled
bm_pagesfrom slot 24 down could not be checked, as all 28 real floppies use slot 0 and no hard disk partition image was available. - Reference: the directory cache blank-disk layout (block 882 and its bitmap bit) is Clévy’s example and our arithmetic, not a real disk; no source says where a formatter places the cache block.
- Reference: the 1985 manual’s 26 bitmap page longs against Beats’ 25 plus
bm_extare now stated with both readings (above); what stays open is that no disk with a non-zero value at0x1A0(a volume with more than 25 bitmap blocks) was available, so the extension chain is checked on built images only. - Reference: which AmigaDOS release first wrote the international mode (
DOS\2,DOS\3): FFS is now dated to V1.3 by two Commodore texts (Beats 1989, the 1991 AmigaDOS Manual); the international types are named in the Release 2.0 Developer Kit and not in the 1.3 kit (see “Which AmigaDOS version introduced what”); no text says which release first wroteDOS\2orDOS\3on a disk, and Clévy’s later dates (FFS with 2.04, international mode with 3.0) contradict the Commodore dates for FFS. The release itself is not stated in any source read. - Reference: the exact meaning of
bset #6,34(a1)in the 2.0 boot code rests on one correspondent of Clévy (Kessler); the header names the bit but does not describe it. The 68000 listing was read from bytes and Clévy’s listing, and the routines were not run. - Viewer: the boot block, root block and their checksums are shown and were checked on the Workbench disks and on 975 unpacked DMS images. Boot code is shown as a byte count with the two standard routines named and, on a bootable disk, disassembled by following the flow from the entry (the routines were not run; a game’s own boot code that jumps through a register or reads its own data as code is listed only as far as the flow can be followed). Bitmap blocks and bitmap extension blocks are shown field by field and checked against the tree, and the 28 real floppies agree (what the viewer checks). High density (1,760 KB) images are read as double density ones are, but only images built from this page were available. A hardfile or partition with
Reserved1 and a file system block in block 1 is now read (see “Reserved 1” in what the viewer checks), tested on built images only: no real hardfile was available.Reserved3 and 4 are given their own boot area, of that many blocks and with the checksum over all of them (built images only). What is not done: the reserved count is read from the bitmap, never from the DosEnvec, so a volume with an invalid or missing bitmap is read with two boot blocks. - Viewer: the four gaps the round 5 re-check found are closed (see what the viewer checks): a wrong root block checksum is a Problem, a valid bitmap flag with no bitmap block listed is reported, loops in every chain are reported once, and no limit is silent. What was left of the size limit in round 6 (an image over 256 MB not read at all) and in round 8 (4 GiB) is gone: an image is read block by block up to 253 bytes (see “Size and reading” in what the viewer checks), the one limit that remains, stated in a notice, and the format’s own limit of 232 blocks is shown as an “Addressable” row. The OFS data blocks beyond 256 MB of data read at open are now checked when their file is opened or read (round 9), so no data block check is left undone, only deferred. A file with 4,096 extension blocks is read in full, and so is one with 58,254; only built images were available for chains of that length. What is not reduced: the reading cost of a source that serves a page of 64 KB for every block asked of it (the engine’s file source), so a volume with very many scattered headers reads far more than it uses, and an OFS file read by range reads all its block headers once (its byte counts) on the first range.
- Viewer: OFS data blocks (type 8) are now verified (type, header key, sequence number, data size, next pointer, checksum: see what the viewer checks); the round 6 re-check found they were not. “A block that is not the last holds the full 488 bytes” and “the last block’s next pointer is 0” are what the file systems write (the 1985 manual: “normally”), not a rule any source states without a hedge, so a deviation is reported as a Problem about that block, and no real floppy shows one.
- Viewer: volumes with blocks of other sizes are read (see “Block sizes” in what the viewer checks), but only built images were available for 1,024, 2,048 and 4,096 bytes, and the size is taken from the root block (the one with a correct checksum), not from the DosEnvec: a volume whose root block is damaged is read as a 512-byte one, and when the partition’s DosEnvec and the root block disagree the hard disk page reports it.