| root.dir?, fids-cons(root, fs, ofh), posix-crash(root, fs, ofh, tree, fs0, ofh0) ⊦ ∃ err. pre-writemeta(path, md, err, user, root, fs, ofh) ∧ ⟨err0 := err; if err0 = ESUCCESS then if root[path].dir? then root[path].meta := md else let fid = root[path].fid in fs[fid] := mkfile(md, fs[fid].content); psynced := ?⟩ (psynced ∧ posix-crash(root, fs, ofh, tree, fs0, ofh0)), ⟨err0 := EFAIL; if err0 = ESUCCESS then if root[path].dir? then root[path].meta := md else let fid = root[path].fid in fs[fid] := mkfile(md, fs[fid].content); psynced := ?⟩ (psynced ∧ posix-crash(root, fs, ofh, tree, fs0, ofh0)) |
root.dir?, fids-cons(root, fs, ofh), posix-crash(root, fs, ofh, tree, fs0, ofh0) ⊦ ⟨if EFAIL = ESUCCESS then if root[path].dir? then root[path].meta := md else let fid = root[path].fid in fs[fid] := mkfile(md, fs[fid].content); psynced := ?⟩ (psynced ∧ posix-crash(root, fs, ofh, tree, fs0, ofh0)), ∃ err. pre-writemeta(path, md, err, user, root, fs, ofh) ∧ ⟨err0 := err; if err0 = ESUCCESS then if root[path].dir? then root[path].meta := md else let fid = root[path].fid in fs[fid] := mkfile(md, fs[fid].content); psynced := ?⟩ (psynced ∧ posix-crash(root, fs, ofh, tree, fs0, ofh0))