]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
25 years agoUse sysctlbyname() instead of sysctl().
Poul-Henning Kamp [Fri, 5 Mar 1999 10:01:24 +0000 (10:01 +0000)]
Use sysctlbyname() instead of sysctl().

25 years agoForgot to add $Id$ and change date in previous commit.
Bruce Evans [Fri, 5 Mar 1999 09:44:59 +0000 (09:44 +0000)]
Forgot to add $Id$ and change date in previous commit.

25 years agoNow all actual probing of both ATA & ATAPI devices are done after
Søren Schmidt [Fri, 5 Mar 1999 09:43:30 +0000 (09:43 +0000)]
Now all actual probing of both ATA & ATAPI devices are done after
interrupts are enabled, this kills the last "unwanted interrupts"
(and there is no ugly hacks like in the old driver to avoid them).
COmmand interrupt devices are now supported, this applies mostly
to older CDROM's and apparently also the ZIP.

Fixed problems:

    Number of total sectors wrong on some older drives.
        Fixed by not using the LBA size unless we know its valid.

There has also been more general code clenaups, some reorgs also.

25 years agoChanged the type of quotactl()'s 4th arg from `char *' to `void *'
Bruce Evans [Fri, 5 Mar 1999 09:28:33 +0000 (09:28 +0000)]
Changed the type of quotactl()'s 4th arg from `char *' to `void *'
so that non-sloppy applications can call it without using disgusting
casts to avoid warnings.  The 4th arg is sort of varargs -- it must
sometimes represent a filename, sometimes a struct pointer, and is
sometimes unused.  The arg type is still caddr_t in the kernel.

Obtained from: mostly from NetBSD

25 years agoFix an SMP-only TLB invalidation bug. Specifically, disable
Alan Cox [Fri, 5 Mar 1999 08:05:44 +0000 (08:05 +0000)]
Fix an SMP-only TLB invalidation bug.  Specifically, disable
a TLB invalidation optimization that won't work given the
limitations of our current SMP support.

This patch should be applied to -stable ASAP.

Thanks to John Capo <jc@irbs.com>,
          Steve Kargl <sgk@troutmask.apl.washington.edu>, and
          Chuck Robey <chuckr@mat.net>
for testing.

25 years agoexec_aout_imgact should lock the vm_map before calling vm_map_insert.
Alan Cox [Thu, 4 Mar 1999 18:04:40 +0000 (18:04 +0000)]
exec_aout_imgact should lock the vm_map before calling vm_map_insert.

Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>,
"John S. Dyson" <dyson@iquest.net>, and
David Greenman <dg@root.com>

25 years agoExtend the ``set redial'' command to allow incremental
Brian Somers [Thu, 4 Mar 1999 17:42:15 +0000 (17:42 +0000)]
Extend the ``set redial'' command to allow incremental
redial timeouts.

25 years agoMake loader be able to load 1.2MB fd on machines w/ 1.44MB fdd.
KATO Takenori [Thu, 4 Mar 1999 16:38:12 +0000 (16:38 +0000)]
Make loader be able to load 1.2MB fd on machines w/ 1.44MB fdd.

Sumbmitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>

25 years agoAdded an entry for 1.44MB fd.
KATO Takenori [Thu, 4 Mar 1999 16:34:52 +0000 (16:34 +0000)]
Added an entry for 1.44MB fd.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>

25 years agoOops, forgot to read boot.config file.
KATO Takenori [Thu, 4 Mar 1999 16:31:55 +0000 (16:31 +0000)]
Oops, forgot to read boot.config file.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>

25 years agoAdopt syscons's recent change from key_t to keyent_t (this part of
Joerg Wunsch [Thu, 4 Mar 1999 10:50:36 +0000 (10:50 +0000)]
Adopt syscons's recent change from key_t to keyent_t (this part of
pcvt is plug-compatible to syscons to facilitate an identical
VT-switching interface), so PR misc/1247 can be closed.

25 years agoWhen SCSI IDs are not contiguous, the loader could not find correct
KATO Takenori [Thu, 4 Mar 1999 10:48:14 +0000 (10:48 +0000)]
When SCSI IDs are not contiguous, the loader could not find correct
unit number for da device.  This commit fixes this problem.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>

25 years agoboot2 doesn't need to say 'Can't find file boot.config.'
KATO Takenori [Thu, 4 Mar 1999 10:45:06 +0000 (10:45 +0000)]
boot2 doesn't need to say 'Can't find file boot.config.'

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>

25 years agoFix character code of backslash. PC98 should use 0xfc instead of 0x5c.
KATO Takenori [Thu, 4 Mar 1999 10:44:01 +0000 (10:44 +0000)]
Fix character code of backslash.  PC98 should use 0xfc instead of 0x5c.

Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>

25 years agoSync with sys/i386/isa/sio.c revision 1.229.
KATO Takenori [Thu, 4 Mar 1999 10:37:30 +0000 (10:37 +0000)]
Sync with sys/i386/isa/sio.c revision 1.229.

25 years agoSync with sys/i386/conf/files.i386 revision 1.225.
KATO Takenori [Thu, 4 Mar 1999 10:36:27 +0000 (10:36 +0000)]
Sync with sys/i386/conf/files.i386 revision 1.225.

25 years agoAdd the atapi fd driver (LS120 & ZIP drive support)
Søren Schmidt [Thu, 4 Mar 1999 09:53:19 +0000 (09:53 +0000)]
Add the atapi fd driver (LS120 & ZIP drive support)

25 years agoarprequest() allocates an mbuf with m_gethdr() but does not initialize
Bill Paul [Thu, 4 Mar 1999 04:03:57 +0000 (04:03 +0000)]
arprequest() allocates an mbuf with m_gethdr() but does not initialize
m->m_pkthdr.rcvif to NULL. Bad arprequest(). No biscuit.

25 years agoCorrect some ntohl/htonl bogons in the netmask handling.
Brian Somers [Wed, 3 Mar 1999 23:00:41 +0000 (23:00 +0000)]
Correct some ntohl/htonl bogons in the netmask handling.
This was pretty harmless as netmasks on a POINTOPOINT
interface are pretty much ignored, but it looked funny.

Mention the configured netmask in ``show ipcp''.

Describe in more detail what a proxy arp entry is.

25 years agoAdded driver to support ATAPI floppies ie LS-120 & ZIP drives.
Søren Schmidt [Wed, 3 Mar 1999 21:10:29 +0000 (21:10 +0000)]
Added driver to support ATAPI floppies ie LS-120 & ZIP drives.

Added "options ATA_STATIC_ID" that wires ATA disks like the old wd driver.

Fixed problems:

Dont use more sectors/intr than the drive supports.
Fix announce of > 8.4G disks.
Dont call ad_interrupt/ad_transfer when no disks config'd.
Use the right page# for CDR write mode params.
Fix breakage when no PCI support in kernel.
Implement DEVFS stuff.

General code clenaup.

25 years agoThe tunable parameter for the scheduler quantum was inverted.
Julian Elischer [Wed, 3 Mar 1999 18:15:29 +0000 (18:15 +0000)]
The tunable parameter for the scheduler quantum was inverted.
Higher numbers led to smaller quanta.
In discussion with BDE, change this parameter to be in uSecs
to make it machine independent,
and limit it to non zero multiples of 'tick' (rounding down).
Also make the variabel globally available so that the present function that
returns its value (used for posix scheduling I believe) can go away.

Submitted by: Bruce Evans <bde@freebsd.org>

25 years agoChange the comment to sendmail_flags which has scared so many people
Poul-Henning Kamp [Wed, 3 Mar 1999 15:04:33 +0000 (15:04 +0000)]
Change the comment to sendmail_flags which has scared so many people
from removing -bd to something more sensible.

25 years agoFixed null pointer panic for misconfigured master ports.
Bruce Evans [Wed, 3 Mar 1999 14:38:07 +0000 (14:38 +0000)]
Fixed null pointer panic for misconfigured master ports.

PR: i386/10273
Submitted by: Stephen Kiernan <sab@yin.vegamuse.org>

25 years agoFix the style of my previous commit.
Joerg Wunsch [Wed, 3 Mar 1999 14:02:50 +0000 (14:02 +0000)]
Fix the style of my previous commit.

Submitted by: The Style Police[tm]

25 years agoIncrease the vector that's used to look for free pty's. We go through
Joerg Wunsch [Wed, 3 Mar 1999 12:08:49 +0000 (12:08 +0000)]
Increase the vector that's used to look for free pty's.  We go through
/dev/ttypv right now, but window(1) was only looking up to ttypf,
causing an `Out of pseudo-terminals' when i just tried on freefall.

25 years agoAdded FE_8BIT_SUPPORT into the list. The fe driver includes opt_fe.h.
KATO Takenori [Wed, 3 Mar 1999 10:40:27 +0000 (10:40 +0000)]
Added FE_8BIT_SUPPORT into the list.  The fe driver includes opt_fe.h.

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

25 years agoThese were missing from the previous commit.
Warner Losh [Wed, 3 Mar 1999 07:08:03 +0000 (07:08 +0000)]
These were missing from the previous commit.

25 years agoBring in initial libc support for mips. These files were taken from
Warner Losh [Wed, 3 Mar 1999 07:06:17 +0000 (07:06 +0000)]
Bring in initial libc support for mips.  These files were taken from
the OpenBSD tree and should be considered preliminary.  They are here
to facilitate building of the tree.

25 years agoSlight cleanup of code resurected for union mounts..
Julian Elischer [Wed, 3 Mar 1999 02:35:51 +0000 (02:35 +0000)]
Slight cleanup of code resurected for union mounts..
Submitted by: Tony Finch <dot@dotat.at>

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.