| # buf0 = VFS_PAGE_SIZE, VFS_PAGE_SIZE = n1 + m2 % VFS_PAGE_SIZE, (∅)[ino] = mkientry(boolvar1, mkinode(m0, md0, boolvar0, m5, m6, m7)), cache_pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), ((cache_files ⊕ cache_pcache0) ⊕ cache_icache)[m3] = mkfile(m4, md1, # links(m3, cache_dirs), content), cache_files[ino] = mkfile(m8, md, m9, content0), fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1) = fill(content[m2 / VFS_PAGE_SIZE], zero, m2 % VFS_PAGE_SIZE, n1), afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache0) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache0, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache0), datakey(m3, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m2 / VFS_PAGE_SIZE ∈ content, m3 ∈ cache_files, ino ∈ cache_files, m2 ≤ m, VFS_PAGE_SIZE ≤ # content[m2 / VFS_PAGE_SIZE], cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 % VFS_PAGE_SIZE = 0, ino = m3, mkfile(m8, md, m9, content0 ⊕ mkcontent(ino, cache_pcache0)) = mkfile (m8, md, m9, content0 ⊕ mkcontent(ino, truncate(m3, m2, cache_pcache0)[datakey(m3, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1))])), ino ∈ cache_icache |
# buf0 = VFS_PAGE_SIZE, VFS_PAGE_SIZE = n1 + m2 % VFS_PAGE_SIZE, (∅)[ino] = mkientry(boolvar1, mkinode(m0, md0, boolvar0, m5, m6, m7)), cache_pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), ((cache_files ⊕ cache_pcache0) ⊕ cache_icache)[m3] = mkfile(m4, md1, # links(m3, cache_dirs), content), cache_files[ino] = mkfile(m8, md, # links(ino, cache_dirs), content0), fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1) = fill(content[m2 / VFS_PAGE_SIZE], zero, m2 % VFS_PAGE_SIZE, n1), afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache0) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache0, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache0), datakey(m3, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m2 / VFS_PAGE_SIZE ∈ content, m3 ∈ cache_files, ino ∈ cache_files, m2 ≤ m, VFS_PAGE_SIZE ≤ # content[m2 / VFS_PAGE_SIZE], cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 % VFS_PAGE_SIZE = 0, ino = m3, mkfile(m8, md, # links(ino, cache_dirs), content0 ⊕ mkcontent(ino, cache_pcache0)) = mkfile (m8, md, # links(ino, cache_dirs), content0 ⊕ mkcontent(ino, truncate(m3, m2, cache_pcache0)[datakey(m3, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1))])), ino ∈ cache_icache
Used simplifier rules: afs-cons-file-nlink: ⊦ afs-cons(dirs, files) ∧ ino ∈ files ∧ files[ino] = mkfile(m, md, n, content) → # links(ino, dirs) = n; (forward) from specification afs-base