| # buf0 = VFS_PAGE_SIZE, asynced ↔ false, cache_files[m] = mkfile(m3, md0, # links(m, cache_dirs), content), afs_files = (cache_files ⊕ cache_pcache) ⊕ cache_icache, buf = content[pageno], err = ESUCCESS, ino = m, key = datakey(ino, pageno), pcache = cache_pcache, pe = mkpentry(asynced, buf), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache), afs-cons(cache_dirs, cache_files), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache), m ∈ cache_files, pageno ∈ content, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ⟨afs_readpage#(mkinode(m, md, boolvar, m0, m1, m2), pageno, cache_dirs, afs_files, cache_asynced; buf0, err0)⟩ (afs_files = (cache_files ⊕ pcache[key, pe]) ⊕ cache_icache ∧ content[pageno] = buf0 ∧ err = err0), content[pageno] = zeropage, datakey(m, pageno) ∈ cache_pcache |
# buf0 = VFS_PAGE_SIZE, cache_files[m] = mkfile(m3, md0, # links(m, cache_dirs), content), content[pageno] ≠ zeropage, afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache), pageno ∈ content, m ∈ cache_files, ¬ datakey(m, pageno) ∈ cache_pcache, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ⟨afs_readpage#(mkinode(m, md, boolvar, m0, m1, m2), pageno, cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache, cache_asynced; buf0, err0)⟩ ( (cache_files ⊕ cache_pcache) ⊕ cache_icache = (cache_files ⊕ cache_pcache[datakey(m, pageno), mkpentry(false, content[pageno])]) ⊕ cache_icache ∧ content[pageno] = buf0 ∧ ESUCCESS = err0)