minix/servers/mfs
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
..
buf.h Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
cache.c minor fixes 2008-11-19 14:10:33 +00:00
const.h Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
device.c Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
drivers.h Merge of VFS by Balasz Gerofi with Minix trunk. 2006-10-25 13:40:36 +00:00
fs.h Merge of VFS by Balasz Gerofi with Minix trunk. 2006-10-25 13:40:36 +00:00
glo.h - delete unused .h files 2009-04-27 16:13:51 +00:00
inc.h Merge of VFS by Balasz Gerofi with Minix trunk. 2006-10-25 13:40:36 +00:00
inode.c . new kernel call sysctl for generic unprivileged system operations; 2009-01-26 17:43:59 +00:00
inode.h Move queue.h to include/sys so that it can be used elsewhere. Pull in 2009-04-22 20:02:39 +00:00
link.c Various VFS and MFS fixes to improve correctness, consistency and 2009-05-18 11:27:12 +00:00
main.c - delete unused .h files 2009-04-27 16:13:51 +00:00
Makefile Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
misc.c removed or optionalized verbose/debugging messages 2007-02-16 15:50:30 +00:00
mount.c - delete unused .h files 2009-04-27 16:13:51 +00:00
open.c throw out debugging code. 2008-12-11 14:44:10 +00:00
path.c Various VFS and MFS fixes to improve correctness, consistency and 2009-05-18 11:27:12 +00:00
pipe.c Added new interface to VFS. 2007-08-07 12:38:35 +00:00
protect.c Removed references to stacktrace. 2007-08-07 13:21:55 +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 Various VFS and MFS fixes to improve correctness, consistency and 2009-05-18 11:27:12 +00:00
stadir.c REQ_FSTATFS now operates on the root inode (the inode parameter has been 2007-08-17 11:20:59 +00:00
super.c Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
super.h Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
table.c Limited support for nested FS->VFS requests during VFS->FS call. 2009-05-11 10:02:28 +00:00
time.c Added new interface to VFS. 2007-08-07 12:38:35 +00:00
type.h Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
utility.c Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00
write.c Basic VM and other minor improvements. 2008-11-19 12:26:10 +00:00