Repository navigation
Conversation
Tux3 was read-only because no tool could judge a written volume: the user tools are unreliable writers (tux3fuse aborts on 4 KiB writes, tux3 write leaves larger files empty). The linux-tux3 kernel (branch hirofumi, commit e1c4179dd161, Linux 5.16 with fs/tux3) is now built from source as an oracle (oracle-only, nothing committed; build-only objtool tweaks recorded in docs/TUX3-ON-DISK.md) and booted under QEMU by Compression.Tests/Tux3/KernelOracle/kernel-run.sh. Tux3Writer lays volumes out as the kernel and tux3 mkfs do: contiguous runs behind direct data-tree roots (a data leaf past the 15-bit count), ext2-style entry blocks, inode leaves under one index node, and the allocation as the BALLOC log records the kernel replays at mount. The reader now also reports device numbers. Evidence: a volume the kernel filled (kernel.img.gz, every object kind, index changes still in the log) reads back exactly as the kernel lists it; the kernel mounts writer volumes (direct roots and data leaves, 400-entry directory, devices, links, owner/mode/mtime) and reads every object back byte for byte; after the kernel writes, appends, links, renames and removes in a writer volume, the reader matches the kernel's read-back. Sourcing rung 2: the GPL kernel and tools were read as reference and run as oracles; the on-disk description is in docs/TUX3-ON-DISK.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Tux3 (revision 2015-06-01) gets a writer, and the linux-tux3 kernel becomes its oracle.
Tux3Writer+IArchiveCreatableon the descriptor (CanCreate): volumes laid out as the kernel andtux3 mkfslay them out — contiguous runs behind direct data-tree roots (a data leaf past the 15-bit count), ext2-style entry blocks, inode leaves under one index node, allocation as the BALLOC log records the kernel replays at mount. Directories, files, symlinks, hard links, FIFOs/sockets/devices, owner/mode/mtime.Tux3Node.Device).Compression.Tests/Tux3/KernelOracle/kernel-run.shboots the kernel under QEMU (1 GiB);kernel.img.gzis a volume the kernel filled, with its read-back manifest (kernel-gen.sh).docs/TUX3-ON-DISK.mdgains "Writing" and "Kernel oracle"; FS README row, catalogue.Oracle (built from source, nothing GPL committed)
linux-tux3 branch
hirofumi, commite1c4179dd161(Linux 5.16 +fs/tux3),defconfig+kvm_guest.config, Tux3 and virtio built in, gcc 12,-j2. Build-only objtool tweaks (warnings not errors; object without symbol table = no symbols) are described in the docs.Verification
FullyQualifiedName~Tux3|Catalogue|Readmegreen; kernel tests skip where the kernel is not built.