| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Problem found by Christer Oberg. OK henning@, deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
encapsulating all such access into wall-defined functions
that makes sure locking is done as needed.
It also cleans up some uses of wall time vs. uptime some
places, but there is sure to be more of these needed as
well, particularily in MD code. Also, many current calls
to microtime() should probably be changed to getmicrotime(),
or to the {,get}microuptime() versions.
ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others
"Oh, that is not your problem!" from miod@
|
| |
|
| |
|
| |
|
|
|
|
|
| |
don't bother with microtime. time should be more than enough precision.
from netbsd.
|
|
|
|
|
|
|
| |
now call the poll backend. With this change we implement greater
poll(2) functionality instead of emulating it via the select backend.
Adapted from NetBSD and including some changes from FreeBSD.
Tested by many, deraadt@ OK
|
| |
|
| |
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|
|
| |
use LK_RETRY in kernfs_root(). "just in case" stuff.
|
| |
|
|
|
|
|
|
| |
osrelease and ostype were not).
ok tedu@
|
|
|
|
| |
These are the files that were ok:ed and tested.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- cache_lookup
move common code from various fs's here
always return with vnode and parent locked
adjust return codes
- PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode
- kernfs and procfs
lock vnode in get_root
don't unlock (again) in kernfs_freevp
fix memory leak in procfs
From tedu@stanford.edu
deraadt@ and various other ok
|
|
|
|
| |
Last bits of diff generated by Chris Kuethe.
|
| |
|
| |
|
|
|
|
|
|
| |
physmem and usermem correctly.
kernel/2404 from peterw@ifost.org.au with some small fixups from me.
|
| |
|
|
|
|
| |
the filesystem if we're allowed to mmap the file.
|
|
|
|
| |
(Look ma, I might have broken the tree)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
reads at just the right time is is possible to get duplicate output but
in practice this is extremely rare. Joint effort with Theo.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fstatfs(2), and getfsstat(2) so you will need to build a new kernel
before doing a "make build" or you will get "unimplemented syscall" errors.
The new struct statfs has the following featuires:
o Has a u_int32_t flags field--now softdep can have a real flag.
o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man
page used to lie about setting invalid/unused fields to -1. SunOS does
that but our code never has.
o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9
and having it there but always 0 is confusing. It is conceivable
that this may cause some old code to not compile but that is better
than silently breaking.
o Adds a mount_info union that contains the FSTYPE_args struct. This
means that "mount" can now tell you all the options a filesystem was
mounted with. This is especially nice for NFS.
Other changes:
o The linux statfs emulation didn't convert between BSD fs names
and linux f_type numbers. Now it does, since the BSD f_type
number is useless to linux apps (and has been removed anyway)
o FreeBSD's struct statfs is different from our (both old and new)
and thus needs conversion. Previously, the OpenBSD syscalls
were used without any real translation.
o mount(8) will now show extra info when invoked with no arguments.
However, to see *everything* you need to use the -v (verbose) flag.
|
| |
|
|
|
|
| |
w/o MNT_FORCE.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
to be vop_generic_revoke, vop_generic_bwrite, vop_generic_islocked,
vop_generic_lock and vop_generic_unlock.
Create vop_generic_abortop and propogate change to all file systems.
Fix PR/371.
Get rid of locking in NULLFS (should be mostly unnecessary now except for
forced unmounts).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
From Alan Barrett <apb@iafrica.com> with some changes.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Vic Able:
> While <miscfs/kernfs/kernfs.h> has a kernfs_node, it depends
> on a structure that's defined in <miscfs/kernfs/kernfs_vnops.c>.
> Oops! That's not very social. :-)
[I built a new kernel fine, but don't have time to run "make build"
it is my intuition that this will not have any bad effects, but
I didn't test. Just back it out if it hurts you and I'll try again.]
|
|
|
|
| |
OpenBSD define, not BSD which is a bit more useful.
|
|
|
|
| |
Greece. From ftp.funet.fi:/pub/unix/security/net/ip/BSDipsec.tar.gz
|
|
|
|
| |
kernfs_vnops.c:305: warning: long unsigned int format, u_int arg (arg 3)
|
| |
|
| |
|
| |
|
| |
|
| |
|