Commit Graph

54 Commits

Author SHA1 Message Date
thorpej a07f6460c8 MALLOC()/FREE() are not to be used for variable sized allocations. 2000-08-03 00:54:23 +00:00
thorpej 071aed40ac A foolish consistency; most parts of the kernel use bp->b_data, so
change these from bp->b_un.b_addr to bp->b_data, as well.  This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.
2000-05-19 18:54:22 +00:00
itohy 5de5ad21a2 Revoke revoke(2) bug. 1999-08-19 03:42:23 +00:00
wrstuden 3bf14d81e9 Add support for fcntl(2) to generate VOP_FCNTL calls. Any fcntl
call with F_FSCTL set and F_SETFL calls generate calls to a new
fileop fo_fcntl. Add genfs_fcntl() and soo_fcntl() which return 0
for F_SETFL and EOPNOTSUPP otherwise. Have all leaf filesystems
use genfs_fcntl().

Reviewed by: thorpej
Tested by: wrstuden
1999-08-03 20:19:16 +00:00
wrstuden 379a26972f Modify file systems to deal with struct lock in struct vnode. All leaf
fs's other than nfs use genfs_lock() for locking.

Modify lookup routines to set PDIRUNLOCK when they unlock the parrent.
1999-07-08 01:05:58 +00:00
is 1790023ce8 Support ADOS file systems with more then 512 bytes/sector.
Fixes contributed by Detlef Würkner in PR 7653.
1999-06-02 22:04:30 +00:00
kleink 9ee75a4fcc Add _PC_FILESIZEBITS to pathconf vnop. 1999-03-22 19:21:07 +00:00
bouyer 22d556f6cf Make sure a buffer optained from bread() is always bresle()'d in case of
error. Closes PR kern/1448 from Wolfgang Solfrank.
1999-02-10 13:14:08 +00:00
thorpej d0bcffb9a3 Use the pool allocator and the "nointr" pool page allocator for adosfs nodes. 1998-09-01 03:33:26 +00:00
kleink 1bbb6339c8 In readlink, don't copy the string's NUL-terminator, and remove a redundant
check.
1998-08-19 13:12:40 +00:00
kleink 5350df2953 Per POSIX, fail with EINVAL if advisory locking is attempted on a file type
that doesn't support it, rather than using a homegrown EBADF or EOPNOTSUPP.
1998-08-13 10:06:31 +00:00
matthias 574106c52b create miscfs/genfs/genfs_vnops.c:genfs_enoioctl and make all the other
filesystems use it instead of a private version.
1998-08-10 08:11:10 +00:00
perry 27ca6798df bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-09 20:15:38 +00:00
kleink 12a866151b Recognize _PC_SYNC_IO. 1998-08-03 14:19:57 +00:00
thorpej 0f66e53c03 Use genfs_lease_check() 1998-06-25 22:20:39 +00:00
scottr 7171cca4b8 Protect various config(8)-generated files from inclusion while
building LKMs.  Fixes PR 5557.
1998-06-09 07:46:31 +00:00
scottr d48f258f90 Use the newly-defined opt_quota.h. 1998-06-08 04:27:50 +00:00
fvdl e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
fvdl fd5433c6bc Bump last argument to VOP_READDIR to off_t (from u_long). 1997-10-10 01:57:31 +00:00
veego 2aba644f04 Fix a cut&paste (?) mistake. pr#3622 1997-05-14 19:00:17 +00:00
mycroft e3f99a9397 Pass the vnode type to vaccess(), and use it when checking VEXEC. Make sure
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.
1997-05-08 16:19:43 +00:00
kleink 9c16cd8a46 Implement a POSIX compliant genfs VOP_SEEK() and use it in the appropriate
places; by Chris G. Demetriou and myself.
1997-04-11 21:52:00 +00:00
christos 520aa2aeba backout previous kprintf change 1996-10-13 02:52:06 +00:00
christos 5476886e52 printf -> kprintf, sprintf -> ksprintf 1996-10-10 17:47:29 +00:00
mycroft 2bc736661a Implement poll(2). 1996-09-07 12:40:22 +00:00
mycroft c52352c819 Add a set of generic file system operations that most file systems use.
Also, fix some time stamp bogosities.
1996-09-01 23:47:48 +00:00
veego 5bdb632088 u_int -> u_long fixes for printf's 1996-04-23 05:18:29 +00:00
mhitch a0e658617d Add support for OFS, International FileSystems, and blocksizes > 512.
Corrrect floppy rootblock calculation.  Validate filesystem type. (Closes
PR 2232)
Filename hashing requires unsigned characters.  (Closes PR 1026)
Soft link path is null-terminated string, not BSTR.
Use actual file header block info for hard links.
Set nlink to 2 for hard linked files in adosfs_getattr().
Load allocation bitmap and set correct free space.
1996-04-05 05:06:07 +00:00
christos 3e701ffc5a Add forward decls. 1996-02-10 00:44:18 +00:00
christos 2140eeda0f Adosfs prototyping changes. 1996-02-09 19:06:38 +00:00
mycroft 53fccab940 Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
  cleanup.
* Require the file system to decide whether or not linking and unlinking of
  directories is allowed, and disable it for all current file systems.
1996-02-09 14:45:36 +00:00
jtc dd05bd5124 Rename struct timespec fields to conform to POSIX.1b 1996-02-01 00:04:52 +00:00
chopps b84f35f3f0 make nfsable from osymh@gemini.oscs.montana.edu (Michael L. Hitch) 1995-08-18 15:14:33 +00:00
chopps dbd3d08cf0 set blocksize in adosfs_getattr(). fixes pr#968 1995-04-17 12:22:08 +00:00
mycroft 958b56730a amount -> adosfsmount 1995-01-18 09:17:32 +00:00
chopps 31fb8e04bb cleanup a couple botched merges. 1994-12-29 22:06:15 +00:00
chopps 85444a9a0b a couple fixes. Add support for muFS (multi-user adosfs). Default to
case-insesitive lookup.  from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1994-12-28 08:51:56 +00:00
mycroft 609063ce2b Format police. 1994-12-27 19:05:12 +00:00
ws a40374fa29 Implement and use a common access checking routine 1994-12-24 16:43:32 +00:00
mycroft 527b796ff5 Turn lease_check() into a vnode op, per CSRG. 1994-12-13 20:14:30 +00:00
cgd 6ac2bbfc35 be more careful with types, also pull in headers where necessary. 1994-10-30 21:43:03 +00:00
cgd be8c7b9d80 light clean; make sure headers are properly included, types are OK, etc. 1994-10-29 07:58:24 +00:00
cgd 6b86130410 update for new syscall args description mechanism 1994-10-20 04:22:35 +00:00
chopps 11a257ac8f fix access check to honor mount arg,
from Michael Hitch (osymh@gemini.oscs.montana.edu)
1994-10-06 18:41:26 +00:00
chopps 41a2d35564 fix uninitialized use of mask. 1994-08-30 23:06:48 +00:00
chopps 183bffdf36 fix a `bug' actually just an interface issue, cache last indirect block
to avoid geometrically increasing access time when reading files.
1994-07-11 05:07:38 +00:00
cgd cf92afd66e New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD' 1994-06-29 06:29:24 +00:00
cgd f21254981e new standard, minimally intrusive ID format 1994-06-27 19:27:39 +00:00
chopps 61e3e83691 update to new vfs interface. 1994-06-17 20:06:05 +00:00
chopps da4d919720 fix an off by one error in hash chain counting code. Also fix "lockup"
bug
1994-06-02 23:42:19 +00:00