2010-06-01 14:35:33 +02:00
|
|
|
#ifndef __MFS_GLO_H__
|
|
|
|
#define __MFS_GLO_H__
|
|
|
|
|
2006-10-25 15:40:36 +02:00
|
|
|
/* EXTERN should be extern except for the table file */
|
|
|
|
#ifdef _TABLE
|
|
|
|
#undef EXTERN
|
|
|
|
#define EXTERN
|
|
|
|
#endif
|
|
|
|
|
- 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
|
|
|
#include <minix/vfsif.h>
|
|
|
|
|
2006-10-25 15:40:36 +02:00
|
|
|
/* The following variables are used for returning results to the caller. */
|
|
|
|
EXTERN int err_code; /* temporary storage for error number */
|
|
|
|
EXTERN int rdwt_err; /* status of last disk i/o request */
|
|
|
|
|
|
|
|
EXTERN int cch[NR_INODES];
|
|
|
|
|
|
|
|
extern char dot1[2]; /* dot1 (&dot1[0]) and dot2 (&dot2[0]) have a special */
|
|
|
|
extern char dot2[3]; /* meaning to search_dir: no access permission check. */
|
|
|
|
|
|
|
|
extern _PROTOTYPE (int (*fs_call_vec[]), (void) ); /* fs call table */
|
|
|
|
|
|
|
|
EXTERN message fs_m_in;
|
|
|
|
EXTERN message fs_m_out;
|
- 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
|
|
|
EXTERN vfs_ucred_t credentials;
|
2006-10-25 15:40:36 +02:00
|
|
|
|
|
|
|
EXTERN uid_t caller_uid;
|
|
|
|
EXTERN gid_t caller_gid;
|
|
|
|
|
|
|
|
EXTERN int req_nr;
|
|
|
|
|
2010-06-01 14:35:33 +02:00
|
|
|
EXTERN endpoint_t SELF_E;
|
2006-10-25 15:40:36 +02:00
|
|
|
|
2011-09-12 11:00:24 +02:00
|
|
|
EXTERN char user_path[PATH_MAX]; /* pathname to be processed */
|
2006-10-25 15:40:36 +02:00
|
|
|
|
2007-08-07 14:38:35 +02:00
|
|
|
EXTERN dev_t fs_dev; /* The device that is handled by this FS proc.
|
|
|
|
*/
|
|
|
|
EXTERN char fs_dev_label[16]; /* Name of the device driver that is handled
|
|
|
|
* by this FS proc.
|
|
|
|
*/
|
2009-04-27 18:13:51 +02:00
|
|
|
EXTERN int unmountdone;
|
|
|
|
EXTERN int exitsignaled;
|
2006-10-25 15:40:36 +02:00
|
|
|
|
2008-11-19 13:26:10 +01:00
|
|
|
/* our block size. */
|
2010-06-01 14:35:33 +02:00
|
|
|
EXTERN unsigned int fs_block_size;
|
2008-11-19 13:26:10 +01:00
|
|
|
|
|
|
|
/* Buffer cache. */
|
2010-05-05 13:35:04 +02:00
|
|
|
EXTERN struct buf *buf;
|
|
|
|
EXTERN struct buf **buf_hash; /* the buffer hash table */
|
2010-06-01 14:35:33 +02:00
|
|
|
EXTERN unsigned int nr_bufs;
|
2010-05-05 13:35:04 +02:00
|
|
|
EXTERN int may_use_vmcache;
|
2010-06-01 14:35:33 +02:00
|
|
|
|
|
|
|
#endif
|