Commit Graph

194 Commits

Author SHA1 Message Date
peter
13a21f2864 Install kld version (there can be only one) 1998-11-11 07:04:49 +00:00
peter
a6a170bc80 /usr/bin/ibcs2 comes from src/sys/modules/ibcs2 now. This is probably
the wrong place, but we cannot install both into the same file.
I suspect there should be a usr.bin/{linux|ibcs2}/ directory conataining
these.
1998-11-11 05:22:05 +00:00
peter
de9df2d572 Cannot install two different versions of /usr/bin/linux in the same place.
This is replaced by the kld version now.
1998-11-11 05:19:56 +00:00
peter
66e0951b90 Remove machine/cputypes.h - it's an i386 only thing 1998-11-06 01:34:06 +00:00
peter
5f827a38d2 Update unionfs comments; It could be made to work but isn't worth the
effort since LKM's will be going away soon.
1998-11-03 08:07:08 +00:00
grog
76da0c99f8 Remove some dead code and comments 1998-11-03 06:38:58 +00:00
grog
c8987f3eb3 Print a warning if we removed a junked drive
Take a drive down if it's not open
1998-11-03 06:38:26 +00:00
grog
554499a350 Take drive down if the disk driver tells us it's not there 1998-11-03 06:37:57 +00:00
grog
38b57c5dca Check for duplicate subdisk names 1998-11-03 06:37:14 +00:00
grog
785e7ba05b Change some numeric #defines to enums 1998-11-02 04:11:16 +00:00
grog
dffefbcd7d Don't close drives when called from interrupt context, set a flag for
the top half to do it.

Put in a dubious check for subdisk integrity when trying to bring
up a plex where others are already up.  This particular kludge is
crying out for a rewrite of the whole state code.

Add code to set_plex_state and set_volume_state to defer updates when
called from an interrupt context.  This doesn't happen yet, but it
could do.
1998-11-02 04:10:45 +00:00
grog
93cdbc8a6c Get the default revive blocksize right for striped and RAID-5 plexes 1998-11-02 04:10:19 +00:00
grog
8f7964a1db Close any drives downed in an interrupt context.
Ensure correct order of requests.
Call launch_requests at splhigh to see if this stops the mysterious
SMP panics
1998-11-02 04:09:34 +00:00
grog
950f784431 Accept incorrect device open counts, but print a warning
Don't save invalid drive config information, remove the drive
1998-11-02 04:09:09 +00:00
grog
9b1d6dbdfc Check for maximum number of subdisks in a plex
Get object counts right when removing
1998-11-02 04:08:30 +00:00
peter
eeb5433fe8 Move the kld stuff to here. 1998-10-23 11:49:47 +00:00
grog
7de1ad9650 config.c:
config_drive:
    Catch an instance of anonymous drives.  Doubtless many remain.

interrupt.c:
  complete_rqe:
    Call logrq to log iodone events if DEBUG_LASTREQS is set.

    Call set_sd_state with setstate_noupdate to avoid buffered I/O out
    of interrupt context.

    Use define DEBUG_RESID instead of constant.

memory.c:
  Remove dead expandrq() function

  Malloc:
    Remove directory component of file names in malloc table.

  Add function vinum_rqinfo (part of the request tracing stuff).

request.c:
  Add function logrq (part of the request tracing stuff).

  vinumstrategy:
    Check whether config needs to be written to disk, do it if so.
    This is a stopgap until the Vinum daemon (bacchusd?  oenologistd?)
    is written.

    If DEBUG_LASTREQS is set, call logrq to log user buffer headers.

  launch_requests:
    Correct format of debug output to console.

    If DEBUG_LASTREQS is set, call logrq to log request elements.

request.h:
  Add definitions for request trace.

state.c:
  set_sd_state:
    Check flags for setstate_noupdate.  If set, don't write the config
    to disk, just set global VF_DIRTYCONFIG flag.  This is part of the
    kludge to avoid writing config from an interrupt context.

vinumext.h:
    Add declaration for vinum_rqinfo, put inside #ifdef DEBUG
    Remove dead macro expandrq

vinumio.h:
  Increase maximum ioctl reply length to 4 kB if DEBUG is set.
  Define VINUM_RQINFO ioctl if DEBUG is set.

vinumioctl.c:
  vinumioctl:
    Change implementation of VINUM_DEBUG ioctl: use a debug flag
    (DEBUG_REMOTEGDB) to decide whether to go into remote debugging or
    not.

    Implement VINUM_RQINFO.

vinumkw.h:
  Define kw_info even when not debugging.

vinumvar.h:
  Define VF_DIRTYCONFIG
  Add pointers to request info to vinum_info if DEBUG is set.
  Define setstate_noupdate
  Define additional debug bits DEBUG_RESID, DEBUG_LASTREQS and
  DEBUG_REMOTEGDB.
1998-10-21 08:32:32 +00:00
alex
be9ed9b099 Unregister the glibc2 brand at module unload time.
Change the ELF registration/unregistration scheme to be less error prone.
Adding a new brand requires a single addition to linux_brandlist instead of
modifying linux_load(), linux_unload(), and linux_elf_init().

Approved by:	jkh
Reviewed by:	msmith
1998-10-11 21:08:02 +00:00
rvb
53e9553677 Fixes for lkm:
1. use VFS_LKM vs ACTUALLY_LKM_NOT_KERNEL
2. don't pass -DCODA to lkm build
1998-09-29 20:19:45 +00:00
grog
c101f9e772 Include vinum in SUBDIR 1998-09-28 05:38:52 +00:00
grog
4154678378 Correct calculation of revive blocksize
Submitted by: Chris Csanady
1998-09-28 04:24:10 +00:00
grog
4338968a98 Get include paths right 1998-09-28 04:21:20 +00:00
rvb
84b3320821 This commit was generated by cvs2svn to compensate for changes in r39652,
which included commits to RCS files with non-trunk default branches.
1998-09-25 17:51:44 +00:00
rvb
1a809fb38b lkm for coda 1998-09-25 17:51:44 +00:00
rvb
6e906a5c45 lkm for coda 1998-09-25 17:51:44 +00:00
msmith
e1585ce09b Add support for glibc consumers using the new ld-linux.so.2 linker.
I can't say this was the most inspired fix, but it matches the design OK.
1998-09-17 22:08:34 +00:00
sos
0469de55b2 Fix the sreensavers so the work again with the new syscons & friends.
Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1998-09-17 19:40:30 +00:00
grog
eb613b0ffa This commit was generated by cvs2svn to compensate for changes in r39330,
which included commits to RCS files with non-trunk default branches.
1998-09-16 05:56:21 +00:00
grog
633c70539f Import base vinum lkm sources 1998-09-16 05:56:21 +00:00
sos
bc0ee3b806 Add the vesa module to the list 1998-09-15 20:17:35 +00:00
sos
7692035840 Double oops, committed the wrong Makefile ata that, fixed. 1998-09-15 20:14:11 +00:00
sos
34a21ee091 Oops for the Makefile for the VESA lkm 1998-09-15 20:09:18 +00:00
sos
ee7d2bce39 Add VESA support to syscons.
Kazu writes:

The VESA support code requires vm86 support. Make sure your kernel
configuration file has the following line.
        options "VM86"
If you want to statically link the VESA support code to the kernel,
add the following option to the kernel configuration file.
        options "VESA"

The vidcontrol command now accepts the following video mode names:
VESA_132x25, VESA_132x43, VESA_132x50, VESA_132x60, VESA_800x600

The VESA_800x600 mode is a raster display mode. The 80x25 text will
be displayed on the 800x600 screen. Useful for some laptop computers.

vidcontrol accepts the new `-i <info>' option, where <info> must be
either `adapter' or `mode'.  When the `-i adapter' option is given,
vidcontrol will print basic information (not much) on the video
adapter. When the `-i mode' option is specified, vidcontrol will
list video modes which are actually supported by the video adapter.

Submitted by:   Kazutaka YOKOTA yokota@FreeBSD.ORG
1998-09-15 18:16:39 +00:00
cracauer
9cb789b84f Load linux emulator lkm only when not already loaded. This avoids
leftover files in /tmp. Script slightly modified from PR version
to use fewer processes.
PR:		i386/7725
Submitted by:	Stefan Eggers seggers@semyam.dinoco.de
1998-09-07 16:15:59 +00:00
bde
f7659c1a7c Add -aout to CFLAGS and LDFLAGS in bsd.kmod.mk, not in
src/lkm/Makefile.inc.  This fixes broken builds of the syscons LKMs
when OBJFORMAT=elf.  Removed src/lkm/Makefile.inc since it became
empty and is worse than useless.
1998-09-02 14:29:09 +00:00
wosch
a024876276 Sort cross references. 1998-08-31 16:41:09 +00:00
jkh
fdc8423b8e Shut this thing up, like the other LKMs 1998-08-24 05:31:57 +00:00
yokota
f804b0c5fa The daemon, snake and star savers should refuse to load if the current
video mode is the VESA mode, because they cannot work properly under the
VESA mode support as in the current form.
1998-08-06 09:14:26 +00:00
alex
34edce96bb A better solution to the rm_at_exit problem: Register the exit function
during first mount.  Unregister the exit function at last unmount.

Concept by:	sef
Reviewed by:	sef
Implemented by:	alex
1998-07-27 01:07:01 +00:00
alex
7182fe1e34 Override the default VFS LKM dispatch functions so that a module
unload function can be provided (this is necessary to unregister
the at_exit handler).
1998-07-25 15:52:44 +00:00
bde
5d2769684f Finished previous fix - don't forget to add one dummy options header
to CLEANFILES.

Fixed lots of style bugs.
1998-07-07 02:27:09 +00:00
bde
18e8cce7d6 Added a `build-tools' target for internal tools. (linux_genassym may
not actually work for cross compiling, but that is another problem.)

Honor LDFLAGS for building internal tools.  (Tools should normally
be built static to avoid problems with picking up target shared
libraries.  bsd.kmod doesn't set -static yet, and has some problems
with `LDFLAGS=-static ...' in the environment.)
1998-07-07 02:04:20 +00:00
sos
b75561dcae Fix the N'th occurance of missed bits due to opt_???? mucking.
Doesn't anybody TEST code before committing....

This is the N+1'th time these laste couble of days...
1998-07-02 14:09:44 +00:00
bde
936a9cc3cc Fixed missing options headers. Options that affect LKMs shouldn't
exist.
1998-07-01 17:10:00 +00:00
bde
8278b58bdd Added opt_vmpage.h to SRCS so that it actually gets created. 1998-07-01 17:02:57 +00:00
sos
4b0cf8fd7c Leading whitespace in Makefile are TABS not spaces.... 1998-06-30 16:09:28 +00:00
jmg
0441fcb9c9 add new opt_nfs.h to cleanfiles... 1998-06-30 11:29:01 +00:00
jmg
bf341c9b28 fix more of my breakage... :(
create opt_vmpage.h
1998-06-30 11:28:06 +00:00
jmg
329c2b429b fix buildworld hopefully be3fore anyone complains...
NFS_*TIMO should possibly be converted to sysctl vars (jkh's suggestion),
but in some cases it looks like nfs keeps a copy of the value in a struct

hash sizes are already ifdef'd KERNEL, so there aren't userland inpact
from them...
1998-06-30 11:19:22 +00:00
sos
d721e2b3d6 ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00