minix/servers/vfs
David van Moolenbroek f76d75a5ec Various VFS and MFS fixes to improve correctness, consistency and
POSIX compliance.

VFS changes:
* truncate() on a file system mounted read-only no longer panics MFS.
* ftruncate() and fcntl(F_FREESP) now check for write permission on
  the file descriptor instead of the file, write().
* utime(), chown() and fchown() now check for file system read-only
  status.

MFS changes:
* link() and rename() no longer return the internal EENTERMOUNT and
  ELEAVEMOUNT errors to the application as part of a check on the
  source path.
* rename() now treats EENTERMOUNT from the destination path check as
  an error, preventing file system corruption from renaming a normal
  directory to an existing mountpoint directory.
* mountpoints (mounted-on dirs) are hidden better during lookups:
  - if a lookup starts from a mountpoint, the first component has to
    be ".." (anything else being a VFS-FS protocol violation).
  - in that case, the permissions of the mountpoint are not checked.
  - in all other cases, visiting a mountpoint always results in
    EENTERMOUNT.
* a lookup on ".." from a mount root or chroot(2) root no longer
  succeeds if the caller does not have search permission on that
  directory.
* POSIX: getdents() now updates directory access times.
* POSIX: readlink() now returns partial results instead of ERANGE.

Miscellaneous changes:
* semaphore file handling bug (leading to hangs) fixed in test 32.

The VFS changes should now put the burden of checking for read-only
status of file systems entirely on VFS, and limit the access
permission checks that file systems have to perform, to checking
search permission on directories during lookups. From this point on,
any deviation from that spceification should be considered a bug.
Note that for legacy reasons, the root partition is assumed to be
mounted read-write.
2009-05-18 11:27:12 +00:00
..
const.h quick cleanup of old mfs cruft from vfs 2009-05-08 14:12:41 +00:00
device.c don't suspend the process as a side-effect if 2009-05-08 13:50:29 +00:00
dmap.c Added dmap_async_driver and dmap_sel_filp fields. Support for asynch character 2008-02-22 15:01:00 +00:00
dmap.h Added dmap_async_driver and dmap_sel_filp fields. Support for asynch character 2008-02-22 15:01:00 +00:00
exec.c Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
file.h Added filp_state for driver recovery and filp_select_flags to store select 2008-02-22 14:19:23 +00:00
filedes.c Added filp_state for driver recovery and filp_select_flags to store select 2008-02-22 14:19:23 +00:00
fproc.h make unpause() decrease susp_count, as it shouldn't be decreased 2009-05-08 13:56:41 +00:00
fs.h make unpause() decrease susp_count, as it shouldn't be decreased 2009-05-08 13:56:41 +00:00
fscall.c Limited support for nested FS->VFS requests during VFS->FS call. 2009-05-11 10:02:28 +00:00
glo.h remove unused global variable from vfs 2009-05-08 13:54:01 +00:00
link.c Various VFS and MFS fixes to improve correctness, consistency and 2009-05-18 11:27:12 +00:00
lock.c First cut at 64-bit file offsets in block devices for mkfs/fsck. 2006-11-27 14:21:43 +00:00
lock.h Merge of VFS by Balasz Gerofi with Minix trunk. 2006-10-25 13:40:36 +00:00
main.c make unpause() decrease susp_count, as it shouldn't be decreased 2009-05-08 13:56:41 +00:00
Makefile Limited support for nested FS->VFS requests during VFS->FS call. 2009-05-11 10:02:28 +00:00
misc.c Various VFS and MFS fixes to improve correctness, consistency and 2009-05-18 11:27:12 +00:00
mmap.c Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
mount.c make unpause() decrease susp_count, as it shouldn't be decreased 2009-05-08 13:56:41 +00:00
open.c cleanup of vfs shutdown logic; makes clean unmounts easier (but 2009-04-29 16:59:18 +00:00
param.h New VFS interface 2007-08-07 12:52:47 +00:00
path.c regression fix: vfs lookup passes incorrect chroot information after crossing mountpoints 2009-05-09 17:53:22 +00:00
pipe.c make unpause() decrease susp_count, as it shouldn't be decreased 2009-05-08 13:56:41 +00:00
protect.c Various VFS and MFS fixes to improve correctness, consistency and 2009-05-18 11:27:12 +00:00
proto.h Limited support for nested FS->VFS requests during VFS->FS call. 2009-05-11 10:02:28 +00:00
read.c turn off scary looking debug messages. 2009-05-07 09:57:43 +00:00
request.c Limited support for nested FS->VFS requests during VFS->FS call. 2009-05-11 10:02:28 +00:00
request.h cleanup 2007-08-10 13:02:39 +00:00
select.c Initialize deferred field. This seems to fix a hanging select() bug. 2008-12-17 14:20:08 +00:00
select.h Asynchronous select implementation. 2008-02-22 15:46:59 +00:00
stadir.c cleanup of vfs shutdown logic; makes clean unmounts easier (but 2009-04-29 16:59:18 +00:00
table.c Higher NCALLS requires bigger table. New calls are in PM. 2008-02-22 14:51:38 +00:00
time.c Various VFS and MFS fixes to improve correctness, consistency and 2009-05-18 11:27:12 +00:00
timers.c Merge of VFS by Balasz Gerofi with Minix trunk. 2006-10-25 13:40:36 +00:00
type.h quick cleanup of old mfs cruft from vfs 2009-05-08 14:12:41 +00:00
utility.c turn off scary looking debug messages. 2009-05-07 09:57:43 +00:00
vmnt.c Merge of VFS by Balasz Gerofi with Minix trunk. 2006-10-25 13:40:36 +00:00
vmnt.h . new kernel call sysctl for generic unprivileged system operations; 2009-01-26 17:43:59 +00:00
vnode.c make unpause() decrease susp_count, as it shouldn't be decreased 2009-05-08 13:56:41 +00:00
vnode.h quick cleanup of old mfs cruft from vfs 2009-05-08 14:12:41 +00:00
write.c Merge of VFS by Balasz Gerofi with Minix trunk. 2006-10-25 13:40:36 +00:00