]> Zhao Yanbai Git Server - minix.git/commit
PFS: use libfsdriver 53/2753/3
authorDavid van Moolenbroek <david@minix3.org>
Sun, 24 Aug 2014 10:18:30 +0000 (10:18 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 18 Sep 2014 12:46:28 +0000 (12:46 +0000)
commitf859061eafa7665d8241f2f3949ecb2ce461295c
tree6ce757516a18b1bdd41329c75ac4717acaef26cf
parent2e89653e65c25c480c40ec47d9e27349f1279c8c
PFS: use libfsdriver

In order to avoid creating libfsdriver exceptions, two changes to VFS
are necessary:

- the returned position field for reads/writes is no longer abused to
  return the new pipe size; VFS is perfectly capable of updating the
  size itself;
- during system startup, PFS is now sent a mount request, just like all
  other file systems.

In proper "two steps forward, one step back" fashion, the latter point
has the consequence that PFS can no longer drop its privileges at
startup.  This is probably best resolved with a more general solution
for all boot image system services.  The upside is that PFS no longer
needs to be linked with libc.

Change-Id: I92e2410cdb0d93d0e6107bae10bc08efc2dbb8b3
20 files changed:
minix/fs/pfs/Makefile
minix/fs/pfs/buffer.c
minix/fs/pfs/fs.h
minix/fs/pfs/glo.h
minix/fs/pfs/inode.c
minix/fs/pfs/inode.h
minix/fs/pfs/link.c
minix/fs/pfs/main.c
minix/fs/pfs/misc.c
minix/fs/pfs/mount.c
minix/fs/pfs/open.c
minix/fs/pfs/proto.h
minix/fs/pfs/read.c
minix/fs/pfs/stadir.c
minix/fs/pfs/super.c
minix/fs/pfs/table.c
minix/fs/pfs/utility.c [deleted file]
minix/servers/vfs/main.c
minix/servers/vfs/mount.c
minix/servers/vfs/read.c