@ai-ecoverse/slicc-kernel 1.196.48 → 1.196.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +69 -17
- package/dist/cloudflare.js.map +3 -3
- package/dist/kernel-worker.js +51 -16
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +51 -16
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/dist/types/fs/rename-cleanup.d.ts +2 -1
- package/dist/types/fs/rename-manifest.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1135,7 +1135,9 @@ A lookup follows at most 40 symlinks, as Linux does: the 41st is `ELOOP`, for WA
|
|
|
1135
1135
|
|
|
1136
1136
|
OPFS renames use `FileSystemHandle.move()` when available. If a directory handle has no native move, the kernel coordinates with writers before copying the tree and deleting the source. Replacing an empty directory also uses this coordination. A shared-capable root without the locks needed for a copy returns `EBUSY` instead.
|
|
1137
1137
|
|
|
1138
|
-
On a private root (no peer transport), replacing an empty directory first tries staging the empty destination and moving the source into place. A successful native replacement preserves open file handles without reading the tree. If a move is absent or explicitly unsupported, the kernel restores the destination before falling back to a local copy. Before copying, the kernel drains operations on the source and destination trees. If a conflicting operation or write session remains open past a short grace period, the rename returns `EBUSY` without copying; finish the operation and retry. Later conflicting operations wait for the copy, with a bounded wait. A writer elsewhere on the root need not close. A local-folder mount commits writes under both operands before dispatch, so a shell can rename a directory while its descriptor remains open. A caller using the raw folder driver directly must close an overlapping uncommitted write session before retrying. This ordering is local to the kernel: it cannot coordinate writes from a native app or another tab that independently mounts the same local folder. The source is kept intact until every byte has been copied; a copy failure leaves an existing destination intact or removes a newly created one. Once a copy is committed, failure to remove the old source does not undo the rename. The old name stays hidden and reserved until cleanup succeeds. Creating that name or removing or renaming one of its ancestors returns `EBUSY`. A conflicting operation can retry cleanup without restarting. It waits at most 250 ms for its cleanup attempt; after an unsuccessful attempt, further attempts on that reservation are throttled for one second. Reconciliation also retries pending cleanup. While removal keeps failing, the reservation remains. The metadata move commits one cleanup manifest with the marker at the old name; the intent refers to that marker instead of storing another copy. Up to 256 KiB of serialized entries fit in the marker. Larger trees store the remaining entries by relative path in bounded batches before committing the marker. Cleanup removes
|
|
1138
|
+
On a private root (no peer transport), replacing an empty directory first tries staging the empty destination and moving the source into place. A successful native replacement preserves open file handles without reading the tree. If a move is absent or explicitly unsupported, the kernel restores the destination before falling back to a local copy. Before copying, the kernel drains operations on the source and destination trees. If a conflicting operation or write session remains open past a short grace period, the rename returns `EBUSY` without copying; finish the operation and retry. Later conflicting operations wait for the copy, with a bounded wait. A writer elsewhere on the root need not close. A local-folder mount commits writes under both operands before dispatch, so a shell can rename a directory while its descriptor remains open. A caller using the raw folder driver directly must close an overlapping uncommitted write session before retrying. This ordering is local to the kernel: it cannot coordinate writes from a native app or another tab that independently mounts the same local folder. The source is kept intact until every byte has been copied; a copy failure leaves an existing destination intact or removes a newly created one. Once a copy is committed, failure to remove the old source does not undo the rename. The old name stays hidden and reserved until cleanup succeeds. Creating that name or removing or renaming one of its ancestors returns `EBUSY`. A conflicting operation can retry cleanup without restarting. It waits at most 250 ms for its cleanup attempt; after an unsuccessful attempt, further attempts on that reservation are throttled for one second. Reconciliation also retries pending cleanup. While removal keeps failing, the reservation remains. The metadata move commits one cleanup manifest with the marker at the old name; the intent refers to that marker instead of storing another copy. Up to 256 KiB of serialized entries fit in the marker. Larger trees store the remaining entries by relative path in bounded batches before committing the marker. Cleanup looks up sibling entries not in the marker in batches of up to 64 paths and removes the records with the intent. Recovery never copies an older vacated source over a reused destination. If ownership cannot be verified, cleanup releases a missing source or removes an empty source directory nonrecursively. A nonempty directory or a replacement file stays reserved. Recovery removes only entries recorded during the copy, never recursively deleting newly arrived children or recopying over the destination. On a root configured for peers, a rename that did not coordinate a copy still returns `EBUSY` instead of copying, even if no peer is currently visible. Other native failures report their own errno, such as `ENOENT` for a vanished source or `EACCES` for a denied move.
|
|
1139
|
+
|
|
1140
|
+
**Recovering a nonempty legacy rename source:** Stop all kernels and other writers that use this backing root. With the host's original `FileSystemDirectoryHandle` (not a guest shell), open the reserved source path, inspect its contents, and copy out anything to keep. Remove only the entries you intend to discard from that physical source. For example, for `/old`, `const old = await root.getDirectoryHandle('old')` opens the hidden directory; `await old.removeEntry('saved-file')` removes a file after you have saved it elsewhere. Leave the destination and the metadata records alone. Restart the kernel on the same root: reconciliation removes the now-empty directory and releases its name. A guest `rm -rf` does not override this reservation.
|
|
1139
1141
|
|
|
1140
1142
|
**FIFOs** (`mkfifo`, #896):
|
|
1141
1143
|
- **Creating one:** an Emscripten program's `mkfifo`/`mknod(S_IFIFO)` makes a FIFO node on the OPFS root (in `/tmp`, `/home` and the rest), owned by the caller, with mode `mode & ~umask`. `stat`, `ls -l` (`p`) and `test -p` show it as a FIFO, in Emscripten, WASI and JS programs. A WASIX program makes one through `slicc_fs.path_mkfifo` (see [File modes and the umask](#file-modes-and-the-umask); its libc uses it from wasix-sysroot -33), and `stat`s, `open`s, reads and writes one like any program. An existing name is `EEXIST`. tmpfs mounts (`/dev/shm`, a tmpfs `/tmp`) have FIFO nodes too, through the driver's `fifos` capability ([#907](https://github.com/ai-ecoverse/slicc-kernel/issues/907)). hostfs, `fsa` and media mounts have none, so `mkfifo` there is `EPERM`, and `EROFS` on a readonly path.
|
package/dist/async-process.js
CHANGED
|
@@ -1601,7 +1601,7 @@ var EMSCRIPTEN_FIXED_DIRS = [
|
|
|
1601
1601
|
var EARLY_WHOLE_FILE = 64 * 1024;
|
|
1602
1602
|
|
|
1603
1603
|
// src/version.ts
|
|
1604
|
-
var KERNEL_VERSION = true ? "1.196.
|
|
1604
|
+
var KERNEL_VERSION = true ? "1.196.49" : "0.0.0-dev";
|
|
1605
1605
|
var OS_RELEASE = "6.0.0-slicc";
|
|
1606
1606
|
function procVersion() {
|
|
1607
1607
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|