| files[m] = mkfile(m1, md1, # links(m, dirs), content0), afs-cons(dirs, files), dcache-cons(dcache, dirs, files), icache-cons(icache, dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), m ∈ files, ⌊err0⌋ , asynced2 → synced(files, icache, pcache) ⊦ [err := err0; asynced := ?] ⟪asynced4 := asynced0; if err = ESUCCESS then let asynced = false in {icache_set#(mkinode(m, md, false, # links(m, dirs), 0, m2), asynced; err, icache); pcache_truncate#(m, m2, n; err, pcache); if asynced4 then pcache_set#(m, m2 / VFS_PAGE_SIZE, none.buf, asynced; err, pcache)}; if ¬ asynced4 ∨ err ≠ ESUCCESS then buf-opt := none⟫ ( icache-cons(icache, dirs, files) ∧ pcache-cons(pcache, dirs, files) ∧ synced(dirs, icache, pcache) ∧ (asynced2 → synced(files, icache, pcache))), datakey(m, m2 / VFS_PAGE_SIZE) ∈ pcache |
files[m] = mkfile(m1, md1, # links(m, dirs), content0), err = err0, afs-cons(dirs, files), dcache-cons(dcache, dirs, files), icache-cons(icache, dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), m ∈ files, ⌊err0⌋ , asynced2 → synced(files, icache, pcache) ⊦ [asynced := ?] ⟪asynced4 := asynced0; if err = ESUCCESS then let asynced = false in {icache_set#(mkinode(m, md, false, # links(m, dirs), 0, m2), asynced; err, icache); pcache_truncate#(m, m2, n; err, pcache); if asynced4 then pcache_set#(m, m2 / VFS_PAGE_SIZE, none.buf, asynced; err, pcache)}; if ¬ asynced4 ∨ err ≠ ESUCCESS then buf-opt := none⟫ ( icache-cons(icache, dirs, files) ∧ pcache-cons(pcache, dirs, files) ∧ synced(dirs, icache, pcache) ∧ (asynced2 → synced(files, icache, pcache))), datakey(m, m2 / VFS_PAGE_SIZE) ∈ pcache