[BUG] Keep destination absence distinct from ext lookup failures #13
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/e2fsd#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Regular-file creation, mkdir, symlink creation and hard-link destination checks discard every destination lookup error except success. A failed read can therefore enter a namespace mutation without established absence. Depending on later I/O, the operation can succeed after suppressing the original failure or can attempt allocation before a later refusal. The behavior was identified by source audit, not an executed reproduction.
Reproduction
At E2fsd
0704b99def883c46abc5b880c66da058bc677015, inspectsrc/media/mutation.rsregular-file and directory creation andsrc/media/mutation/links.rssymlink and hard-link creation. All four test the child lookup withis_ok()and proceed for every error. Configure a writable ext medium with an existing source for hard links, then inject a singleIPC_RESULT_INTERNALwhen reading the destination directory during the final-component lookup. Let subsequent reads succeed. Invoke each mutation with a missing destination. A persistent malformed directory is a second negative control.This is a source-derived control-flow reproduction. Runtime frequency, exact post-failure media state and test/build outcomes have not been measured. Fault-injection regressions will distinguish a known missing child from read failure before counting any write attempt.
Expected and actual behavior
Expected: only a completed negative directory search admits creation. A dependency may itself return NOT_FOUND; the error code alone does not establish absence. Preserve every other lookup error and return before allocation, link-count updates, namespace writes or transaction effects. Existing-destination behavior remains unchanged.
Actual source behavior:
is_ok()preserves only the existence case and erases the distinction between known absence, I/O failure and malformed metadata. Exact-entry create/touch and rename originally discriminated by error code, which still conflated a dependency NOT_FOUND with directory absence. Typed absence now preserves both meanings through these paths and indexed recovery.Environment and identity
0704b99def883c46abc5b880c66da058bc677015; Integrationd8413bf1bb92414b6b84ffec9e3839695b1439dc.Evidence and prior checks
The ext destination-lookup defect is implemented and published: e2fsd
bddfed39, docsea2f3f25, integration8fa3c0b8. It is closed under the testing waiver. The full conditional Open/openat work remains open.Completed child absence now has a distinct internal result. Block/key/format failures, including dependency NOT_FOUND, propagate through regular-file creation, mkdir, links, rename destinations, exact-entry resolution/revalidation and indexed journal recovery. Provider rename preflight retains the distinction across the full pathname and preserves its existing held-destination exclusion on both wire versions. Short unparsed directory suffixes refuse as malformed media. Original mounts, block/key routes, parent identities and native operation ceilings remain unchanged.
Path, exact and touch regular-file creation share one transaction core. Preflight precedes allocation; inode and optional inline payload initialization, checksums, entry insertion, timestamps, quotas and result metadata remain under the original transaction owner. Explicit touch fields override automatic times. Unselected touch fields no longer cause a redundant touch read/write. Journal rollback and uncertain-effect fail-stop behavior remain; no measured performance result is claimed.
Ten regression controls are authored and unrun: linear/indexed namespace failures including missing-device codes, malformed records/suffixes, exact absence resolution/revalidation, successful mutations, intervening conflicts, persisted modes/inline data/timestamps, held-destination provider preflight and indexed recovery with unchanged home media. Rustfmt was applied to19 changed Rust inputs. The source inventory covers 3573 code files across 76 repositories, all below1000 lines; largest changed source 988 lines. Contracts, component documentation and maintained filesystem manual TeX are updated. Three signed commits are published with three catalog selections; the independent Rootd helper remains
17acba24ba2136d453fa84326574b7470b161741.This completes the reported mutation defect and consolidation. Full conditional compatibility creation still needs authenticated requested mode/effective IDs/current mask, original held-parent evidence, default ACL inheritance and original acquisition/result/cleanup custody. No full Open acceptance credit is added: 16.91% weighted and 5.21% whole acceptance; 21/460 parents and 441/902 sub-items. Both full EriX guest generations and rebuilding the external Rust/LLVM toolchain inside EriX remain required and unperformed. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred. No executed pass, warning-free build or benchmark result is claimed.
Earlier source evidence follows; the correction above is current.
The four source locations are the evidence. Tests, builds, lint checks, VM execution and CI observation are deferred by user instruction. No executed failure or pass is claimed. The correction covers every namespace destination check, exact-entry revalidation, provider rename preflight and indexed recovery, and shares regular-file allocation/publication logic.
Tracking
Part of conditional Open/openat creation and the phase completion tracker. Full conditional creation, inherited ACLs and guest builds remain separately unfinished.
[BUG] Preserve destination lookup failures before ext creationto [BUG] Keep destination absence distinct from ext lookup failureserikinkinen referenced this issue2026-09-30 06:53:37 +02:00
erikinkinen referenced this issue from erix/docs2026-09-30 06:53:38 +02:00
erikinkinen referenced this issue from erix/integration2026-09-30 06:53:39 +02:00