2012-02-13 16:28:04 +01:00
|
|
|
#ifndef __VFS_LOCK_H__
|
|
|
|
#define __VFS_LOCK_H__
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
/* This is the file locking table. Like the filp table, it points to the
|
|
|
|
* inode table, however, in this case to achieve advisory locking.
|
|
|
|
*/
|
|
|
|
EXTERN struct file_lock {
|
|
|
|
short lock_type; /* F_RDLOCK or F_WRLOCK; 0 means unused slot */
|
|
|
|
pid_t lock_pid; /* pid of the process holding the lock */
|
2006-10-25 15:40:36 +02:00
|
|
|
struct vnode *lock_vnode;
|
2005-04-21 16:53:53 +02:00
|
|
|
off_t lock_first; /* offset of first byte locked */
|
|
|
|
off_t lock_last; /* offset of last byte locked */
|
|
|
|
} file_lock[NR_LOCKS];
|
- 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
|
|
|
|
2012-02-13 16:28:04 +01:00
|
|
|
#endif
|