Upstream drafts for milestone 190
Milestone 190 (ext4, read and write: a Rust implementation with libext2fs as the host-side
oracle) sends its rsext4 fixes to rcore-os/tgoskits.
Upstream takes one task per pull request and processes none without a linked Issue. Each
submission therefore has a draft here holding the Issue to file first and the pull request, each in
Chinese with an English rendering, then the base commit and the test evidence. A .patch
beside it holds the git format-patch output. Nobody files a draft until the architect has
reviewed its text and given a separate go.
2a-free-empty-extent-index.md: upstream item 2's first defect, a depth-2 truncate that fails withextent:empty_index; merged as rcore-os/tgoskits#2827.2b-restore-truncate-tail.md: item 2's second defect, a failed truncate that leaves the file's tail zeroed; open as rcore-os/tgoskits#2829, with rcore-os/tgoskits#2845 stacked on it.4-fuzz-targets.md: upstream item 4, sevencargo fuzztargets over the parsers, mount and journal replay, with anmke2fsseed corpus; merged as rcore-os/tgoskits#2835.5a-crc32c-safety-arguments.md: upstream item 5, first half, a safety argument at each CRC32Cunsafeuse; merged as rcore-os/tgoskits#2831, which takes hardware CRC32C availability from the environment.5b-group-descriptor-decode.md: upstream item 5, second half, group descriptors decoded instead of cast from the table bytes; merged as rcore-os/tgoskits#2833.6-kani-harnesses.md: upstream item 6, an Issue offering Kani harnesses for the on-disk parsers, rcore-os/tgoskits#2836, which has no answer; it has no.patch, and the harnesses run in partsfoundry/rsext4.7-mount-refusal-reason.md: upstream item 7, a refused mount reports its reason instead of a bareIo; merged as rcore-os/tgoskits#2839.8-whole-inode-times.md: upstream item 8,InodeInforeports whole times, nanoseconds and epoch bits included; open as rcore-os/tgoskits#2840.9-inode-bitmap-padding.md: upstream item 9, the first inode allocated in anINODE_UNINITgroup leaving its inode bitmap's padding clear; merged as rcore-os/tgoskits#2825.
What every draft shares
- Base:
rcore-os/tgoskits, branchdev, commit0353572d1e2cca79e25a2805deeff4521449a5c1("fix(x86_vlapic): stop the APIC timer without yielding in the vCPU entry window (#2819)"), the head ofdevat filing. Item 9 went first, on the earlier base6e80b940d. Every other patch here dates from6e80b940dand applies to0353572d1unchanged. - Linked Issue: upstream's contributing guide (section 4.3) processes no pull request without one. So each Issue went first, and its pull request body names the Issue's number.
- Issue settings: the guide (section 3.7) requires them in the sidebar. They are Assignees
calef, labelsq4and eitherbugortask, the matching Type, and Milestone2026Q4. GitHub dropped them at creation, because the filing account has no triage permission on the repository. The guide asks a maintainer to fill them in. Each draft names its own label. - The rerun: before filing, every check a pull request cites ran again on
0353572d1with its patch applied. Therecargo xtask test --since 0353572d1failed only three growth tests, and they fail the same way on unchangeddev. Two are rsext4's, intests/filesystem_growth.rs. The third is ax-fs-ng'sroot_growth_preserves_other_partitions_and_ext4_contents, which failed in two feature profiles on6e80b940d. - Why the growth tests fail: the filing host's
mke2fs.confenablesorphan_file, and the feature check inlayout.rsrefuses any compatible feature outside its list. WithMKE2FS_CONFIGnaming a copy of/etc/mke2fs.confwithoutorphan_file, they pass. - Red and green: each regression test ran with its commit's source change reverted (red), then as
committed (green). For items 2a and 2b that went through
cargo test -q -p rsext4 --features host-test --test file_operations <test>. That is the profilecargo xtask testruns for rsext4.
Name: provisional. For the drafts the parent's upstream round cites. calef names directories.
2a-free-empty-extent-indexName: provisional. The upstream item's number, a letter per submission, and what it fixes. calef names files.2b-restore-truncate-tailName: provisional. As for2a. calef names files.4-fuzz-targetsName: provisional. The upstream item's number and what it adds. calef names files.5a-crc32c-safety-argumentsName: provisional. The upstream item's number and what it adds. calef names files.5b-group-descriptor-decodeName: provisional. The upstream item's number and what it fixes. calef names files.6-kani-harnessesName: provisional. The upstream item's number and what it offers. calef names files.7-mount-refusal-reasonName: provisional. The upstream item's number and what it fixes. calef names files.8-whole-inode-timesName: provisional. The upstream item's number and what it fixes. calef names files.9-inode-bitmap-paddingName: provisional. The upstream item's number and what it fixes. calef names files.