Version: 0.2.0
Status: Active
Language: Dust Programming Language (DPL)
xdv-xdvfs-utils is an independent utility workspace for the XDV filesystem stack.
It provides DPL-native workflows equivalent to common industry storage tools:
- Partitioning (fdisk/parted style)
- Formatting (mkfs style)
- Integrity checking (fsck style)
- Device/probe reporting (blkid/lsblk style)
- Directory management (mkdir/rmdir/ls/tree style)
- File management (text + binary read/write/copy/move/delete style)
- Mount lifecycle operations (mount/umount/remount/sync style)
- Capacity and I/O statistics (df/du/stat/iostat style)
- Permission and ownership metadata operations (chmod/chown/chgrp/umask style)
The partition, mkfs, fsck, and probe modules are implemented as full workflow pipelines:
partition: table create/verify, 64MB boot partition layout, bootable flag, inventory validationmkfs: partition preflight, xdvfs format pipeline, post-format verificationfsck: partition + superblock + required-path contract validation, safe/aggressive repair modesprobe: block-device, partition, superblock, and xdvfs layout contract probing
Each utility entrypoint returns normalized UInt32 status codes so shell/runtime command dispatch can consistently treat 0 as success and non-zero as structured failure.
src/xdvfs_utils_partition.ds
Partition table and partition-entry management workflows.
src/xdvfs_utils_mkfs.ds
Filesystem creation workflows for xdvfs and compatibility targets.
src/xdvfs_utils_fsck.ds
Filesystem integrity and repair workflows.
src/xdvfs_utils_probe.ds
Storage probe and reporting workflows.
src/xdvfs_utils_dir.ds
Directory lifecycle and listing workflows.
src/xdvfs_utils_file.ds
Plain-text and binary file operation workflows.
src/xdvfs_utils_mount.ds
Mount/unmount/remount/sync orchestration workflows.
src/xdvfs_utils_space.ds
Filesystem capacity and I/O statistics workflows.
src/xdvfs_utils_perm.ds
Permission and ownership metadata workflows.
src/xdvfs_utils_cli.ds
Shared utility command orchestration entrypoints.
src/xdvfs_utils_e2e_tests.ds
End-to-end disk image utility tests for partition/mkfs/fsck/probe/cli paths.
dust check xdv-xdvfs-utils/srcdust check xdv-xdvfs-utils/src/xdvfs_utils_e2e_tests.dsThe e2e suite executes the utility pipeline contract:
- partition (
fdisk_create_*, bootable verification) - format (
mkfs_xdvfs) - integrity (
fsck_read_only/ repair semantics) - probe (
blkid,lsblk,probe_all) - CLI disk-image flow (
run(...)for probe/partition/mkfs/fsck/mount/space)