]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoThis commit was generated by cvs2svn to compensate for changes in r51848,
obrien [Sat, 2 Oct 1999 01:46:57 +0000 (01:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r51848,
which included commits to RCS files with non-trunk default branches.

24 years agoVirgin import of EGCS 1.1.2
obrien [Sat, 2 Oct 1999 01:46:57 +0000 (01:46 +0000)]
Virgin import of EGCS 1.1.2

24 years agoBackout part of the changes made in 1.111
roger [Fri, 1 Oct 1999 16:58:40 +0000 (16:58 +0000)]
Backout part of the changes made in 1.111

For unknown devices the output will now be
  pci0: unknown card (vendor=0x109e, dev=0x0878) at 14.1 irq 19
instead of
  pci0: unknown card DD^0878 (vendor=0x109e, dev=0x0878) at 14.1 irq 19

Before this change, the code used to take the PCI vendor id and translate it
into a three letter ASCII name.
For PnP devices, the vendor id _does_ map to a nice ASCII name
(eg Creative Labs PnP ID maps to "CTL", ESS PnP ID maps to "ESS")

But there is no such mapping for PCI devices, as can be seen by the
example above where the Brooktree PCI vendor ID maps to "DD^"

The PCI Special Interest Group confirmed they do not have any mappings
from vendor ID to ASCII.

24 years agoOops. That'll teach me to commit without testing. I either replaced
peter [Fri, 1 Oct 1999 14:26:28 +0000 (14:26 +0000)]
Oops.  That'll teach me to commit without testing.  I either replaced
one trigraph with another, or completely missed the point.  Kill it for
real this time.

24 years agoZap a trigraph (???)
peter [Fri, 1 Oct 1999 14:23:36 +0000 (14:23 +0000)]
Zap a trigraph (???)

24 years agoForce the "calls" count for malloc types to be 64 bit where it keeps track
peter [Fri, 1 Oct 1999 14:21:50 +0000 (14:21 +0000)]
Force the "calls" count for malloc types to be 64 bit where it keeps track
of the number of times a particular type has been used.  It's rather easy
to overflow.  One site I'm looking at seems to do it in a matter of days.
On the Alpha this is a no-op since 'long' is 64 bit already.  The sole
user of this interface seems to be vmstat -m and friends which will need
a recompile.  The overheads of using a 64 bit int should be pretty light
as the kernel just does "calls++" type operations and that's it.

24 years agoUse the sys/wormio.h definitions of the CDRIOCNEXTWRITEABLEADDR and
peter [Fri, 1 Oct 1999 14:14:20 +0000 (14:14 +0000)]
Use the sys/wormio.h definitions of the CDRIOCNEXTWRITEABLEADDR and
CDRIOCBLANK ioctls rather than duplicating them.

24 years agoUse the sys/wormio.h definitions of CDRIOCNEXTWRITEABLEADDR and
peter [Fri, 1 Oct 1999 14:12:46 +0000 (14:12 +0000)]
Use the sys/wormio.h definitions of CDRIOCNEXTWRITEABLEADDR  and
CDRIOCBLANK ioctls.

24 years agoMove a couple of ioctl defines from wormcontrol.c to wormio.h. These are
peter [Fri, 1 Oct 1999 14:10:50 +0000 (14:10 +0000)]
Move a couple of ioctl defines from wormcontrol.c to wormio.h. These are
used in the dev/ata/atapi-cd driver too.

24 years agoSync w/ sys/i386/i386/machdep.c revision 1.364.
kato [Fri, 1 Oct 1999 12:46:08 +0000 (12:46 +0000)]
Sync w/ sys/i386/i386/machdep.c revision 1.364.

24 years agoSync w/ sys/i386/conf/files.i386 revision 1.275.
kato [Fri, 1 Oct 1999 12:29:49 +0000 (12:29 +0000)]
Sync w/ sys/i386/conf/files.i386 revision 1.275.

24 years agoIntroduce the disk mini-layer and devstat_end_transaction_buf() in cam/scsi.
phk [Fri, 1 Oct 1999 09:34:10 +0000 (09:34 +0000)]
Introduce the disk mini-layer and devstat_end_transaction_buf() in cam/scsi.

Somewhat reviewed by:   ken

24 years agoLet sleep(1) handle fractions of a second (up to nanosecond).
ru [Fri, 1 Oct 1999 07:53:40 +0000 (07:53 +0000)]
Let sleep(1) handle fractions of a second (up to nanosecond).

This is a conservative change.  It does the same thing in weird
cases like the old one.  For example, 'sleep abcd' still sleeps
for zero seconds.  `sleep 10.a' and `sleep 10.05aa' do the best
and not abort (ie: 10.a == 10 seconds, 10.05a == 10.05 seconds).

24 years agoImplement the use of si_addr in siginfo_t.
marcel [Fri, 1 Oct 1999 07:49:37 +0000 (07:49 +0000)]
Implement the use of si_addr in siginfo_t.

Suggested by: jdp

24 years agoDon't check %cs *after* it has being set in sigreturn. If the check
marcel [Fri, 1 Oct 1999 07:22:50 +0000 (07:22 +0000)]
Don't check %cs *after* it has being set in sigreturn. If the check
fails, applications could end up running in kernel mode (oops).

Submitted by: bde

24 years agoBack out an unintended commit. This wasn't supposed to be
mdodd [Fri, 1 Oct 1999 05:31:27 +0000 (05:31 +0000)]
Back out an unintended commit.  This wasn't supposed to be
in my work directory on freefall.

24 years agoTurn off and remove the 'old' if_ep ISA/EISA/PCCARD driver.
mdodd [Fri, 1 Oct 1999 05:24:27 +0000 (05:24 +0000)]
Turn off and remove the 'old' if_ep ISA/EISA/PCCARD driver.

Turn on the 'new' if_ep driver which supports:

ISA 3c509
MCA 3c529
EISA 3c579
PCCARD 3c589

I think all we're missing is support for the VME bus and S-100 bus
Etherlink III cards.

The new code has been tested by a number of people and all the important
bits work.  I've not been able to test the EISA code but will do so once
my hardware arrives.  Since I've changed nothing in the EISA code I suspect
it will perform the same manner as before.

Future changes involve whacking the ISA and PCCARD front ends to use
newbus and to convert the driver to bus_space and make it use ifmedia.

This is the first working network driver that supports MCA bus devices btw.

Enjoy.

24 years agoAdd support for the AHA-1640 SCSI adapter.
mdodd [Fri, 1 Oct 1999 03:12:15 +0000 (03:12 +0000)]
Add support for the AHA-1640 SCSI adapter.

The changes to sys/dev/aha/aha.c that allow these
cards to function properly will be here in a day
or 2.

24 years agomake sure a trivial apm.h is created, as some people have assumed that
mjacob [Fri, 1 Oct 1999 02:41:30 +0000 (02:41 +0000)]
make sure a trivial apm.h is created, as some people have assumed that
all architectures have apm and have just included apm.h blindly.

24 years agoIf dumpdev exists, it's automatically enabled. Change comment to reflect.
billf [Fri, 1 Oct 1999 00:13:44 +0000 (00:13 +0000)]
If dumpdev exists, it's automatically enabled. Change comment to reflect.

24 years agoMake all slices/partitions correctly inherit si_* fields.
phk [Thu, 30 Sep 1999 21:14:28 +0000 (21:14 +0000)]
Make all slices/partitions correctly inherit si_* fields.

Lightly tested by: msmith

24 years agoUse sigemptyset rather than sa_mask = 0.
peter [Thu, 30 Sep 1999 19:55:00 +0000 (19:55 +0000)]
Use sigemptyset rather than sa_mask = 0.

Submitted by: "John W. DeBoskey" <jwd@unx.sas.com>

24 years agoPlug a potential filedescriptor leak. This will probably almost
guido [Thu, 30 Sep 1999 19:13:17 +0000 (19:13 +0000)]
Plug a potential filedescriptor leak. This will probably almost
never be triggered.

Reviewed by:  David Greenman

24 years agoThis fix allows cards inserted in one of the bottem-most slots on an xp1000
gallatin [Thu, 30 Sep 1999 19:09:22 +0000 (19:09 +0000)]
This fix allows cards inserted in one of the bottem-most slots on an xp1000
(behind the built-in ppb on hose 1) to be found:

When testing the adaptec controller on alpha, I realized I misread the xp1000
documentation and the way I'm calculating the bus number for PCI
config space accesses on the tsunami is wrong.  I had thought that a bus
behind a ppb should be numbered as the nth bus in that hose, but it
actually needs to be the nth global bus within the system.  The bus number
for the primary bus on a hose must always remain 0 when calculating config
space addresses.

24 years agoFix disk_close once more, and better this time.
phk [Thu, 30 Sep 1999 19:03:25 +0000 (19:03 +0000)]
Fix disk_close once more, and better this time.

Spotted by: bde

24 years agoMake the fxp driver work on alpha, rather than panic the machine on boot
gallatin [Thu, 30 Sep 1999 19:03:12 +0000 (19:03 +0000)]
Make the fxp driver work on alpha, rather than panic the machine on boot
and/or when using the card.

o Convert the driver to using bus_space.  This allows alphas with
fxp's to boot, rather than panic'ing because rman_get_virtual()
doesn't really return a virtual address on alphas.

o Fix an alpha unaligned access error caused by some misfeature of
gcc/egcs: if link_addr & rbd_addr in the fxp_rfa struct are 32 bit
quantities, egcs will assume they are naturally aligned. So it will do
a ldl & some shifty/masky to twiddle 16 bit values in fxp_lwcopy().
However, if they are 16-bit aligned, the ldl will actually be done on
a 16-bit aligned value & we will panic with an unaligned access
error... Changing their definition to an array of chars seems to fix
this.  I obtained this from NetBSD.

I've tested this on both i386 & alpha.

24 years agoAdd libcrypt. This previously/coincidentally worked for login,
markm [Thu, 30 Sep 1999 18:53:34 +0000 (18:53 +0000)]
Add libcrypt. This previously/coincidentally worked for login,
because login was already linked against it, but others have a
problem.

24 years agoAdd ahc driver. The adaptec driver works just dandy on my xp1000 using
gallatin [Thu, 30 Sep 1999 18:51:56 +0000 (18:51 +0000)]
Add ahc driver.  The adaptec driver works just dandy on my xp1000 using
a 2940UW.  The dp264 (and ds20, I think) have an AIC7895 on board so it
is important the ahc driver be in GENERIC so that FreeBSD can install on
these boxes.

24 years agoAdd sigprocmask to HIDDEN_SYSCALLS. This renames the syscall to
marcel [Thu, 30 Sep 1999 15:07:43 +0000 (15:07 +0000)]
Add sigprocmask to HIDDEN_SYSCALLS. This renames the syscall to
_thread_sys_sisprocmask in libc_r. This solves the undefined symbol...

Reported by: Kenneth Wayne Culver

24 years agoSort by date, reindent sigset_t entry
imp [Thu, 30 Sep 1999 14:54:48 +0000 (14:54 +0000)]
Sort by date, reindent sigset_t entry

24 years agoAdd the proper headers so that the SIGNOTEMPTY and SIGSETAND
marcel [Thu, 30 Sep 1999 14:51:31 +0000 (14:51 +0000)]
Add the proper headers so that the SIGNOTEMPTY and SIGSETAND
macros are defined.

24 years agoCorrectly escape a macro call in the description of the .D1 macro.
mpp [Thu, 30 Sep 1999 14:39:22 +0000 (14:39 +0000)]
Correctly escape a macro call in the description of the .D1 macro.

Also use the correct macro (.D1, not .Dl) to format the text,
and in the example output.

PR: docs/14051
Submitted by: <andrew@ugh.net.au>

24 years ago(null commit).
jkoshy [Thu, 30 Sep 1999 09:40:44 +0000 (09:40 +0000)]
(null commit).

> PR: docs/140007

That should be:

PR: docs/14007

24 years agoCorrect typos and -mdoc usage. Improve clarity of language.
jkoshy [Thu, 30 Sep 1999 09:35:54 +0000 (09:35 +0000)]
Correct typos and -mdoc usage.  Improve clarity of language.

PR: docs/140007
(partial)
Submitted by: Adam Wight <adamw@holonet.net>

24 years agoSigh, too many late nights!
jkh [Thu, 30 Sep 1999 08:32:35 +0000 (08:32 +0000)]
Sigh, too many late nights!

24 years agoCount bogus_page as wired.
dt [Thu, 30 Sep 1999 07:39:20 +0000 (07:39 +0000)]
Count bogus_page as wired.

24 years agoPlug an accounting leak: count pages in ZONE_INTERRUPT zones as wired.
dt [Thu, 30 Sep 1999 07:35:50 +0000 (07:35 +0000)]
Plug an accounting leak: count pages in ZONE_INTERRUPT zones as wired.

24 years agoSupport GRE packets
brian [Thu, 30 Sep 1999 07:23:13 +0000 (07:23 +0000)]
Support GRE packets

Submitted by: Harry Starr <starr@gccs.com.au>

24 years agoRemove the D_NOCLUSTER[RW] options which were added because vn had
phk [Thu, 30 Sep 1999 07:11:30 +0000 (07:11 +0000)]
Remove the D_NOCLUSTER[RW] options which were added because vn had
problems.  Now that Matt has fixed vn, this can go.  The vn driver
should have used d_maxio (now si_iosize_max) anyway.

24 years agoTest the slices for openness before we close them; doing it the other way
msmith [Thu, 30 Sep 1999 05:29:59 +0000 (05:29 +0000)]
Test the slices for openness before we close them; doing it the other way
around meant that the higher level close routine never gets called.
(phk is on the road; this is a quick fix to get things working and may need
 more polish)

24 years agoFix a typo in a comment.
mpp [Thu, 30 Sep 1999 04:55:23 +0000 (04:55 +0000)]
Fix a typo in a comment.

24 years agoFix typo in november
imp [Wed, 29 Sep 1999 22:29:15 +0000 (22:29 +0000)]
Fix typo in november
Add signal breakage

**** NEW KERNEL NEEDED FOR MAKE WORLD ****

24 years agoAdd and activate the man page for memcontrol(8).
chris [Wed, 29 Sep 1999 21:43:31 +0000 (21:43 +0000)]
Add and activate the man page for memcontrol(8).

Reviewed by: msmith

24 years agoFix misspelling of the "addq" opcode.
jdp [Wed, 29 Sep 1999 21:10:25 +0000 (21:10 +0000)]
Fix misspelling of the "addq" opcode.

24 years agoDo not follow symlinks when binding a unix domain socket.
guido [Wed, 29 Sep 1999 21:09:41 +0000 (21:09 +0000)]
Do not follow symlinks when binding a unix domain socket.

This fixes the ssh 1.2.27 vulnerability as reported in bugtraq.

24 years agoReconnect doscmd. It's been fixed.
marcel [Wed, 29 Sep 1999 20:13:34 +0000 (20:13 +0000)]
Reconnect doscmd. It's been fixed.

24 years agoCareless use of struct proc *p caused major problems. 'p' is allowed to
marcel [Wed, 29 Sep 1999 20:12:39 +0000 (20:12 +0000)]
Careless use of struct proc *p caused major problems. 'p' is allowed to
be NULL in this function (nfs_sigintr). Reorder the statements and guard
them all with a single if (p != NULL).

reported, reviewed and tested by: jdp

24 years agoUnbreak doscmd after the sigset_t change:
marcel [Wed, 29 Sep 1999 20:09:19 +0000 (20:09 +0000)]
Unbreak doscmd after the sigset_t change:

doscmd heavily depends on struct sigcontext which luckily is mostly passed
between functions as usion regcontext_t. By redefining union regcontext_t in
terms of mcontext_t almost all bases are covered.

It also seems to me that doscmd was in a transitional state. The redundant
definitions made it difficult to get a clear overview and could easily cause
oversight. To make sure my changes were ok, I went as far as to complete the
transition. It was not exactly necessary, but I expect to have to come back
here some more ("whistle" if I'm wrong :-).

24 years agoRemove v_maxio from struct vnode.
phk [Wed, 29 Sep 1999 20:05:33 +0000 (20:05 +0000)]
Remove v_maxio from struct vnode.

Replace it with mnt_iosize_max in struct mount.

Nits from: bde

24 years ago Make FreeBSD less conservative in determining when to return a cookie
dillon [Wed, 29 Sep 1999 17:14:58 +0000 (17:14 +0000)]
Make FreeBSD less conservative in determining when to return a cookie
    error for a directory.  I have made this change after a great deal of
    review although I cannot be absolutely sure that this meets the spec.

    The issue devolves into whether changes in an underlying (UFS) directory
    can cause NFS directory blocks to be renumbered.  My read of the code
    indicates that NFS directory blocks will not be renumbered, which means
    that the cookies should still remain valid after a change is made to
    the underlying directory.  This being the case, a cookie error should
    not be returned when a change is made to the underlying directory and,
    instead, the NFS client should rely on mtime detection to invalidate and
    reload the directory.

    The use of mtime is problematic in of itself, due to insufficient
    resolution, which is why I believe the original conservative error
    handling was done.  Still, there have been dozens of bug reports by
    people needing solaris<->FreeBSD interoperability and these have to
    be accomodated.

24 years ago Bring kernel malloc documentation up to date, including the example.
dillon [Wed, 29 Sep 1999 16:49:18 +0000 (16:49 +0000)]
Bring kernel malloc documentation up to date, including the example.

PR: docs/10059

24 years agosigset_t change (part 5 of 5)
marcel [Wed, 29 Sep 1999 15:18:46 +0000 (15:18 +0000)]
sigset_t change (part 5 of 5)
-----------------------------

Most of the userland changes are in libc. For both the alpha
and the i386 setjmp has been changed to accomodate for the
new sigset_t. Internally, libc is mostly rewritten to use the
new syscalls. The exception is in compat-43/sigcompat.c

The POSIX thread library has also been rewritten to use the
new sigset_t. Except, that it currently only handles NSIG
signals instead of the maximum _SIG_MAXSIG. This should not
be a problem because current applications don't use any
signals higher than NSIG.

There are version bumps for the following libraries:
  libdialog
  libreadline
  libc
  libc_r
  libedit
  libftpio
  libss

These libraries either a) have one of the modified structures
visible in the interface, or b) use sigset_t internally and
may cause breakage if new binaries are used against libraries
that don't have the sigset_t change. This not an immediate
issue, but will be as soon as applications start using the
new range to its fullest.

NOTE: libncurses already had an version bump and has not been
      given one now.

NOTE: doscmd is a real casualty and has been disconnected for
      the moment. Reconnection will eventually happen after
      doscmd has been fixed. I'm aware that being the last one
      to touch it, I'm automaticly promoted to being maintainer.
      According to good taste this means that I will receive a
      badge which either will be glued or mechanically stapled,
      drilled or otherwise violently forced onto me :-)

NOTE: pcvt/vttest cannot be compiled with -traditional. The
      change cause sys/types to be included along the way which
      contains the const and volatile modifiers. I don't consider
      this a solution, but more a workaround.

24 years agosigset_t change (part 4 of 5)
marcel [Wed, 29 Sep 1999 15:12:18 +0000 (15:12 +0000)]
sigset_t change (part 4 of 5)
-----------------------------

The compatibility code and/or emulators have been updated:

iBCS2 now mostly uses the older syscalls. SVR4 now properly
handles all signals. This has been achieved by using the
new sigset_t throughout the emulator. The Linuxulator has
been severely updated. Internally the new Linux sigset_t is
made the default. These are then mapped to and from the
new FreeBSD sigset_t.

Also, rt_sigsuspend has been implemented in the Linuxulator.
Implementing this syscall basicly caused all this sigset_t
changing in the first place and the syscall has been used
throughout the change as a means for testing. It basicly is
too much work to undo the implementation so that it can
later be added again.

A special note on the use of sv_sigtbl and sv_sigsize in
struct sysentvec:
Every signal larger than sv_sigsize is not translated and is
passed on to the signal handler unmodified. Signals in the
range 1 upto and including sv_sigsize are translated.
The rationale is that only the system defined signals need to
be translated.

The emulators also have been updated so that the translation
tables are only indexed for valid (system defined) signals.
This change also fixes the translation bug already in the
SVR4 emulator.

24 years agosigset_t change (part 3 of 5)
marcel [Wed, 29 Sep 1999 15:06:27 +0000 (15:06 +0000)]
sigset_t change (part 3 of 5)
-----------------------------

By introducing a new sigframe so that the signal handler operates
on the new siginfo_t and on ucontext_t instead of sigcontext, we
now need two version of sendsig and sigreturn.

A flag in struct proc determines whether the process expects an
old sigframe or a new sigframe. The signal trampoline handles
which sigreturn to call. It does this by testing for a magic
cookie in the frame.

The alpha uses osigreturn to implement longjmp. This means that
osigreturn is not only used for compatibility with existing
binaries. To handle the new sigset_t, setjmp saves it in
sc_reserved (see NOTE).

the struct sigframe has been moved from frame.h to sigframe.h
to handle the complex header dependencies that was caused by
the new sigframe.

NOTE: For the i386, the size of jmp_buf has been increased to hold
      the new sigset_t. On the alpha this has been prevented by
      using sc_reserved in sigcontext.

24 years agosigset_t change (part 2 of 5)
marcel [Wed, 29 Sep 1999 15:03:48 +0000 (15:03 +0000)]
sigset_t change (part 2 of 5)
-----------------------------

The core of the signalling code has been rewritten to operate
on the new sigset_t. No methodological changes have been made.
Most references to a sigset_t object are through macros (see
signalvar.h) to create a level of abstraction and to provide
a basis for further improvements.

The NSIG constant has not been changed to reflect the maximum
number of signals possible. The reason is that it breaks
programs (especially shells) which assume that all signals
have a non-null name in sys_signame. See src/bin/sh/trap.c
for an example. Instead _SIG_MAXSIG has been introduced to
hold the maximum signal possible with the new sigset_t.

struct sigprop has been moved from signalvar.h to kern_sig.c
because a) it is only used there, and b) access must be done
though function sigprop(). The latter because the table doesn't
holds properties for all signals, but only for the first NSIG
signals.

signal.h has been reorganized to make reading easier and to
add the new and/or modified structures. The "old" structures
are moved to signalvar.h to prevent namespace polution.

Especially the coda filesystem suffers from the change, because
it contained lines like (p->p_sigmask == SIGIO), which is easy
to do for integral types, but not for compound types.

NOTE: kdump (and port linux_kdump) must be recompiled.

Thanks to Garrett Wollman and Daniel Eischen for pressing the
importance of changing sigreturn as well.

24 years agosigset_t change (part 1 of 5)
marcel [Wed, 29 Sep 1999 15:01:21 +0000 (15:01 +0000)]
sigset_t change (part 1 of 5)
-----------------------------

Rename sigaction, sigprocmask, sigpending and sigsuspend to
osigaction, osigprocmask, osigpending and osigsuspend (resp)
and add new syscalls for them to support the new sisgset_t
without breaking existing binaries.

Change the prototype of sigaltstack to use the typedef stack_t
instead of struct sigaltstack to reflect that it is SUSv2
compliant.

Also, rename sigreturn to osigreturn and add a new syscall
to support the modified stackframe. The change is caused by
sigreturn operating on ucontext_t now and the fact that
siginfo_t has been updated to conform to SUSv2.

24 years agoFix world-breaking bug, add $FreeBSD$ tag.
dcs [Wed, 29 Sep 1999 10:58:43 +0000 (10:58 +0000)]
Fix world-breaking bug, add $FreeBSD$ tag.

This happened to be my first "for real" broken world. I had broken
it once before, but nobody noticed, so it didn't count.

So, how do I get the "I broke world and all I got was the lousy t-shirt"
t-shirt?

24 years agoAdd ID for ESS ES1869.
dfr [Wed, 29 Sep 1999 07:27:35 +0000 (07:27 +0000)]
Add ID for ESS ES1869.

24 years agoFixes a silly bug that somehow escaped my notice all these months.
dcs [Wed, 29 Sep 1999 04:46:01 +0000 (04:46 +0000)]
Fixes a silly bug that somehow escaped my notice all these months.

24 years agoBring in ficl version 2.03. No version bump for loader.
dcs [Wed, 29 Sep 1999 04:43:16 +0000 (04:43 +0000)]
Bring in ficl version 2.03. No version bump for loader.

24 years agoAdd description of checkparity and rebuildparity.
grog [Tue, 28 Sep 1999 23:03:29 +0000 (23:03 +0000)]
Add description of checkparity and rebuildparity.

Remove a half-started message.

Reported-by:       "Jeffrey J. Mountin" <jeff@mountin.net>

24 years agoBrucify comments.
grog [Tue, 28 Sep 1999 23:02:14 +0000 (23:02 +0000)]
Brucify comments.

vinum_lpi: Add information about progress of rebuildparity and
           checkparity commands.

listconfig: Print object counts in a different format, don't refer to
the internal number of slots allocated:

Caused-confusion-to: Norbert Meissner <norbert.meissner@daimlerchrysler.com>
vinum_info: Change format of device numbers so that they fit in the
column (ignore high-order minor number bits, which aren't really of
much interest).

24 years agovinum_init: Fix message typo.
grog [Tue, 28 Sep 1999 23:00:05 +0000 (23:00 +0000)]
vinum_init: Fix message typo.

vinum_start: bzero the statinfo.dinfo struct.  The lack of this was
causing sporadic failures of the start command.

Add body of vinum_checkparity command.

24 years agostruct plex: Add variables checkblock and rebuildblock to keep track
grog [Tue, 28 Sep 1999 22:58:07 +0000 (22:58 +0000)]
struct plex: Add variables checkblock and rebuildblock to keep track
             of parity check and rebuild operations.  This enables us
             to stop the operation and restart at a later time.

enum parityop: Trivial enum to decide what parityops() is going to do.

24 years agorevive_block: set b_resid correctly.
grog [Tue, 28 Sep 1999 22:57:29 +0000 (22:57 +0000)]
revive_block: set b_resid correctly.

parityops: New function to check and rebuild RAID-5 parity blocks.
Not yet usable.

24 years agologrq: add sdiodone case.
grog [Tue, 28 Sep 1999 22:56:54 +0000 (22:56 +0000)]
logrq: add sdiodone case.

launch_requests: Remove debug code

sdio: Reformat log call.

24 years agoDon't count iterations while waiting for a lock to become free.
grog [Tue, 28 Sep 1999 22:56:04 +0000 (22:56 +0000)]
Don't count iterations while waiting for a lock to become free.

24 years agoAdd ioctls VINUM_CHECKPARITY and VINUM_RESETPARITY, still to be fully
grog [Tue, 28 Sep 1999 22:55:37 +0000 (22:55 +0000)]
Add ioctls VINUM_CHECKPARITY and VINUM_RESETPARITY, still to be fully
implemented.

24 years agoReduce MAX_IOCTL_REPLY to 1024; the previous value was more than ioctl
grog [Tue, 28 Sep 1999 22:54:58 +0000 (22:54 +0000)]
Reduce MAX_IOCTL_REPLY to 1024; the previous value was more than ioctl
could stand.

Define the correct return lengths for a number of ioctls.

Add ioctls VINUM_CHECKPARITY and VINUM_RESETPARITY, still to be fully
implemented.

24 years agoopen_drive: Don't call set_drive_state to take a drive down, do it
grog [Tue, 28 Sep 1999 22:46:39 +0000 (22:46 +0000)]
open_drive: Don't call set_drive_state to take a drive down, do it
            ourselves.  This breaks a vicious circle which caused
            vinum to dereference a null vp if device nodes were
            missing.

Reported-by: Brad Chisholm <sasblc@unx.sas.com>
Alec Wolman <wolman@cs.washington.edu>

check_drive: Don't take a drive down if it's only referenced.

read_drive: Remove unused variable.

24 years agosdio_done: Log events if DEBUG_LASTREQS set.
grog [Tue, 28 Sep 1999 22:45:21 +0000 (22:45 +0000)]
sdio_done: Log events if DEBUG_LASTREQS set.

24 years agoChange remove_drive_entry
grog [Tue, 28 Sep 1999 22:43:59 +0000 (22:43 +0000)]
Change remove_drive_entry
Add parityops

24 years agoRemove some superfluous comments.
grog [Tue, 28 Sep 1999 22:43:07 +0000 (22:43 +0000)]
Remove some superfluous comments.

get_empty_volume: initialize plexes to -1 (not allocated)

remove_drive_entry:
  Remove recurse parameter (there's nothing below a drive in the hierarchy).
  Use remove_sd_entry to remove sds, don't do it ourselves.
  Log errors, don't throw rude remarks.

remove_plex_entry:
  Don't use plex->subdisks as a loop limit, it gets changed in the
     loop.  This caused some removals to only remove half the subdisks.
  Change logging of some "impossible" situations.

remove_volume_entry:
  Use remove_plex_entry to remove plexes, don't do it ourselves.

update_sd_config:
  Use set_sd_state to do the work.

24 years agoMinor formatting changes (7th attempt)
grog [Tue, 28 Sep 1999 22:42:06 +0000 (22:42 +0000)]
Minor formatting changes (7th attempt)

24 years agoAdd loginfo type for sdiodone.
grog [Tue, 28 Sep 1999 22:27:10 +0000 (22:27 +0000)]
Add loginfo type for sdiodone.

24 years ago* add a non-reset device- will not reset the channel on open. you
cg [Tue, 28 Sep 1999 21:43:35 +0000 (21:43 +0000)]
* add a non-reset device- will not reset the channel on open.  you
  will have to mknod yourself for now.
* don't eat the first write()
* partial rvplayer fix- don't panic on unaligned writes unless our
  feeder chain requires them for downconversion.  a fuller fix is
  on the way.

24 years agoadd a missing blank line
cg [Tue, 28 Sep 1999 20:24:28 +0000 (20:24 +0000)]
add a missing blank line

24 years agoadd the ad1816 driver
cg [Tue, 28 Sep 1999 20:02:44 +0000 (20:02 +0000)]
add the ad1816 driver

24 years agoseperate the ad1816 driver from the mss driver since it shares no code
cg [Tue, 28 Sep 1999 20:00:06 +0000 (20:00 +0000)]
seperate the ad1816 driver from the mss driver since it shares no code

24 years agoUse rmand_get_bus{tag,handle} rather than hard wiring things to
imp [Tue, 28 Sep 1999 19:59:41 +0000 (19:59 +0000)]
Use rmand_get_bus{tag,handle} rather than hard wiring things to
I386_BUS_SPACE_IO.  Compiles now on the Alpha, but likely will not
work due to bus space address <-> virtual address mapping bogons that
work for i386 but not alpha.

24 years agoBack out my backout, it was already posix compliant. Any new fields are
peter [Tue, 28 Sep 1999 16:58:46 +0000 (16:58 +0000)]
Back out my backout, it was already posix compliant.  Any new fields are
required to be "announced" by a new bit in sa_flags to indicate the
program is aware of and has taken care of them.  eg: SA_SIGINFO means
the program has used the sa_siginfo field (versus sa_handler).

24 years agoDocument the "noasync" option.
obrien [Tue, 28 Sep 1999 15:49:47 +0000 (15:49 +0000)]
Document the "noasync" option.

24 years agoFix previous commit. The standards specifically say: "The structure
peter [Tue, 28 Sep 1999 15:40:17 +0000 (15:40 +0000)]
Fix previous commit.  The standards specifically say:  "The structure
sigaction, used to describe an action to be taken, is defined in the
header <signal.h> to include at least the following members:"
                             ^^^^^^^^
A sigaction defined on stack with essentially random contents may have
just about anything underneath fields that the program doesn't know about.
It is not safe to delete the bzero.

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
marcel [Tue, 28 Sep 1999 13:43:21 +0000 (13:43 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags added so that we can lose the bzero.
IIRC, this code is not used anymore since the addition of
ncurses. Commit the change anyway so, just to be safe.

$FreeBSD$ tag added

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
marcel [Tue, 28 Sep 1999 13:33:13 +0000 (13:33 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags added so that the 'struct sigaction'
can be declared local in both functions that use the global
(static) declaration. Remove the global declaration.

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
marcel [Tue, 28 Sep 1999 13:26:11 +0000 (13:26 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
marcel [Tue, 28 Sep 1999 13:24:13 +0000 (13:24 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.

$FreeBSD$ tag added.

24 years agoIn sbflush(), don't exit the while loop too early: this can cause
pb [Tue, 28 Sep 1999 12:59:18 +0000 (12:59 +0000)]
In sbflush(), don't exit the while loop too early: this can cause
an empty mbuf to stay in the queue, then causing a needless panic
because sb_cc == 0 and sb_mbcnt != 0.

But we still need to panic rather than endlessly looping if, for
some reason, sb_cc == 0 and there are non-empty mbufs in the queue.

PR: kern/11988
Reviewed by: fenner

24 years agoIntroduce ttyread() and ttywrite() which do the canonical thing.
phk [Tue, 28 Sep 1999 11:45:31 +0000 (11:45 +0000)]
Introduce ttyread() and ttywrite() which do the canonical thing.

Use them in many tty drivers.

Reviewed by: julian, bde

24 years agoAdd another ID for the AWE64.
dfr [Tue, 28 Sep 1999 08:25:08 +0000 (08:25 +0000)]
Add another ID for the AWE64.

24 years agoSync w/ sys/i386/isa/pcaudio.c revision 1.54.
kato [Tue, 28 Sep 1999 08:19:53 +0000 (08:19 +0000)]
Sync w/ sys/i386/isa/pcaudio.c revision 1.54.

24 years agoRemoved aha driver.
kato [Tue, 28 Sep 1999 08:16:37 +0000 (08:16 +0000)]
Removed aha driver.

24 years agoSync w/ sys/i386/conf/files.i386 revision 1.274.
kato [Tue, 28 Sep 1999 08:07:42 +0000 (08:07 +0000)]
Sync w/ sys/i386/conf/files.i386 revision 1.274.

24 years agoDo not defer setting of the aliasing address from
ru [Tue, 28 Sep 1999 08:01:46 +0000 (08:01 +0000)]
Do not defer setting of the aliasing address from
interface name if not operating in dynamic mode.

Reviewed by: Ari Suutari <ari@suutari.iki.fi>

24 years agoReconnect 'bktr' now that world won't (I hope) break again from it.
peter [Tue, 28 Sep 1999 07:28:59 +0000 (07:28 +0000)]
Reconnect 'bktr' now that world won't (I hope) break again from it.
'make depend' was falling over in it before.

24 years agoMake the bktr module build. The Makefile was badly mangled, including
peter [Tue, 28 Sep 1999 07:23:59 +0000 (07:23 +0000)]
Make the bktr module build.  The Makefile was badly mangled, including
leaving the ".c" out of most of the SRCS= source files.

24 years ago Make sure file after VOP_OPEN is VMIO'd when transfering control from
dillon [Tue, 28 Sep 1999 05:48:39 +0000 (05:48 +0000)]
Make sure file after VOP_OPEN is VMIO'd when transfering control from
    a lower layer to an upper layer.  I'm not sure how necessary this is
    for reading.

    Fix bug in union_lookup() (note: there are probably still several bugs
    in union_lookup()).  This one set lerror as a side effect without
    setting lowervp, causing copyup code further on down to crash on a null
    lowervp pointer.  Changed the side effect to use a temporary variable
    instead.

24 years ago.Nm += "rtld"
phantom [Tue, 28 Sep 1999 05:35:59 +0000 (05:35 +0000)]
.Nm += "rtld"
apropos(1) now knows about rtld(1) manpage.

24 years agoOoops- forgot to commit this.
mjacob [Tue, 28 Sep 1999 05:14:52 +0000 (05:14 +0000)]
Ooops- forgot to commit this.
PR: 14009
Submitted by: jreynold@primenet.com

24 years agoXref strlcat, strlcpy
imp [Tue, 28 Sep 1999 04:11:47 +0000 (04:11 +0000)]
Xref strlcat, strlcpy

Inspired by: NetBSD commit message describing this.