]> Zhao Yanbai Git Server - minix.git/commit
VFS/PFS: remove notion of position in pipes
authorThomas Veerman <thomas@minix3.org>
Tue, 11 Dec 2012 19:46:09 +0000 (19:46 +0000)
committerThomas Veerman <thomas@minix3.org>
Fri, 11 Jan 2013 09:18:35 +0000 (09:18 +0000)
commit3de8d1cf6e52dbd6edb8331b6a6b186e6c860646
treeea6bbface133594b5af166cd59732bfe03fb9b41
parent7c8b3ddfedbf67ace632beb1aade5bd94f21f792
VFS/PFS: remove notion of position in pipes

Because pipes have no file position. VFS maintained (file) offsets into a
buffer internal to PFS and stored them in vnodes for simplicity, mixing
the responsibilities of filp and vnode objects.

With this patch PFS ignores the position field in REQ_READ and REQ_WRITE
requests making VFS' job a lot simpler.
servers/pfs/read.c
servers/vfs/open.c
servers/vfs/pipe.c
servers/vfs/proto.h
servers/vfs/read.c
servers/vfs/select.c
servers/vfs/vnode.h