1 /* VTreeFS - table.c - by Alen Stojanov and David van Moolenbroek */
6 int (*fs_call_vec
[])(void) = {
8 no_sys
, /* 1 getnode */
9 fs_putnode
, /* 2 putnode */
11 no_sys
, /* 4 ftrunc */
14 do_noop
, /* 7 inhibread */
17 fs_fstatfs
, /* 10 fstatfs */
18 no_sys
, /* 11 bread */
19 no_sys
, /* 12 bwrite */
20 no_sys
, /* 13 unlink */
21 no_sys
, /* 14 rmdir */
22 fs_unmount
, /* 15 unmount */
23 do_noop
, /* 16 sync */
24 do_noop
, /* 17 new_driver */
25 no_sys
, /* 18 flush */
26 fs_read
, /* 19 read */
27 no_sys
, /* 20 write */
28 no_sys
, /* 21 mknod */
29 no_sys
, /* 22 mkdir */
30 no_sys
, /* 23 create */
32 no_sys
, /* 25 rename */
33 fs_lookup
, /* 26 lookup */
34 no_sys
, /* 27 mountpoint */
35 fs_readsuper
, /* 28 readsuper */
36 no_sys
, /* 29 newnode */
37 fs_rdlink
, /* 30 rdlink */
38 fs_getdents
, /* 31 getdents */
39 fs_statvfs
, /* 32 statvfs */
42 /* This should not fail with "array size is negative": */
44 dummy
[sizeof(fs_call_vec
) == NREQS
* sizeof(fs_call_vec
[0]) ? 1 : -1];