CopperStart.FileSystem.Service
0.5.0-dev.6
See the version list below for details.
dotnet add package CopperStart.FileSystem.Service --version 0.5.0-dev.6
NuGet\Install-Package CopperStart.FileSystem.Service -Version 0.5.0-dev.6
<PackageReference Include="CopperStart.FileSystem.Service" Version="0.5.0-dev.6" />
<PackageVersion Include="CopperStart.FileSystem.Service" Version="0.5.0-dev.6" />
<PackageReference Include="CopperStart.FileSystem.Service" />
paket add CopperStart.FileSystem.Service --version 0.5.0-dev.6
#r "nuget: CopperStart.FileSystem.Service, 0.5.0-dev.6"
#:package CopperStart.FileSystem.Service@0.5.0-dev.6
#addin nuget:?package=CopperStart.FileSystem.Service&version=0.5.0-dev.6&prerelease
#tool nuget:?package=CopperStart.FileSystem.Service&version=0.5.0-dev.6&prerelease
CopperStart filesystem service
A standalone CopperStart ROM executes maintained CopperFS cores on pinned Copper68k 1.5.4 M68020 interpreter execution. ABI 4, local 0.5 development packages. Read support: DOS0–DOS5, clean classic SFS and SFS2. Write support: DOS0–DOS5, SFS and SFS2. International hashing and DOS4/DOS5 directory caches are maintained by CopperFS.
All parsing, allocation, checksums, traversal, directory creation and sequential file writing execute in the guest. Host gateways provide bounded reads, explicitly opted-in writes, flushes and capability-gated discard. There are no Exec/DOS shims, chipset services or managed filesystem fallbacks. The ROM and versioned manifest are embedded in the managed package. No native compiler or filesystem checkout is required by consumers.
Sessions default to read-only, including when supplied writable storage. To enable mutations, supply IWritableBlockSource and FileSystemServiceOptions.AllowWrites. The caller owns exclusive storage, geometry and volume mapping. Use unpublished storage: discard the whole staged image on cancellation, any error, CPU fault or budget exhaustion. The service does not make a multi-command import atomic. CopperScreen provides staged image replacement around the service.
CreateDirectory and CopyFileFrom create absent names and never merge or replace. CopyFileFrom transfers at most 64 KiB per guest command using an opaque write handle; read handles cannot be used for writes. SetModified accepts representable Amiga dates. Guest RAM remains 1 MiB with four block-sized scratch buffers; code executes only from immutable ROM. Links are metadata-only and dirty Smart volumes are refused at mount. No journal recovery of supplied dirty media is performed.
Rename moves an ordinary entry to a directory/name without replacement, including case-only renames. Delete removes an ordinary file or empty directory; callers own recursive traversal. Both refuse the volume root and links, and reject open file/directory handles. SetComment and SetProtection support preserving Amiga metadata in direct image-to-image transfers. Guest protection checks remain in the maintained cores. FileSystemServiceException retains command/status values and supplies readable messages for common conflicts, full media and protected files.
Local development package 0.4.0-dev.4 fixes classic SFS directory reparenting.
The stateless guest adapter explicitly returns null for optional SfsMountStorage,
avoiding default-interface dispatch on the value-type platform in the compiled
object lookup path. No mount cache, ABI change, CPU change or filesystem-core
workaround is involved. Directory moves use Rename, preserve node identity and
metadata, and do not read/copy/delete descendant files. Ordinary metadata-space
requirements and caller-owned staging remain unchanged.
Local development package 0.5.0-dev.1 adds IDiscardBlockSource, CanTrim and
Trim(). Capability limits are explicit, volume-relative filesystem blocks;
the discard callback receives bounded volume-relative byte ranges. Plain writable
sources remain supported without discard. Read-only mounts cannot use it.
The guest records a conservative interval covering freed blocks, using constant
RAM. Trim() revalidates persisted allocation with maintained CopperFS cores in
windows of at most 4,096 blocks. Windows overlap by granularity minus one so a
complete host allocation unit crossing a command boundary can be reclaimed.
Allocated or reallocated blocks are skipped, including metadata between freed
runs. Each command retains the 50-million-instruction budget and cancellation
checks every 256 instructions. No allocation proof persists across commands.
Open guest streams/enumerations must be closed first. Failed or cancelled TRIM
invalidates the session and requires discarding the unpublished writable source.
Completed-block counters describe submitted ranges, not host allocation savings.
TRIM covers frees observed by the current mount, rather than scanning historical free space. CopperScreen/CopperExplorer call it before publishing staged saves. The host translates ranges into the selected image partition and punches sparse holes only when its storage probe succeeded. Unsupported storage retains ordinary save behavior. There is no trackdisk.device, SCSI or native-handler transport in this ROM. Classic SFS service Delete uses the core's explicit permanent removal; the normal native handler's recycling policy and existing recycled files remain unchanged. DOS0–DOS5, classic SFS and SFS2 support this service path.
Commands run serially. The configurable default budget is 50 million interpreted instructions per command; cancellation is checked every 256 instructions. Faulted sessions require disposal and a fresh mount. A failed mutation always requires discarding the unpublished source even if its error is an ordinary filesystem error.
Build locally with build/Build-FileSystemService.ps1. The script compiles the guest, records ROM footprint, symbols, hashes and source provenance, builds the managed runtime, runs required ROM-dependent tests and creates a local development NuGet. Generated ROMs, packages and receipts stay in ignored artifacts. No feed publication or change to earlier published packages is authorized. The ROM is the compiler's smallest power-of-two allocation containing the linked image. Its manifest records used/allocated bytes and linked symbols. Free-space validation cores are included; OS, chipset, format, native-handler, SCSI and automatic-maintenance roots are excluded. Consult the generated manifest for payload hashes and provenance.
Validation distinguishes managed formatting of generated blank fixtures from actual compiled guest mutations. Tests cover nested/empty directories, empty files, sequential writes spanning transfer batches and OFS/FFS extension blocks, dates, conflicts, read-only gateway rejection, invalid handles/ranges and storage errors. Rename/delete/metadata tests execute the compiled ROM for every supported format. Existing read tests compare all eight formats with managed CopperFS expectations, including sparse SFS2 offsets above 4 GiB. External media replays and throughput measurements remain separate coverage. No JIT performance claim is made.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Copper68k (= 1.5.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0-dev.7 | 182 | 11/24/2026 |
| 0.5.0-dev.6 | 149 | 11/24/2026 |
| 0.5.0-dev.4 | 291 | 11/22/2026 |
| 0.5.0-dev.3 | 78 | 11/22/2026 |
| 0.5.0-dev.2 | 77 | 11/21/2026 |
| 0.5.0-dev.1 | 74 | 11/18/2026 |
Preserve the qualified service assembly and firmware from 0.5.0-dev.4. Use Copper68k 1.5.10.