| buf = mkbuf(VFS_PAGE_SIZE), buf0 = buf1, err = ESUCCESS, ino = (ino2 + ino0) % VFS_PAGE_SIZE, ino0 = ino5, ino1 = ino4, ino2 = ino3, ¬ isdir, pageno = (ino2 + ino0) / VFS_PAGE_SIZE ⊦ [let n = min(ino1 - ino2 + ino0, VFS_PAGE_SIZE - ino, inode.size - ino2 + ino0) in if n ≠ 0 then {afs_readpage#(inode, pageno, dirs, files, asynced; buf, err); if err = ESUCCESS then {buf0 := copy(buf, ino, buf0, ino0, n); ino0 := ino0 + n}} else isdir := true] (⌊err⌋ ∨ err = ESUCCESS), VFS_PAGE_SIZE = 0 |
buf = mkbuf(VFS_PAGE_SIZE), buf0 = buf1, err = ESUCCESS, ino = (ino2 + ino0) % VFS_PAGE_SIZE, ino0 = ino5, ino1 = ino4, ino2 = ino3, ¬ isdir, n = min(ino1 - ino2 + ino0, VFS_PAGE_SIZE - ino, inode.size - ino2 + ino0), pageno = (ino2 + ino0) / VFS_PAGE_SIZE, ino1 ≥ ino2 + ino0, VFS_PAGE_SIZE ≥ ino, inode.size ≥ ino2 + ino0 ⊦ [if n ≠ 0 then {afs_readpage#(inode, pageno, dirs, files, asynced; buf, err); if err = ESUCCESS then {buf0 := copy(buf, ino, buf0, ino0, n); ino0 := ino0 + n}} else isdir := true] (⌊err⌋ ∨ err = ESUCCESS), VFS_PAGE_SIZE = 0