| files[ino1] = mkfile(m, md, # links(ino1, dirs), content), fs = abs-files(files), ofh = abs-of(of), root.dir?, dom of < ino0, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), ispath(path, ROOT_INO, ino1, dirs, files), of-cons(of, dirs, files), px-parent(user, path, ROOT_INO, dirs, files), ROOT_INO ∈ dirs, ino1 ∈ files, psynced → asynced ⊦ ⟨choose err with pre-truncate(path, n, err, user, root, fs, ofh) in err0 := err; if err0 = ESUCCESS then let fid = root[path].fid in let buf = fs[fid].content in fs[fid].content := resize(buf, n); psynced := ?⟩ (fs = abs-files(files) ∧ (psynced → asynced) ∧ EACCESS = err0), root[path].dir?, pw(user, md), ino1 ∈ dirs |
files[ino1] = mkfile(m, md, # links(ino1, dirs), content), fs = abs-files(files), ofh = abs-of(of), root.dir?, dom of < ino0, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), ispath(path, ROOT_INO, ino1, dirs, files), of-cons(of, dirs, files), px-parent(user, path, ROOT_INO, dirs, files), ino1 ∈ files, ROOT_INO ∈ dirs, psynced → asynced ⊦ ∃ err. pre-truncate(path, n, err, user, root, fs, ofh) ∧ ⟨err0 := err; if err0 = ESUCCESS then let fid = root[path].fid in let buf = fs[fid].content in fs[fid].content := resize(buf, n); psynced := ?⟩ (fs = abs-files(files) ∧ (psynced → asynced) ∧ EACCESS = err0), root[path].dir?, pw(user, md), ino1 ∈ dirs