2006-10-25 15:40:36 +02:00
|
|
|
|
|
|
|
/* This file contains the table used to map system call numbers onto the
|
|
|
|
* routines that perform them.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define _TABLE
|
|
|
|
|
|
|
|
#include "fs.h"
|
|
|
|
#include "inode.h"
|
|
|
|
#include "buf.h"
|
|
|
|
#include "super.h"
|
|
|
|
|
2012-03-25 20:25:53 +02:00
|
|
|
int (*fs_call_vec[])(void) = {
|
2006-10-25 15:40:36 +02:00
|
|
|
no_sys, /* 0 not used */
|
2010-03-30 17:00:09 +02:00
|
|
|
no_sys, /* 1 */ /* Was: fs_getnode */
|
2006-10-25 15:40:36 +02:00
|
|
|
fs_putnode, /* 2 */
|
- Introduce support for sticky bit.
- Revise VFS-FS protocol and update VFS/MFS/ISOFS accordingly.
- Clean up MFS by removing old, dead code (backwards compatibility is broken by
the new VFS-FS protocol, anyway) and rewrite other parts. Also, make sure all
functions have proper banners and prototypes.
- VFS should always provide a (syntactically) valid path to the FS; no need for
the FS to do sanity checks when leaving/entering mount points.
- Fix several bugs in MFS:
- Several path lookup bugs in MFS.
- A link can be too big for the path buffer.
- A mountpoint can become inaccessible when the creation of a new inode
fails, because the inode already exists and is a mountpoint.
- Introduce support for supplemental groups.
- Add test 46 to test supplemental group functionality (and removed obsolete
suppl. tests from test 2).
- Clean up VFS (not everything is done yet).
- ISOFS now opens device read-only. This makes the -r flag in the mount command
unnecessary (but will still report to be mounted read-write).
- Introduce PipeFS. PipeFS is a new FS that handles all anonymous and
named pipes. However, named pipes still reside on the (M)FS, as they are part
of the file system on disk. To make this work VFS now has a concept of
'mapped' inodes, which causes read, write, truncate and stat requests to be
redirected to the mapped FS, and all other requests to the original FS.
2009-12-20 21:27:14 +01:00
|
|
|
fs_slink, /* 3 */
|
|
|
|
fs_ftrunc, /* 4 */
|
|
|
|
fs_chown, /* 5 */
|
|
|
|
fs_chmod, /* 6 */
|
|
|
|
fs_inhibread, /* 7 */
|
|
|
|
fs_stat, /* 8 */
|
|
|
|
fs_utime, /* 9 */
|
|
|
|
fs_fstatfs, /* 10 */
|
|
|
|
fs_breadwrite, /* 11 */
|
|
|
|
fs_breadwrite, /* 12 */
|
|
|
|
fs_unlink, /* 13 */
|
|
|
|
fs_unlink, /* 14 */
|
|
|
|
fs_unmount, /* 15 */
|
|
|
|
fs_sync, /* 16 */
|
|
|
|
fs_new_driver, /* 17 */
|
|
|
|
fs_flush, /* 18 */
|
|
|
|
fs_readwrite, /* 19 */
|
|
|
|
fs_readwrite, /* 20 */
|
|
|
|
fs_mknod, /* 21 */
|
|
|
|
fs_mkdir, /* 22 */
|
|
|
|
fs_create, /* 23 */
|
|
|
|
fs_link, /* 24 */
|
|
|
|
fs_rename, /* 25 */
|
|
|
|
fs_lookup, /* 26 */
|
|
|
|
fs_mountpoint, /* 27 */
|
|
|
|
fs_readsuper, /* 28 */
|
2010-03-30 17:00:09 +02:00
|
|
|
no_sys, /* 29 */ /* Was: fs_newnode */
|
- Introduce support for sticky bit.
- Revise VFS-FS protocol and update VFS/MFS/ISOFS accordingly.
- Clean up MFS by removing old, dead code (backwards compatibility is broken by
the new VFS-FS protocol, anyway) and rewrite other parts. Also, make sure all
functions have proper banners and prototypes.
- VFS should always provide a (syntactically) valid path to the FS; no need for
the FS to do sanity checks when leaving/entering mount points.
- Fix several bugs in MFS:
- Several path lookup bugs in MFS.
- A link can be too big for the path buffer.
- A mountpoint can become inaccessible when the creation of a new inode
fails, because the inode already exists and is a mountpoint.
- Introduce support for supplemental groups.
- Add test 46 to test supplemental group functionality (and removed obsolete
suppl. tests from test 2).
- Clean up VFS (not everything is done yet).
- ISOFS now opens device read-only. This makes the -r flag in the mount command
unnecessary (but will still report to be mounted read-write).
- Introduce PipeFS. PipeFS is a new FS that handles all anonymous and
named pipes. However, named pipes still reside on the (M)FS, as they are part
of the file system on disk. To make this work VFS now has a concept of
'mapped' inodes, which causes read, write, truncate and stat requests to be
redirected to the mapped FS, and all other requests to the original FS.
2009-12-20 21:27:14 +01:00
|
|
|
fs_rdlink, /* 30 */
|
|
|
|
fs_getdents, /* 31 */
|
2011-11-09 14:29:12 +01:00
|
|
|
fs_statvfs, /* 32 */
|
2013-03-20 18:04:39 +01:00
|
|
|
no_sys, /* 33 */ /* peek not supported */
|
2006-10-25 15:40:36 +02:00
|
|
|
};
|
|
|
|
|