]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
25 years agoTo avoid a conflict for the vm_map's lock with vm_fault, release
Alan Cox [Tue, 2 Mar 1999 22:55:02 +0000 (22:55 +0000)]
To avoid a conflict for the vm_map's lock with vm_fault, release
the read lock around the subyte operations in mincore.  After the lock is
reacquired, use the map's timestamp to determine if we need to restart
the scan.

25 years agoadd more MLINKS
Andrey A. Chernov [Tue, 2 Mar 1999 22:53:24 +0000 (22:53 +0000)]
add more MLINKS

25 years agoChange SAVECONFIG ioctl: it now writes an int parameter.
Greg Lehey [Tue, 2 Mar 1999 22:00:19 +0000 (22:00 +0000)]
Change SAVECONFIG ioctl: it now writes an int parameter.

25 years agoMake comment match code.
Julian Elischer [Tue, 2 Mar 1999 21:23:38 +0000 (21:23 +0000)]
Make comment match code.

25 years agoBetter logging when the Geometry register probe fails.
Warner Losh [Tue, 2 Mar 1999 20:56:07 +0000 (20:56 +0000)]
Better logging when the Geometry register probe fails.

25 years agoRemove inapropriate use of VOP_ISLOCKED()
Julian Elischer [Tue, 2 Mar 1999 20:26:39 +0000 (20:26 +0000)]
Remove inapropriate use of VOP_ISLOCKED()
This produced races resulting in panics and filesystem corruptions
under some circumstances.

Reviewed by: luoqi chen <luoqi@freebsd.org>
Reviewed by: Kirk McKusick <mckusick@mckusick.com>
Submitted by: Matt Dillon <dillon@freebsd.org>

25 years agoAdd new kernel option:
Semen Ustimenko [Tue, 2 Mar 1999 20:26:02 +0000 (20:26 +0000)]
Add new kernel option:

options NTFS

25 years agoMake window(1) actually work again. It has been broken for quite some
Joerg Wunsch [Tue, 2 Mar 1999 19:08:09 +0000 (19:08 +0000)]
Make window(1) actually work again.  It has been broken for quite some
time now.

For whatever reason, the kernel seems to have generated SIGIOs
previously without an initial fcntl(...,F_SETOWN), but does no longer.
This caused window(1) to wait indefinitely for input.

Also, undo rev 1.3 of wwspawn.c, it was not well-thought, and
apparently not even tested at all.  The blindly (even in a nonsensical
place like the comment on top of the function) applied replacement of
vfork() by fork() totally ignored that window(1) *does* abuse the
feature of vfork() where a modification of the parent's address space
is possible (in this case, to notify the parent of an erred exec*).
Also, with vfork(), it is guaranteed that the parent is only woken up
after the exec*() happened, where the replacement by fork() made the
parent to almost always become runnable again before the child, in
which case the parent simply told `subprocess died'.  Unfortunately,
working around _this_ seems to be a lot more of redesign work compared
to little gained value, so i think relying on the specifics of vfork()
is the simpler way.

Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>

25 years agoCorrect casts in vtophys and avtophys to be vm_offset_t.
David Greenman [Tue, 2 Mar 1999 16:20:39 +0000 (16:20 +0000)]
Correct casts in vtophys and avtophys to be vm_offset_t.

25 years agoDon't treat empty lines as end-of-file in include(). (I can't
Daniel C. Sobral [Tue, 2 Mar 1999 16:16:57 +0000 (16:16 +0000)]
Don't treat empty lines as end-of-file in include(). (I can't
believe this bug is still here... :-( )

25 years agoPut back the bktr update to generate /dev/vbi
Roger Hardiman [Tue, 2 Mar 1999 16:04:27 +0000 (16:04 +0000)]
Put back the bktr update to generate /dev/vbi
which I managed to delete yesterday.

25 years agoMerge with sys/i386/conf/files.i386 revision 1.224.
KATO Takenori [Tue, 2 Mar 1999 14:03:21 +0000 (14:03 +0000)]
Merge with sys/i386/conf/files.i386 revision 1.224.

25 years agoSync with sys/i386/conf/Makefile.i386 revision 1.140.
KATO Takenori [Tue, 2 Mar 1999 14:01:33 +0000 (14:01 +0000)]
Sync with sys/i386/conf/Makefile.i386 revision 1.140.

25 years agoRestored rev.1.2, which was clobbered by rev.1.4 (don't print "Making
Bruce Evans [Tue, 2 Mar 1999 13:04:00 +0000 (13:04 +0000)]
Restored rev.1.2, which was clobbered by rev.1.4 (don't print "Making
info file ..." except in verbose mode).

25 years agoFix for LINE30 option. This option was not tested under new console
KATO Takenori [Tue, 2 Mar 1999 12:34:24 +0000 (12:34 +0000)]
Fix for LINE30 option.  This option was not tested under new console
driver.

Submitted by: Takahashi Yoshihiro <nyan@dd.catv.ne.jp>

25 years agoTypo fix.
Joseph Koshy [Tue, 2 Mar 1999 07:27:01 +0000 (07:27 +0000)]
Typo fix.

PR: docs/10348
Submitted by: Chris Costello <chris@holly.dyndns.org>

25 years agoChange some .Ar macros to .Pa.
Greg Lehey [Tue, 2 Mar 1999 07:03:30 +0000 (07:03 +0000)]
Change some .Ar macros to .Pa.

Describe /dev/vinum/control*

Describe drive "referenced" state.

Remove warning about kldunload; it seems to work now.

Still more descriptions of how to debug things.

25 years agoDocument "stop" command with no parameters.
Greg Lehey [Tue, 2 Mar 1999 07:02:29 +0000 (07:02 +0000)]
Document "stop" command with no parameters.

Document "printconfig" and "saveconfig" commands.

Add warning about running "create" multiple times.

25 years agoTake definitions of VINUMMOD and WRONGMOD from v.c.
Greg Lehey [Tue, 2 Mar 1999 07:02:09 +0000 (07:02 +0000)]
Take definitions of VINUMMOD and WRONGMOD from v.c.

25 years agoMove definitions of VINUMMOD and WRONGMOD to vext.h.
Greg Lehey [Tue, 2 Mar 1999 07:01:51 +0000 (07:01 +0000)]
Move definitions of VINUMMOD and WRONGMOD to vext.h.

Wait4 zombies.

make_devices: Don't try if the /dev directory is mounted read-only.
      Create daemon superdevice /dev/vinum/controld.

Format a couple of multiline comments conformant with style(9).

25 years agoChange the format of the lists to reflect loss of pid field.
Greg Lehey [Tue, 2 Mar 1999 07:01:26 +0000 (07:01 +0000)]
Change the format of the lists to reflect loss of pid field.
Show open state as a flag.

vinum_ldi: Show available space in short form listing.

25 years agoresetconfig: don't log the "obliterated" message, the kernel does that
Greg Lehey [Tue, 2 Mar 1999 07:00:57 +0000 (07:00 +0000)]
resetconfig: don't log the "obliterated" message, the kernel does that
     for us.

     Rebuild the (almost empty) /dev/vinum directory.

vinum_start:  remove superflous "read" parameter when starting with no
      parameters.

vinum_stop:  without an argument, stop Vinum and remove the kld if
     it's idle.

vinum_saveconfig: New command to save configuration.

25 years agoCorrect some diagrams
Greg Lehey [Tue, 2 Mar 1999 06:58:09 +0000 (06:58 +0000)]
Correct some diagrams

Remove pid field from struct sd, struct plex and struct volume

Add flags VF_STOPPING, VF_OPEN and VF_DAEMONOPEN

25 years agosizespec: allow negative values (which signal error conditions).
Greg Lehey [Tue, 2 Mar 1999 06:57:48 +0000 (06:57 +0000)]
sizespec: allow negative values (which signal error conditions).
  catch missing (NULL) parameters.

25 years agoChange the name of drive state "uninit" to "referenced": it only
Greg Lehey [Tue, 2 Mar 1999 06:57:30 +0000 (06:57 +0000)]
Change the name of drive state "uninit" to "referenced": it only
occurs if we have a dangling pointer to a drive.

25 years agoChange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:57:08 +0000 (06:57 +0000)]
Change printf() calls to log() calls.

set_sd_state: allow stop command to stop a reborn subdisk.

25 years agoChange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:56:39 +0000 (06:56 +0000)]
Change printf() calls to log() calls.

25 years agoAdd keywords "size", synonym for "length", and "max".
Greg Lehey [Tue, 2 Mar 1999 06:56:05 +0000 (06:56 +0000)]
Add keywords "size", synonym for "length", and "max".

Check for NULL name parameters.

25 years agoChange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:55:44 +0000 (06:55 +0000)]
Change printf() calls to log() calls.

expand_table: Zero out newly allocated tables

25 years agoAdd keywords "size", synonym for "length", and "max".
Greg Lehey [Tue, 2 Mar 1999 06:55:18 +0000 (06:55 +0000)]
Add keywords "size", synonym for "length", and "max".

25 years agoChange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:54:57 +0000 (06:54 +0000)]
Change printf() calls to log() calls.

Change VINUM_SAVECONFIG: it now requires a parameter.  0 means
"configuration updates are finished, please save", and 1 means "please
just save the config".  This second meaning is invoked by the new
"saveconfig" command to vinum(8).

25 years agoChange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:54:30 +0000 (06:54 +0000)]
Change printf() calls to log() calls.

Recognize "referenced" drives by the lack of a slash in the device
name, not by a NUL character.

vinum_scandisk: return error indication (ENOENT if we can't find any
vinum drive, otherwise 0).

VINUM_SAVECONFIG: change parameters.

25 years agoNew function return_drive_space
Greg Lehey [Tue, 2 Mar 1999 06:53:42 +0000 (06:53 +0000)]
New function return_drive_space

Add definitions of vinum_inactive and free_vinum, formerly local to
vinum.c

vinum_scandisk now returns int (error number)

25 years agochange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:53:15 +0000 (06:53 +0000)]
change printf() calls to log() calls.

Don't save config while we're reading it from disk.

Change the way we handle the daemon: if we can't communicate with it
for 1 second (which is possible), start a new one.  The daemon saves
its pid in daemonpid; on each iteration of the main loop the daemon
checks whether it's still in favour.  If not, it silently exits.
Also, when trying to communicate with the daemon, check daemonpid
first.  If it's set to 0, don't even try.

25 years agoChange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:52:47 +0000 (06:52 +0000)]
Change printf() calls to log() calls.

Rename the VF_KERNELOP to VF_DISKCONFIG and checkkernel () to
checkdiskconfig (), which better describes their function.

Disable configuration updates if we have an error reading in the
configuration.  This stops a "shoot-in-foot" problem where a mistake
can cause the configuration to be obliterated.

Tidy up some messages, which included superfluous \ns.

Recognize RAID-5 configuration information even in the non-RAID-5
version.  This fixes shoot-in-foot problems where starting the wrong
version of vinum would kill RAID-5 plexes.

Recognize drives that have been referenced, but for which no physical
location is known.  This is part of a modification which will
ultimately allow incrementally reading configurations.  Such drives
will have a device name "unknown".

New function return_drive_space () returns space to a drive.
Previously this was part of free_sd ().

give_sd_to_drive: don't do it if the subdisk needs more space than the
drive has available.

config_sd: if reading config from disk, accept plex offset, drive
offset and length specs of -1 to indicate error conditions.

parse_config: return ENOENT if the "read" command doesn't find any
drives.

remove_sd_entry: don't do it, even by force, if it's open.

If the size of a striped or RAID-5 plex is not an integral multiple of
the stripe size, trim the size until it is.

reinstate update_volume_config, which had atrophied, to recalculate
the size of a volume if a plex has shrunk due to stripe size
considerations.

25 years agoChange printf() calls to log() calls.
Greg Lehey [Tue, 2 Mar 1999 06:52:11 +0000 (06:52 +0000)]
Change printf() calls to log() calls.

vinumattach: Zero out tables after allocating them

Modify procedure at unload: if a vinum(8) has the superdev open, don't
close down.  If only the daemon has it open, send the daemon a stop
request and wait for it to close the superdev, then unload.

In order to do this, create a second superdev which is opened by the
daemon.  The open and close routines set a different bit in
vinum_conf.flags; otherwise the treatment is identical.

Remove opencount field in vol structure; replace by a flag bit, since
we can't count the number of opens.

Remove dead LKM grunge.

25 years agoChange the name of drive state "uninit" to "referenced": it only
Greg Lehey [Tue, 2 Mar 1999 06:51:48 +0000 (06:51 +0000)]
Change the name of drive state "uninit" to "referenced": it only
occurs if we have a dangling pointer to a drive.

25 years agoReorganize locking to avoid holding the lock during calls to bdwrite
Kirk McKusick [Tue, 2 Mar 1999 06:38:07 +0000 (06:38 +0000)]
Reorganize locking to avoid holding the lock during calls to bdwrite
and brelse (which may sleep in some systems).

Obtained from: Matthew Dillon <dillon@apollo.backplane.com>

25 years agoPrint actual density code as well as string for density- I dunno about others,
Matt Jacob [Tue, 2 Mar 1999 06:27:59 +0000 (06:27 +0000)]
Print actual density code as well as string for density- I dunno about others,
but I sure remember 0x15 easier than 'ECMA 17'. Also handle density codes
0 (default) and 0x7f ('same') as special cases.

25 years agoRemove the last of the share map code: struct vm_map::is_main_map.
Alan Cox [Tue, 2 Mar 1999 05:43:18 +0000 (05:43 +0000)]
Remove the last of the share map code: struct vm_map::is_main_map.

Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>

25 years agoMerge patch to ufs_vnops.c's ufs_rename to the copy of ufs_rename that
Warner Losh [Tue, 2 Mar 1999 05:31:47 +0000 (05:31 +0000)]
Merge patch to ufs_vnops.c's ufs_rename to the copy of ufs_rename that
lives in ext2_vnops.c for ext2fs.  Also remove cast from comparision.
Bruce pointed out that it was bogus since we'd force a signed
comparision when we really wanted an unsigned comparison.

25 years agoFix reference to rpc.yppasswdd.
Guy Helmer [Tue, 2 Mar 1999 04:14:53 +0000 (04:14 +0000)]
Fix reference to rpc.yppasswdd.

PR: docs/10171

25 years agoImprove error message wording when attempting to link to a non-existent
Alexander Langer [Tue, 2 Mar 1999 04:14:33 +0000 (04:14 +0000)]
Improve error message wording when attempting to link to a non-existent
file on the local host.

PR: 10042
Submitted by: Chris Costello <phoenix@calldei.com>

25 years agoWhen fsync'ing a file on a filesystem using soft updates, we first try
Kirk McKusick [Tue, 2 Mar 1999 04:04:31 +0000 (04:04 +0000)]
When fsync'ing a file on a filesystem using soft updates, we first try
to write all the dirty blocks. If some of those blocks have dependencies,
they will be remarked dirty when the I/O completes. On systems with
really fast I/O systems, it is possible to get in an infinite loop trying
to flush the buffers, because the I/O finishes before we can get all the
dirty buffers off the v_dirtyblkhd list and into the I/O queue. (The
previous algorithm looped over the v_dirtyblkhd list writing out buffers
until the list emptied.) So, now we mark each buffer that we try to
write so that we can distinguish the ones that are being remarked dirty
from those that we have not yet tried to flush. Once we have tried to
push every buffer once, we then push any associated metadata that is
causing the remaining buffers to be redirtied.

Submitted by: Matthew Dillon <dillon@apollo.backplane.com>

25 years agoAdd a missing word and change a "then" to "than".
Guy Helmer [Tue, 2 Mar 1999 03:55:34 +0000 (03:55 +0000)]
Add a missing word and change a "then" to "than".

PR: docs/9304 docs/9822

25 years agoApply mdoc macros, remove some spacing that caused unexpected line breaking,
Guy Helmer [Tue, 2 Mar 1999 03:45:47 +0000 (03:45 +0000)]
Apply mdoc macros, remove some spacing that caused unexpected line breaking,
and fix some spelling errors.  (I also took the liberty of converting the
reference to LKMs to KLDs.)

PR: docs/9238 docs/9305

25 years agoCorrect synopsys: getsubopt is declared in unistd.h, not stdlib.h.
Guy Helmer [Tue, 2 Mar 1999 02:35:57 +0000 (02:35 +0000)]
Correct synopsys: getsubopt is declared in unistd.h, not stdlib.h.

PR: docs/9376

25 years agoMention that getservbyport requires its port parameter to be in
Guy Helmer [Tue, 2 Mar 1999 02:34:23 +0000 (02:34 +0000)]
Mention that getservbyport requires its port parameter to be in
network byte order.

PR: docs/9376

25 years agoAdd the ability to print user records in unix version 7 (old) format.
David Nugent [Tue, 2 Mar 1999 00:53:33 +0000 (00:53 +0000)]
Add the ability to print user records in unix version 7 (old) format.

25 years agoFix thread/process tracking and differentiation for Linux threads emulation.
Julian Elischer [Tue, 2 Mar 1999 00:28:09 +0000 (00:28 +0000)]
Fix thread/process tracking and differentiation for Linux threads emulation.

Submitted by: Richard Seaman, Jr." <dick@tar.com>

Also clean some compiler warnings in surrounding code.

25 years agoEnsure that softdep_sync_metadata can handle bmsafemap and mkdir entries
Kirk McKusick [Tue, 2 Mar 1999 00:19:47 +0000 (00:19 +0000)]
Ensure that softdep_sync_metadata can handle bmsafemap and mkdir entries
if they ever arise (which should not happen as softdep_sync_metadata is
currently used).

25 years agoFinally!!
Søren Schmidt [Mon, 1 Mar 1999 21:19:19 +0000 (21:19 +0000)]
Finally!!

The much roumored replacement for our current IDE/ATA/ATAPI is
materialising in the CVS repositories around the globe.

So what does this bring us:

A new reengineered ATA/ATAPI subsystem, that tries to overcome
most of the deficiencies with the current drivers.

It supports PCI as well as ISA devices without all the hackery
in ide_pci.c to make PCI devices look like ISA counterparts.

It doesn't have the excessive wait problem on probe, in fact you
shouldn't notice any delay when your devices are getting probed.

Probing and attaching of devices are postponed until interrupts
are enabled (well almost, not finished yet for disks), making
things alot cleaner.

Improved performance, although DMA support is still WIP and not
in this pre alpha release, worldstone is faster with the new
driver compared to the old even with DMA.

So what does it take away:

There is NO support for old MFM/RLL/ESDI disks.
There is NO support for bad144, if your disk is bad, ditch it, it has
already outgrown its internal spare sectors, and is dying.

For you to try this out, you will have to modify your kernel config
file to use the "ata" controller instead of all wdc? entries.

example:

# for a PCI only system (most modern machines)
controller  ata0
device atadisk0 # ATA disks
device atapicd0 # ATAPI CDROM's
device atapist0 # ATAPI tapes

#You should add the following on ISA systems:
controller ata1 at isa? port "IO_WD1" bio irq 14
controller ata2 at isa? port "IO_WD2" bio irq 15

You can leave it all in there, the system knows how to manage.

For now this driver reuses the device entries from the old system
(that will probably change later), but remember that disks are
now numbered in the sequence they are found (like the SCSI system)
not as absolute positions as the old system.

Although I have tested this on all the systems I can get my hands on,
there might very well be gremlins in there, so use AT YOU OWN RISK!!
This is still WIP, so there are lots of rough edges and unfinished
things in there, and what I have in my lab might look very different
from whats in CVS at any given time. So please have all eventual
changes go through me, or chances are they just dissapears...

I would very much like to hear from you, both good and bad news
are very welcome.

Enjoy!!

-Søren

25 years agomincore doesn't modify the vm_map. Therefore, it doesn't require
Alan Cox [Mon, 1 Mar 1999 20:42:16 +0000 (20:42 +0000)]
mincore doesn't modify the vm_map.  Therefore, it doesn't require
an exclusive lock.  A read lock will suffice.

25 years agoFix handling of IFF_ALLMULTI. The code did not call
Luigi Rizzo [Mon, 1 Mar 1999 16:54:28 +0000 (16:54 +0000)]
Fix handling of IFF_ALLMULTI. The code did not call
tulip_addr_filter() on SIOCSIFFLAGS, and was nuking the IFF_ALLMULTI
on entering tulip_addr_filter(). As a result it was impossible to run
a multicast router on a machine with a "de" interface.

25 years agoClose PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().
Bill Paul [Mon, 1 Mar 1999 16:11:13 +0000 (16:11 +0000)]
Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().
Instead, treat the inability to retrieve a record from the server as a
match failure and let things take its course.

Part of the problem here is that NIS _is_ turned on, however the master
server is actually not an NIS server: it's an NIS+ server. And the client
is bound to an NIS+ replica server that's running in YP compat mode.
The code which tries to figure out of the user is local or NIS gets
confused by this.

25 years agoWhen negotiating ACCMAPs, sync our ACCMAP with the
Brian Somers [Mon, 1 Mar 1999 13:46:45 +0000 (13:46 +0000)]
When negotiating ACCMAPs, sync our ACCMAP with the
peers by ORing the two together and NAKing or REQing
the result rather than allowing seperate local/peer
values.
If the peer REJs our ACCMAP and our ACCMAP isn't 0,
warn about it and ignore the rejection.

25 years agoUpdated the bktr entry to generate bktr*, tuner* and now vbi*
Roger Hardiman [Mon, 1 Mar 1999 12:13:24 +0000 (12:13 +0000)]
Updated the bktr entry to generate bktr*, tuner* and now vbi*
/dev/vbi will allow vbi capture from the bt848 card for software
teletext decoding.

25 years agoSync with sys/boot/i386/btx/btx/btx.s revision 1.10.
KATO Takenori [Mon, 1 Mar 1999 10:02:45 +0000 (10:02 +0000)]
Sync with sys/boot/i386/btx/btx/btx.s revision 1.10.

25 years agoEnsure that vnode_if.h build before object files, if make depend has not
Dmitrij Tejblum [Mon, 1 Mar 1999 09:54:51 +0000 (09:54 +0000)]
Ensure that vnode_if.h build before object files, if make depend has not
been run.

25 years agoThis commit was generated by cvs2svn to compensate for changes in r44365,
Warner Losh [Mon, 1 Mar 1999 06:27:31 +0000 (06:27 +0000)]
This commit was generated by cvs2svn to compensate for changes in r44365,
which included commits to RCS files with non-trunk default branches.

25 years agoImport mips2 and mips3 files from the 2.0.2 gmp distribution.
Warner Losh [Mon, 1 Mar 1999 06:27:31 +0000 (06:27 +0000)]
Import mips2 and mips3 files from the 2.0.2 gmp distribution.

Approved by: markm

25 years agoDon't define MACHINE, MACHINE_ARCH, _MACHINE or _MACHINE_ARCH if
Warner Losh [Mon, 1 Mar 1999 06:10:16 +0000 (06:10 +0000)]
Don't define MACHINE, MACHINE_ARCH, _MACHINE or _MACHINE_ARCH if
already defined.  This allows for cross building to work because we
need to lie to make to tell it to use the target names rather than the
host names.

This should have no effect on either architecture.  I've confirmed
that the intel build by make buildworld's for the past 3 months.

25 years agoFix disorder introduced by me in the Euro part 2 locale commit.
Warner Losh [Mon, 1 Mar 1999 06:05:58 +0000 (06:05 +0000)]
Fix disorder introduced by me in the Euro part 2 locale commit.

Submited by: bde
(This was uncommitted for too long in my tree, but is well tested)

25 years agoMake MACHINE_ARCH sensitive to the environment, as well as using the
Warner Losh [Mon, 1 Mar 1999 06:01:05 +0000 (06:01 +0000)]
Make MACHINE_ARCH sensitive to the environment, as well as using the
compiled in default in case it isn't defined.  This is needed to make
cross compilation work in some edge cases.  It also makes cross
compiling on FreeBSD other BSD's easier as well.

Obtained from: NetBSD, OpenBSD (predates the split)

25 years agoUSB is only on PC's at the minute, don't try and use the MOUSE_IF_USB
Gary Palmer [Mon, 1 Mar 1999 04:47:37 +0000 (04:47 +0000)]
USB is only on PC's at the minute, don't try and use the MOUSE_IF_USB
define on the AXP, 'cos it breaks.

25 years agoAdd TARGET_ARCH=mipsel and TARGET_ARCH=mipseb as a valid targets.
Warner Losh [Mon, 1 Mar 1999 04:01:57 +0000 (04:01 +0000)]
Add TARGET_ARCH=mipsel and TARGET_ARCH=mipseb as a valid targets.
Unlike the unisex architecutres we've had so far, mips is bisexual.
These tools can produce either byte sex, and the compiler/make
determines the proper gender to use.  Otherwise, we'd have to have had
mipsel and mipseb in all the places that we have just mips.  And there
are other complications with doing that (binutils doesn't like to
build mips tools without both byte genders, it seems).

Introduced BINUTIL_ARCH so that other bisexual architectures can a
generic mechanism.

We cannot just define MACHINE_ARCH as mips because we need to
differentiate big and little endian types of binaries.  Discussions on
freebsd-arch have hashed out this issue (and the parallel libc
issues).  NetBSD is moving towards mipsel and mipseb for their two
flavors of mips ports (in time for 1.4, if this change hasn't already
been accomplished).

I've been building i386 worlds with this tree for a three months with
these files in place with no ill effects.

25 years agoComment why we do a TLF when we get a ``Down'' event in state
Brian Somers [Mon, 1 Mar 1999 02:52:39 +0000 (02:52 +0000)]
Comment why we do a TLF when we get a ``Down'' event in state
``closing''.

Pointed out by: archie

Don't do a TLF when we get a ``Catastrphic Protocol Reject'' event
in state ``closed'' or ``stopped''.

Pointed out but not suggested by: archie

This makes no difference in the current implementation as
LcpLayerFinish() does nothing but log the event, but I disagree
in principle because it unbalances the TLF/TLS calls which
(IMHO) doesn't fit with the intentions of the RFC.

Maybe the RFC author had a reason for this.  It can only happen
in two circumstances:

- if LCP has already been negotiated then stopped or closed and we
  receive a protocol reject, then we must already have done a TLF.
  Why do one again and stay in the same state ?

- if LCP hasn't yet been started and we receive an unsolicted
  protocol reject, why should we TLF when we haven't done a TLS ?

25 years agoWhen bootstrapping mtree, don't depend on there being a libmd at all.
Garrett Wollman [Mon, 1 Mar 1999 02:43:42 +0000 (02:43 +0000)]
When bootstrapping mtree, don't depend on there being a libmd at all.

25 years agoSave option, rather than slice, selected. This permits unattended
Robert Nordier [Mon, 1 Mar 1999 02:42:47 +0000 (02:42 +0000)]
Save option, rather than slice, selected.  This permits unattended
booting from other than drive 0, as the F5 keypress is saved and
"replayed."

Requested (some time ago) by: archie

25 years agoDon't even attempt to build the assembly-language versions of RIPEMD160
Garrett Wollman [Mon, 1 Mar 1999 02:39:45 +0000 (02:39 +0000)]
Don't even attempt to build the assembly-language versions of RIPEMD160
and SHA-1 when OBJFORMAT is not ELF.  Add a warning to the man page
about how SHA-1 uses bswapl, which will trap on 80386es (and the kernel
should, but doesn't currently, emulate).

25 years agoThe legacy boot stuff is available only on i386, not all architectures
Warner Losh [Mon, 1 Mar 1999 01:09:06 +0000 (01:09 +0000)]
The legacy boot stuff is available only on i386, not all architectures
which aren't the alpha.  Test for MACHINE_ARCH == i386 rather than
MACHINE_ARCH != alpha.

25 years ago+Match against T4000* for HP QIC quirks (not T4000S* where it doesn't then
Matt Jacob [Mon, 1 Mar 1999 01:07:47 +0000 (01:07 +0000)]
+Match against T4000* for HP QIC quirks (not T4000S* where it doesn't then
 catch a T4000s)
+ Set *some* kind of error at EOM if we're in fixed mode and have pending errs.
  Do not clear the ERR_PENDING bit if more buffers are queued.
+ Release the start_ccb in this case also, else we hang forever on rewinding.
+ Any kind of error for load to BOT in samount should then cause an attempt
  to use REWIND to come back to BOT. Do the initial load command quietly.
+ In samount, if we succeed, set the relative position markers.

25 years agoBring up auto links despite there being no data queued if
Brian Somers [Mon, 1 Mar 1999 00:43:48 +0000 (00:43 +0000)]
Bring up auto links despite there being no data queued if
we're already in network phase and our autoload values
are set with no minimum threshold (the default).

Tell the autoload timer that it's ``coming up'' *before*
calling AutoLoadTimeout() directly... not after.  This
prevents the very first demand-dial connection from
immediately disconnecting when there are other auto links.

Problem diagnosis:  Ted Mittelstaedt <tedm@toybox.placo.com>

25 years agoRemove *mip* and *decstation* from the filter, per FREEBSD-updating.
Warner Losh [Sun, 28 Feb 1999 23:11:09 +0000 (23:11 +0000)]
Remove *mip* and *decstation* from the filter, per FREEBSD-updating.

This, and the previous import were approved by jdp.

25 years agoThis commit was generated by cvs2svn to compensate for changes in r44348,
Warner Losh [Sun, 28 Feb 1999 23:08:24 +0000 (23:08 +0000)]
This commit was generated by cvs2svn to compensate for changes in r44348,
which included commits to RCS files with non-trunk default branches.

25 years agoImport files needed to build mips binaries with binutils 2.9.1.
Warner Losh [Sun, 28 Feb 1999 23:08:24 +0000 (23:08 +0000)]
Import files needed to build mips binaries with binutils 2.9.1.

25 years agoWe've been using 2.9.1 tools for some time now, so reflect that in the
Warner Losh [Sun, 28 Feb 1999 22:31:17 +0000 (22:31 +0000)]
We've been using 2.9.1 tools for some time now, so reflect that in the
example of how to add things to the FreeBSD tree.

Approved by: jdp

25 years agoMake buf in authflags a little bigger because 2 strings can be
Gary Jennejohn [Sun, 28 Feb 1999 22:19:47 +0000 (22:19 +0000)]
Make buf in authflags a little bigger because 2 strings can be
concatenated and 20 bytes (the old size) is kind of tight.

25 years agoUpdate to know about current kernel directory layout.
Kirk McKusick [Sun, 28 Feb 1999 22:14:16 +0000 (22:14 +0000)]
Update to know about current kernel directory layout.
Add ability to build links as well as tags.

25 years agofix conflicts
David E. O'Brien [Sun, 28 Feb 1999 20:44:08 +0000 (20:44 +0000)]
fix conflicts

25 years agoBreak a paragraph into two.
David E. O'Brien [Sun, 28 Feb 1999 20:43:33 +0000 (20:43 +0000)]
Break a paragraph into two.

25 years agofix PRUNEPATHS assignment
Andrey A. Chernov [Sun, 28 Feb 1999 20:40:19 +0000 (20:40 +0000)]
fix PRUNEPATHS assignment

25 years agoupdate for latest import
David E. O'Brien [Sun, 28 Feb 1999 20:36:31 +0000 (20:36 +0000)]
update for latest import

25 years agoThis commit was generated by cvs2svn to compensate for changes in r44335,
David E. O'Brien [Sun, 28 Feb 1999 20:34:40 +0000 (20:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r44335,
which included commits to RCS files with non-trunk default branches.

25 years agoVirgin import of ISC-DHCP v2.0b1pl17
David E. O'Brien [Sun, 28 Feb 1999 20:34:40 +0000 (20:34 +0000)]
Virgin import of ISC-DHCP v2.0b1pl17

25 years agoFatal typo.
Dmitrij Tejblum [Sun, 28 Feb 1999 19:50:17 +0000 (19:50 +0000)]
Fatal typo.

PR: bin/10827
Submitted by: Mike Andrews <mandrews@termfrost.org>
PR: conf/10310
Submitted by: Brion Moss <brion@queeg.com>

25 years agofix for incorrect specification of alignment (it worked for the elf
Chuck Robey [Sun, 28 Feb 1999 18:55:39 +0000 (18:55 +0000)]
fix for incorrect specification of alignment (it worked for the elf
build, but broke while doing the aout legacy build).  Now using
.p2align instead of .align.  Fixes broken buildworld.

Submitted by: John Polstra
Reviewed by: John Polstra

25 years agoAdd forward-declaration of struct linker_set, to fix a few warnings.
Dmitrij Tejblum [Sun, 28 Feb 1999 17:38:28 +0000 (17:38 +0000)]
Add forward-declaration of struct linker_set, to fix a few warnings.

25 years agoThis code got moved as a result of confusion between union mounts and
Peter Wemm [Sun, 28 Feb 1999 16:13:25 +0000 (16:13 +0000)]
This code got moved as a result of confusion between union mounts and
unionfs.  Julian has already revived the union mount part of this move
in vfs_syscalls.c rev 1.119, but forgot to take it out of here.

25 years agoDeclare static __inline functions as __inline in their forward
Bruce Evans [Sun, 28 Feb 1999 11:30:00 +0000 (11:30 +0000)]
Declare static __inline functions as __inline in their forward
declaration.

Fixed some comments.

Fixed a staticization botch.

25 years agoRemoved all traces of `p_switchtime'. The relevant timestamp is per-cpu,
Bruce Evans [Sun, 28 Feb 1999 10:53:29 +0000 (10:53 +0000)]
Removed all traces of `p_switchtime'.  The relevant timestamp is per-cpu,
not per-process.  Keep it in `switchtime' consistently.

It is now clear that the timestamp is always valid in fork_trampoline()
except when the child is running on a previously idle cpu, which
can only happen if there are multiple cpus, so don't check or set
the timestamp in fork_trampoline except in the (i386) SMP case.
Just remove the alpha code for setting it unconditionally, since
there is no SMP case for alpha and the code had rotted.

Parts reviewed by: dfr, phk

25 years agoPrint "usb" for MOUSE_IF_USB, rather than "unknown".
Kazutaka YOKOTA [Sun, 28 Feb 1999 09:18:57 +0000 (09:18 +0000)]
Print "usb" for MOUSE_IF_USB, rather than "unknown".

25 years agoI don't know why the version was bumped to 1.11.3, nothing from the real
David E. O'Brien [Sun, 28 Feb 1999 09:11:20 +0000 (09:11 +0000)]
I don't know why the version was bumped to 1.11.3, nothing from the real
GNU 1.11.3 got in when this change was made.  thepish's submitted fixes
unbroke --norecurse.

25 years agoMake $ print different lines in, well, different lines.
Daniel C. Sobral [Sun, 28 Feb 1999 02:10:14 +0000 (02:10 +0000)]
Make $ print different lines in, well, different lines.

25 years agoReviewed by: "John S. Dyson" <dyson@iquest.net>
Alan Cox [Sat, 27 Feb 1999 23:39:28 +0000 (23:39 +0000)]
Reviewed by: "John S. Dyson" <dyson@iquest.net>
Submitted by: Matthew Dillon <dillon@apollo.backplane.com>
To prevent a deadlock, if we are extremely low on memory, force synchronous
operation by the VOP_PUTPAGES in vnode_pager_putpages.

25 years agoMake this work with the new alias library since, evidently, we're
Jordan K. Hubbard [Sat, 27 Feb 1999 22:37:38 +0000 (22:37 +0000)]
Make this work with the new alias library since, evidently, we're
not providing the backwards-compatability routines in libalias anymore
(which I think may have been a mistake).

25 years ago* Add support for hw.physmem and hw.usermem sysctls (this allows sysinstall
Doug Rabson [Sat, 27 Feb 1999 18:41:40 +0000 (18:41 +0000)]
* Add support for hw.physmem and hw.usermem sysctls (this allows sysinstall
  to calculate a reasonable size for the swap partition).
* Fix a typo in remrq() where a process with idle priority would not be
  correctly removed from the relavent queue.  Note that realtime and idle
  priorities are still not supported since the assembler code in
  cpu_switch() does not check the realtime and idle queues.

25 years agoCleanup usage of err() and warn().
Jun Kuriyama [Sat, 27 Feb 1999 12:08:02 +0000 (12:08 +0000)]
Cleanup usage of err() and warn().
Add error handling for ioctl().

Reviewed by: -current
Obtained from: PAO

25 years agoDon't install kget on alpha - it doesn't do much useful there.
Jordan K. Hubbard [Sat, 27 Feb 1999 10:54:06 +0000 (10:54 +0000)]
Don't install kget on alpha - it doesn't do much useful there.

25 years agoFix misspelling of Julian's last name. Oops.
Kenneth D. Merry [Sat, 27 Feb 1999 07:56:08 +0000 (07:56 +0000)]
Fix misspelling of Julian's last name.  Oops.