Age | Commit message (Collapse) | Author |
|
if keylen < 0, bad things happen.
large keys are useless, limit size and use stack for temp storage
bzero of keyctx is unrelated to keylen, wipe whole thing.
ok markus tdeval
|
|
ok tedu@
|
|
|
|
looked at by various, testing henning@ mcbride@ dan weeks
mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
|
|
apply fix from tom cosgrove to get the full range.
|
|
this change REQUIRES running MAKEDEV again after booting with a new kernel.
with a hint from tom cosgrove. ok deraadt@ millert@
|
|
argument. old cred only calls user suser_ucred. this will allow future
work to more flexibly implement the idea of a root process. looks like
something i saw in freebsd, but a little different.
use of suser_ucred vs suser in file system code should be looked at again,
for the moment semantics remain unchanged.
review and input from art@ testing and further review miod@
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
(remember: d_[type|pack]name do not need terminating null).
Take the opportunity to introduce some paranoia and check the device
name lengths to make sure they fit, with appropriate errors if not.
ok tedu@ tdeval@
|
|
turns out that some arches will return (-1) in case of error, while others
will return (0).
Until we make our minds on this, make sure that callers of this function
properly handle 0 or (-1) as failure.
ok krw@
|
|
ok niklas@
|
|
splassert(IPL_BIO) in all known callers, just to make sure).
|
|
|
|
|
|
machines or some configurations or in some phase of the moon (we actually
don't know when or why) files disappeared. Since we've not been able to
track down the problem in two weeks intense debugging and we need -current
to be stable, back out everything to a state it had before UBC.
We apologise for the inconvenience.
|
|
toouches by me.
|
|
code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>.
Tested for the past few weeks by many developers, should be in a pretty stable
state, but will require optimizations and additional cleanups.
|
|
While in the area, convert nfs node allocation from malloc to pool and do
some cleanups.
Based on the UBC changes in NetBSD. niklas@ ok.
|
|
|
|
|
|
|
|
poor man's encrypted file system with this. Blame the Greek. okay niklas@
|
|
implement an ioctl to get a spoofed label even for disks that have
a label on them.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reference for making transferral of meta-information possible from
readdisklabel to bounds_check_with_label. The first (and maybe only)
thing that will use this is the multi-disklabel-format code on the
alpha where the labelsector is passed via cpu_disklabel so the label
write-protection can work correctly no matter what label was found.
Also use a new macro DKBAD to get at the dkbad field of the cpu_disklabel
implementations that contain it. This too is for multi-disklabel
architectures where the "bad" field can be inside a union. Use this
macro as a means for a driver to check if an architecture supports
dkbad constructs.
Remove proto of bounds_check_with_label from all MD disklabel.h as it
is in sys/disklabel.h.
I have not been able to test the changes everywhere, if I break anything
I apologize, and promise to fix it as soon as I become aware of it.
|
|
gson@araneus.fi
|
|
|
|
|
|
|
|
|
|
however ffs_write needs a proc pointer in the uio structure, so fill in
&proc0 to avoid a NULL deref
|
|
through the buffercache thus maintaining cache-coherency after unmount of
a mounted vnd. This is good for diskimage creation, you should still use
the old vnds for swapping on, though
|
|
|
|
|
|
|
|
|
|
|
|
New generic disk framework. Highlights:
New metrics handling. Metrics are now kept in the new `struct disk'.
Busy time is now stored as a timeval, and transfer count in bytes.
Storage for disklabels is now dynamically allocated, so that the size
of the disk structure is not machine-dependent.
Several new functions for attaching and detaching disks, and handling
metrics calculation.
Old-style instrumentation is still supported in drivers that did it
before. However, old-style instrumentation is being deprecated, and
will go away once the userland utilities are updated for the new
framework.
For usage and architectural details, see the forthcoming disk(9)
manual page.
|
|
Bring in several changes from the ccd:
* Be a bit better with prototypes
* Use struct dkdevice in vnd_softc.
* Prevent the unit from being unconfigured while open.
* Implement a simple locking mechanism and use it for sanity's
sake.
Still needs more work; needs to support disklabels and the like.
|
|
|