jmc
7a615b0018
Remove usecount check in spec_open. It fails to catch VALIAS situations
...
and vfs_mountedon will handle them all correctly.
2000-10-27 06:28:27 +00:00
fvdl
db4108490a
Adapt for VOP_FSYNC parameter change.
2000-09-19 22:01:59 +00:00
jdolecek
b0fb24279c
change the lf_advlock() arguments from
...
int lf_advlock __P((struct lockf **,
off_t, caddr_t, int, struct flock *, int));
to
int lf_advlock __P((struct vop_advlock_args *, struct lockf **, off_t));
This matches common usage and is also compatible with similar change
in FreeBSD (though they use u_quad_t as last arg).
2000-07-22 15:26:11 +00:00
augustss
bd842961d4
Register, begone!
2000-03-30 12:22:12 +00:00
sommerfeld
a51f685d41
Add appropriate VOP_FCNTL handlers to deadfs and specfs ops vectors.
1999-12-08 19:16:51 +00:00
sommerfeld
f0cc7a5815
Change to comment (only) indicating what the specfs ops vector is used for.
1999-12-08 18:57:07 +00:00
fvdl
0b1963121a
Add Kirk McKusick's soft updates code to the trunk. Not enabled by
...
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.
Bump version number to 1.4O
1999-11-15 18:49:07 +00:00
wrstuden
e682a080e9
In spec_close(), if we're not doing a non-blocking close and VXLOCK is
...
not set, unlock the vnode before calling the device's close routine and
relock it after it returns. tty close routines will sleep waiting for
buffers to drain, which won't happen often times as the other side needs
to grab the vnode lock first.
Make all unmount routines lock the device vnode before calling VOP_CLOSE().
1999-10-16 23:53:26 +00:00
ross
e1b25b7bd6
Make spec_write() process errors and return them, otherwise we don't even
...
notice things like hitting the end of a partition or device. (To be sure,
writes to block special files are rare, but as long as we support them...)
1998-10-02 00:21:39 +00:00
thorpej
7cc905f5c8
Add some braces to make egcs happy (ambiguous else warning).
1998-08-18 06:27:01 +00:00
kleink
12a866151b
Recognize _PC_SYNC_IO.
1998-08-03 14:19:57 +00:00
cgd
651b44e211
Rework the way kernel include files are installed. In the new method,
...
as with user-land programs, include files are installed by each directory
in the tree that has includes to install. (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change. Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
kleink
382743ada3
Convert fsync vnode operator implementations and usage from the old `waitfor'
...
argument and MNT_WAIT/MNT_NOWAIT to `flags' and FSYNC_WAIT.
1998-06-05 19:53:00 +00:00
fvdl
e5bc90f40c
Merge with Lite2 + local changes
1998-03-01 02:20:01 +00:00
christos
4071635fa6
Add missing cast to dev_t
1997-10-16 23:57:51 +00:00
mycroft
64d080efe0
Make various standard wmesg strings const.
1997-10-09 12:59:50 +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
kleink
8c04785710
Remove superfluous (uio_resid == 0) check.
1997-04-02 17:14:32 +00:00
kleink
c1779f82c3
added advisory record locking support
1997-04-02 17:09:47 +00:00
christos
92a808f167
backout previous kprintf changes
1996-10-13 02:21:25 +00:00
christos
60d201973e
printf -> kprintf, sprintf -> ksprintf
1996-10-10 22:46:11 +00:00
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +00:00
thorpej
2c02b8ec56
Remove some unused variables.
1996-09-05 09:26:14 +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
christos
4ef330b934
remove include of <sys/cpu.h>
1996-04-22 01:38:12 +00:00
mycroft
183aec8fa8
GC *_nullop(). Minor nits.
1996-02-13 13:12:48 +00:00
christos
631ccba638
miscfs prototype changes
1996-02-09 22:39:56 +00:00
mycroft
2d1739cbe1
Implement VOP_BWRITE() using vn_bwrite(), per r_friedl@informatik.uni-kl.de.
1995-10-15 05:18:12 +00:00
cgd
e9d17d38b5
avoid unnecessary aging of buffers. This used to make sense, when buffer
...
caches were much smaller, but makes little sense now, and will become more
useless as RAM (and buffer cache) sizes grow. Suggested by Bob Baron.
1995-07-24 21:19:27 +00:00
cgd
fd0f559215
add missing splx(), as suggested by enami@sys.ptg.sony.co.jp.
1995-07-08 00:42:45 +00:00
mycroft
839598dfec
Make spec_read() and spec_write() vaguely consistent.
1995-07-02 07:20:50 +00:00
mycroft
7f3a305b34
Use the new d_type field. Set VISTTY for vnodes of tty devices.
1995-04-10 00:48:10 +00:00
mycroft
7276c4ed44
Remove a_fp.
1994-12-14 18:45:21 +00:00
mycroft
527b796ff5
Turn lease_check() into a vnode op, per CSRG.
1994-12-13 20:14:30 +00:00
christos
923c9743a2
fixed struct comment; passed extra argument (struct file *) to open
1994-11-14 06:07:45 +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
paulus
988b7f5158
Support for block special files with sector sizes other than DEV_BSIZE -
...
if the device has a disklabel with a non-zero sector size value, that
value is used instead of DEV_BSIZE.
1994-07-16 11:40:56 +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
mycroft
cde1d47595
Update to 4.4-Lite fs code, with local changes.
1994-06-08 11:33:09 +00:00
cgd
ebcaebd335
MIN -> min, MAX -> max
1994-05-24 02:35:53 +00:00
cgd
3dda0064a5
Convert mount, vnode, and buf structs to use <sys/queue.h>. Also,
...
some knf and structure frobbing to do along with it.
1994-04-21 07:47:31 +00:00
cgd
7df895cf91
oops; fix that last...
1994-01-27 03:42:02 +00:00
cgd
5e12573ac2
hack from Mike Karels to deal with the last close on a controlling
...
terminal. from 4.4BSD.
1994-01-27 03:16:40 +00:00
cgd
ae30022085
fix return type of vnode print routine
1993-12-22 13:14:10 +00:00
mycroft
21edb9924e
Canonicalize all #includes.
1993-12-18 03:59:02 +00:00
cgd
76dbc1192b
new specfs.h and fifo.h locations
1993-11-12 05:54:12 +00:00
glass
5e6a2e33c0
fix chris typo.
1993-10-30 16:11:07 +00:00
cgd
06c4106aec
limit block sizes requested
1993-10-29 19:25:18 +00:00
ws
053f138dae
Changes to VFS readdir semantics
...
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers
1993-09-07 15:40:14 +00:00