[FEATURE] Complete original-description resizing and durable synchronization #28
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/posixd#28
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?
Problem and motivation
Build tools require truncate/ftruncate, sparse growth and fsync/fdatasync on ordinary retained file descriptions. Existing resizing uses a dedicated sealed grant or conditional Open; original-device barriers and FAT catalog/undo durability already exist. The complete original-device/filesystem ordering and compatibility consumers are now implemented, with authored controls and execution waived.
Proposed behavior and scope
Implement directory-relative/path truncation through the original root/cwd/dirfd scope and ftruncate through the existing shared description. Preserve exact size, access ceilings, metadata freshness, alias positions, sparse zero growth, ENOSPC and original cleanup. Add fsync/fdatasync on retained regular-file/directory descriptions with explicit supported/refused filesystem guarantees. Native object identity, not a path recovered after admission, selects every effect.
Use original block-device persistence guarantees throughout ext journal commit/recovery and FAT catalog/undo completion. Keep a complete ext metadata operation within one committed transaction even when several descriptors are necessary. Refuse unsupported durability before effects; retain fail-stop state after uncertain publication. RAM synchronization completes its volatile consistency boundary without claiming power-loss persistence.
Authority, security and reliability
Define exact versioned compatibility/native requests and typed outcomes with the original held object, scope, generation and request key. No new ambient discovery, global sync interface, device grant or mount-selection shortcut. Reuse existing native caller ownership, authenticated client admission and shared-description exclusion. Preserve correlation, cancellation and final retirement; interruption cannot replay an uncertain effect or expose descriptor reuse before cleanup.
The JBD2 format specification defines descriptor/data and final commit framing. EriX implementation and fixtures remain original. Ordered durability must cover the actually selected filesystem and journal routes, including separately selected external journal storage.
Acceptance criteria
Checklist
Author volatile-versus-persisted device models and fail-at-each-boundary controls; verify no partial committed operation, no early journal clearing, original-route barriers and no success on unsupported persistence. Add real VM compatibility workloads for all selected providers and full success/cleanup gates. Tests, builds, lint checks, generated documentation, VM/profiler execution and CI observation are currently deferred by the maintainer. Both complete EriX guest generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Compatibility truncate and sync — implemented, 2 October 2026
Names, numeric identifiers and credentials grant no new device, mount or endpoint authority.
One shared control mapper admits complete capacity, correlates original object/command/argument/persistence, and preserves exact native refusal domains. Definite refusal permits later use without automatic retry.
Current-minor fixtures and error-precedence restoration are corrected; repeated rejection arrays are simplified.
No executed conformance, warning-free build, measured speedup or complete system security acceptance is claimed.
Phase completion is 19.44% weighted, 8.01% whole acceptance: 28/460 parents and 489/949 children. Both full EriX guest generations and external Rust/LLVM guest rebuilding remain required and unperformed. Complete libc entry points and subsequent filesystem/compatibility features remain open.
Existing unsupported policy and encrypted-inline refusals remain documented.
No executed conformance, algorithmic security acceptance, warning-free build or measured speedup is claimed.
Compatibility truncate/ftruncate/fsync/fdatasync serving and complete workload controls remain open in the owning feature. Phase completion remains 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children. Both full guest EriX generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Transport or cleanup uncertainty terminates before ordinary storage reuse; request identifiers never wrap. Master material is guarded across partial lookup errors, invalid length, identifier refusal and successful derivation.
They cover storage boundaries, success/refusal cleanup, borrowed response address and width, malformed/padded frames, sequence exhaustion, original request encoding, exact correlation, unexpected receipts and master admission exits.
Encrypted allocation/growth and compatibility truncate/ftruncate/fsync/fdatasync remain open in the owning feature. Phase completion remains 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children.
Both full guest EriX generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Twelve independent original-media/native controls are authored and unrun, covering literal allocation bits and counters, retained data, both gap neighbors, unwritten fragments, external leaves, rejected inconsistent identity, final logical boundaries, wide geometry, maximum-leaf continuation and every original journal barrier with recovery.
Encrypted allocation/growth, compatibility truncate/ftruncate/fsync/fdatasync and complete live controls remain open in the owning feature. Phase completion remains 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children. Both full guest EriX generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Required large/huge-file metadata joins the same original superblock and complete transaction as the inode.
Encrypted allocation/growth, complete bigalloc boundary audit, compatibility truncate/ftruncate/fsync/fdatasync and complete live controls remain open in the owning feature. Phase completion remains 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children. Both full guest EriX generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Absent blocks and unwritten runs require no data I/O or allocation.
General large-file growth admission, compatibility truncate/ftruncate/fsync/fdatasync and complete live controls remain open in the owning feature. Phase completion remains 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children. Both full guest EriX generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Invalid ranges and malformed encodings still refuse; constructed outputs are preflighted.
General large-file growth admission, sparse-gap optimization, compatibility truncate/ftruncate/fsync/fdatasync and complete live controls remain open in the owning feature. Phase completion remains 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children. Both full guest EriX generations and external Rust/LLVM guest rebuilding remain required and unperformed.
VFS requires frozen Write for regular-file resize and live admitted file/directory custody for sync. Known refusals preserve original admission; uncertainty keeps cleanup-only custody, with no retry or pathname reopen.
No request or adapter adds a device, mount, credentials, new native rights or capability transfer.
They cover literal framing, unchanged output on refusal, full correlation, access direction, actual aliases and zero growth, storage/format refusal, clean recovery ownership, lost barriers/replies, retained cleanup and short reply capacity.
Existing ext logical-range conversions and sparse-gap traversal still need the size-boundary audit; compatibility truncate/ftruncate/fsync/fdatasync consumers, complete cancellation controls and new live workloads remain unfinished. Current phase completion remains 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children.
Both full guest EriX generations and external Rust/LLVM rebuilding remain required and unperformed.
Retained file-control contract
Native resize and synchronization use one disjoint retained-candidate operation family with complete request/object/command/argument correlation. Resize retains the full native unsigned size; compatibility admits signed offsets before submission. A private timestamp suffix is allowed only for resize. No request supplies a pathname, device, mount, credential, new right or transferred capability.
Resize requires original admitted Write on a regular file. Synchronization accepts a live admitted regular file or directory in either access direction; it grants no data access and changes no cursor or timestamp. Data-only synchronization may complete with the stronger whole-file guarantee. Replies distinguish definite storage exhaustion, representation limits, unsupported guarantees, known refusal and uncertain effects. Known refusals preserve the original owner; uncertainty permits cleanup only and never automatic resubmission.
RAM explicitly reports volatile completion. Selected transactional ext and FAT report persistence only through their original mounted filesystem and journal owners, with barriers on those exact devices. Unsupported imported or unjournaled paths must refuse that promise. Aliases, unlink/name reuse, cancellation and lost replies retain the original description and operation owner. Compatibility path truncate will reuse native acquisition and retire its temporary owner without consuming a public descriptor.
The Open Group function specifications define the behavioral baseline: ftruncate, fsync and fdatasync. This is the implementation contract; compatibility serving and complete authored controls remain unfinished.
Alternatives and tradeoffs
A queued-write acknowledgement cannot establish persistence. Limiting a complete operation to one descriptor would add an artificial restriction; descriptor chaining should use actual admitted journal space. Whole-device discovery, pathname reacquisition and replay after uncertain effects would violate original authority and lifetime.
Tracking and rollout
Retain current namespace/lifetime behavior and immutable source selection. Evolve producers, consumers and VM clients together. Remove redundant adapters only after all users migrate; current dedicated grant behavior must stay explicit until retirement is justified. No source acceptance implies a test pass.
Original namespace, retained native resolution, original device barriers, FAT metadata, ext review, compatibility review, Integration review, phase completion.
Original filesystem persistence — signed source acceptance, 2 October 2026
Compatibility truncate/ftruncate and fsync/fdatasync serving, its complete native workloads and full-item acceptance remain open in retained-description persistence.
They separate volatile/persisted bytes and cover writer and full/fast-recovery interruption boundaries, lost replies, partial checkpoints, original routes, capacity/refusal, checksum dialects, wrapped descriptors and identities, later revocations, imported superblocks and actual clock-free file operations.
Source acceptance is not an executed persistence result, warning-free build or measured speedup. Both full EriX guest generations and external Rust/LLVM rebuilding in EriX remain required and unperformed.
Phase progress is 19.20% weighted, 7.61% whole acceptance: 27/460 parents and 486/949 children.
Related records and contracts
erikinkinen referenced this issue from erix/e2fsd2026-10-02 03:28:17 +02:00
erikinkinen referenced this issue2026-10-02 03:28:18 +02:00
erikinkinen referenced this issue from erix/docs2026-10-02 03:28:19 +02:00
erikinkinen referenced this issue from erix/integration2026-10-02 03:28:20 +02:00
erikinkinen referenced this issue from erix/blockd2026-10-02 04:03:55 +02:00
erikinkinen referenced this issue from erix/coreutils2026-10-02 04:04:22 +02:00
erikinkinen referenced this issue from erix/crashd2026-10-02 04:05:26 +02:00
erikinkinen referenced this issue from erix/deviced2026-10-02 04:05:29 +02:00
erikinkinen referenced this issue from erix/drv-acpi2026-10-02 04:05:33 +02:00
erikinkinen referenced this issue from erix/drv-i80422026-10-02 04:05:34 +02:00
erikinkinen referenced this issue from erix/drv-ps2-keyboard2026-10-02 04:05:37 +02:00
erikinkinen referenced this issue from erix/drv-ps2-mouse2026-10-02 04:05:38 +02:00
erikinkinen referenced this issue from erix/drv-rtc-cmos2026-10-02 04:05:39 +02:00
erikinkinen referenced this issue from erix/drv-serial2026-10-02 04:05:40 +02:00
erikinkinen referenced this issue from erix/drv-virtio-block2026-10-02 04:05:42 +02:00
erikinkinen referenced this issue from erix/dynlinkd2026-10-02 04:05:43 +02:00
erikinkinen referenced this issue from erix/exsh2026-10-02 04:05:45 +02:00
erikinkinen referenced this issue from erix/extop2026-10-02 04:05:47 +02:00
erikinkinen referenced this issue from erix/fatd2026-10-02 04:05:48 +02:00
erikinkinen referenced this issue from erix/fbcond2026-10-02 04:05:49 +02:00
erikinkinen referenced this issue from erix/hotplugd2026-10-02 04:05:49 +02:00
erikinkinen referenced this issue from erix/inputd2026-10-02 04:05:50 +02:00
erikinkinen referenced this issue from erix/irqd2026-10-02 04:05:52 +02:00
erikinkinen referenced this issue from erix/kernel2026-10-02 04:05:53 +02:00
erikinkinen referenced this issue from erix/keyd2026-10-02 04:05:54 +02:00
erikinkinen referenced this issue from erix/launchd2026-10-02 04:05:55 +02:00
erikinkinen referenced this issue from erix/lib-block2026-10-02 04:05:55 +02:00
erikinkinen referenced this issue from erix/lib-bootstrap2026-10-02 04:05:56 +02:00
erikinkinen referenced this issue from erix/lib-capabi2026-10-02 04:05:57 +02:00
erikinkinen referenced this issue from erix/lib-driver2026-10-02 04:05:58 +02:00
erikinkinen referenced this issue from erix/lib-input2026-10-02 04:05:58 +02:00
erikinkinen referenced this issue from erix/lib-interrupt2026-10-02 04:05:59 +02:00
erikinkinen referenced this issue from erix/lib-ipc2026-10-02 04:06:01 +02:00
erikinkinen referenced this issue from erix/lib-log2026-10-02 04:06:02 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-10-02 04:06:02 +02:00
erikinkinen referenced this issue from erix/lib-service2026-10-02 04:06:03 +02:00
erikinkinen referenced this issue from erix/lib-stdio2026-10-02 04:06:04 +02:00
erikinkinen referenced this issue from erix/lib-time2026-10-02 04:06:04 +02:00
erikinkinen referenced this issue from erix/lib-tty2026-10-02 04:06:05 +02:00
erikinkinen referenced this issue from erix/lib-vfs2026-10-02 04:06:06 +02:00
erikinkinen referenced this issue from erix/loaderd2026-10-02 04:06:07 +02:00
erikinkinen referenced this issue from erix/logd2026-10-02 04:06:08 +02:00
erikinkinen referenced this issue from erix/memd2026-10-02 04:06:09 +02:00
erikinkinen referenced this issue from erix/named2026-10-02 04:06:09 +02:00
erikinkinen referenced this issue from erix/pagerd2026-10-02 04:06:10 +02:00
erikinkinen referenced this issue from erix/powerboxd2026-10-02 04:06:13 +02:00
erikinkinen referenced this issue from erix/probed2026-10-02 04:06:14 +02:00
erikinkinen referenced this issue from erix/procd2026-10-02 04:06:15 +02:00
erikinkinen referenced this issue from erix/ramfsd2026-10-02 04:06:16 +02:00
erikinkinen referenced this issue from erix/rootd2026-10-02 04:06:17 +02:00
erikinkinen referenced this issue from erix/seriald2026-10-02 04:06:19 +02:00
erikinkinen referenced this issue from erix/timed2026-10-02 04:06:20 +02:00
erikinkinen referenced this issue from erix/ttyd2026-10-02 04:06:21 +02:00
erikinkinen referenced this issue from erix/vfsd2026-10-02 04:06:23 +02:00
erikinkinen referenced this issue from erix/vspaced2026-10-02 04:06:24 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-10-02 04:10:55 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-10-02 04:38:55 +02:00
erikinkinen referenced this issue from erix/boot-tool2026-10-02 05:43:45 +02:00
erikinkinen referenced this issue from erix/lib-aes2026-10-02 05:45:00 +02:00
erikinkinen referenced this issue from erix/lib-constant-time2026-10-02 05:45:04 +02:00
erikinkinen referenced this issue from erix/lib-fs-crypto2026-10-02 05:45:07 +02:00
erikinkinen referenced this issue from erix/lib-sha22026-10-02 05:45:14 +02:00
erikinkinen referenced this issue from erix/sha2-tool2026-10-02 05:45:26 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-10-02 06:27:37 +02:00