| # buf = VFS_PAGE_SIZE, afs-cons(dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), m ∈ files ⊦ pcache-cons(pcache[datakey(m, pageno), mkpentry(true, buf)], dirs, files) |
⊦ 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, afs-cons(dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), m ∈ files ⊦ ∀ key. key ∈ pcache[datakey(m, pageno), mkpentry(true, buf)] → key.data? ∧ # pcache[datakey(m, pageno), mkpentry(true, buf)][key].page = VFS_PAGE_SIZE ∧ valid-file-ino(key.ino, dirs, files) ∧ ( ¬ pcache[datakey(m, pageno), mkpentry(true, buf)][key].dirty → key.part ∈ files[key.ino].content ∧ pcache[datakey(m, pageno), mkpentry(true, buf)][key].page = files[key.ino].content[key.part])
Used terms: pcache[datakey(m, pageno), mkpentry(true, buf)], dirs, files