| # buf = VFS_PAGE_SIZE, files[m] = mkfile(m0, md, # links(m, dirs), content), afs-cons(dirs, files), afs-cons(dirs, files[m, mkfile(m0, md, # links(m, dirs), content[pageno, buf])]), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), synced(files, icache, pcache), m ∈ files ⊦ pcache-cons(pcache[datakey(m, pageno), mkpentry(false, buf)], dirs, files[m, mkfile(m0, md, # links(m, dirs), content[pageno, buf])]) |
⊦ pcache-cons(pcache, dirs, files) ↔ (∀ key. key ∈ pcache → key.data? ∧ # pcache[key].page = VFS_PAGE_SIZE ∧ valid-file-ino(key.ino, dirs, files) ∧ (¬ pcache[key].dirty → key.part ∈ files[key.ino].content ∧ pcache[key].page = files[key.ino].content[key.part]))
# buf = VFS_PAGE_SIZE, files[m] = mkfile(m0, md, # links(m, dirs), content), afs-cons(dirs, files[m, mkfile(m0, md, # links(m, dirs), content[pageno, buf])]), afs-cons(dirs, files), pcache-cons(pcache, dirs, files), synced(files, icache, pcache), synced(dirs, icache, pcache), m ∈ files ⊦ ∀ key. key ∈ pcache[datakey(m, pageno), mkpentry(false, buf)] → key.data? ∧ # pcache[datakey(m, pageno), mkpentry(false, buf)][key].page = VFS_PAGE_SIZE ∧ valid-file-ino(key.ino, dirs, files[m, mkfile(m0, md, # links(m, dirs), content[pageno, buf])]) ∧ ( ¬ pcache[datakey(m, pageno), mkpentry(false, buf)][key].dirty → key.part ∈ files[m, mkfile(m0, md, # links(m, dirs), content[pageno, buf])][key.ino].content ∧ pcache[datakey(m, pageno), mkpentry(false, buf)][key].page = files[m, mkfile(m0, md, # links(m, dirs), content[pageno, buf])][key.ino].content[key.part])
Used terms: pcache[datakey(m, pageno), mkpentry(false, buf)], dirs, files[m, mkfile(m0, md, # links(m, dirs), content[pageno, buf])]