@ai-ecoverse/slicc-kernel 1.146.0 → 1.146.2

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/dist/node.js CHANGED
@@ -3305,7 +3305,7 @@ function satisfies(version, range2) {
3305
3305
  }
3306
3306
 
3307
3307
  // src/version.ts
3308
- var KERNEL_VERSION = true ? "1.146.0" : "0.0.0-dev";
3308
+ var KERNEL_VERSION = true ? "1.146.2" : "0.0.0-dev";
3309
3309
  var OS_RELEASE = "6.0.0-slicc";
3310
3310
  function procVersion() {
3311
3311
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -18132,6 +18132,7 @@ var VfsNode = class {
18132
18132
  opens = 0;
18133
18133
  writers = 0;
18134
18134
  missing = false;
18135
+ made = false;
18135
18136
  revoked = false;
18136
18137
  fs;
18137
18138
  path;
@@ -18215,6 +18216,7 @@ var VfsNode = class {
18215
18216
  if (!isMissing(err)) throw err;
18216
18217
  while (this.moving.size > 0) await Promise.all(this.moving);
18217
18218
  if (this.path !== at) continue;
18219
+ if (!this.made) throw new KernelError("ENOENT");
18218
18220
  this.data = new Uint8Array(0);
18219
18221
  this.missing = true;
18220
18222
  }
@@ -18864,6 +18866,7 @@ function vfsFile(fs, opts, nodes) {
18864
18866
  openError ??= { err };
18865
18867
  });
18866
18868
  };
18869
+ if (opts.create || opts.truncate) node.made = true;
18867
18870
  if (opts.create) atOpen(() => node.materialize());
18868
18871
  if (opts.truncate) atOpen(() => node.truncate(0));
18869
18872
  const takeOpenError = () => {