]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoAdd ttyalloc() which in due time will be the successor to ttymalloc(),
phk [Fri, 17 Sep 2004 06:13:47 +0000 (06:13 +0000)]
Add ttyalloc() which in due time will be the successor to ttymalloc(),
but without the "struct tty *" argument.

19 years agoFurther refine some #ifs:
das [Fri, 17 Sep 2004 05:15:33 +0000 (05:15 +0000)]
Further refine some #ifs:
- Simplify the logic by using __GNUC_PREREQ__.
  Suggested by stefanf.
- Make math.h compile with old (pre-8.0) versions of icc.
  Submitted by sf [sic].

19 years agoCommit patch to supress spurious link change events. Apparently, with
wpaul [Fri, 17 Sep 2004 04:58:17 +0000 (04:58 +0000)]
Commit patch to supress spurious link change events. Apparently, with
copper NICs, a link change event is posted whenever MII autopolling is
toggled off and on, which happens whenever someone calls
bge_miibus_readreg() or bge_miibus_writereg() to access the PHY
registers. This means anytime someone called the SIOCGIFMEDIA ioctl
on a bge interface, the link would reset. Even a simple "ifconfig bge0"
would do it, though other apps like dhclient or the PPPoE daemon could
trigger it as well. An obvious symptom of this problem is lots of
"bgeX: gigabit link up" messages appearing on the console for no
apparent reason.

Through experimentation, I determined that when a real link change
event occurs, the BGE_MIMODE_AUTOPOLL in the BGE_MI_MODE register
is always set, so now if we have a copper NIC and an link change
event occurs and the BGE_MIMODE_AUTOPOLL bit is clear, we ignore
the event.

Note that this does not apply to the original BCM5700 chip since we
use a different method for sensing link changes with that chip (the
status block method was broken), nor to fiber optic NICs since they
don't use the GMII PHY access registers.

19 years agoFix two ugly errors:
kientzle [Fri, 17 Sep 2004 04:39:07 +0000 (04:39 +0000)]
Fix two ugly errors:
1. The correct cutoff for large uid/gid handling is 1<<18, not 1<<20.
2. Limit the uid/gid in the 'x' extension header (where numeric extensions
are not permitted) to 1<<18, but use the correct value in the regular
header (where numeric extensions are permitted).
Thanks to: Dan Nelson
MFC after: 3 days

19 years agoHandle _FDE results of 5 bytes (vs. 5 uint32_t's). BIOS vendors find yet
njl [Fri, 17 Sep 2004 04:14:38 +0000 (04:14 +0000)]
Handle _FDE results of 5 bytes (vs. 5 uint32_t's).  BIOS vendors find yet
another way to misinterpret the spec.  Also, always fall back to the hints
probe on any attach failure, not just when _FDE fails.

Thanks to imp and scottl for finding this.

Tested by: rwatson (minimally)
MFC after: 5 days

19 years agoDestroy global tapmtx when the if_tap module is unloaded.
rwatson [Fri, 17 Sep 2004 03:55:50 +0000 (03:55 +0000)]
Destroy global tapmtx when the if_tap module is unloaded.

RELENG_5 candidated.

19 years agoBreak out altq_enable/disable from DIOC{START,STOP}ALTQ into seprate
mlaier [Fri, 17 Sep 2004 02:15:05 +0000 (02:15 +0000)]
Break out altq_enable/disable from DIOC{START,STOP}ALTQ into seprate
functions that can be called from enable/disable pf as well. This improves
switching from non-altq ruleset to altq ruleset (and the other way 'round)
by a great deal and makes pfctl act like the user would except it to.

PR: kern/71746
Tested by: Aurilien "beorn" Rougemont (PR submitter)
MFC after: 3 days

19 years agoBump document date forgotten in last commit.
simon [Thu, 16 Sep 2004 22:26:45 +0000 (22:26 +0000)]
Bump document date forgotten in last commit.

19 years agoChange tabs to whitespaces.
glebius [Thu, 16 Sep 2004 21:33:56 +0000 (21:33 +0000)]
Change tabs to whitespaces.

Noticed by: ru
Pointy hat to: glebius

19 years ago- Make md(4) 64-bit clean.
pjd [Thu, 16 Sep 2004 21:32:13 +0000 (21:32 +0000)]
- Make md(4) 64-bit clean.
  After this change it should be possible to use very big md(4) devices.
- Clean up and simplify the code a bit.
- Use humanize_number(3) to print size of md(4) devices.
- Add 't' suffix which stands for terabyte.
- Make '-S' to really work with all types of devices.
- Other minor changes.

19 years agoInstall netflow includes.
glebius [Thu, 16 Sep 2004 20:42:03 +0000 (20:42 +0000)]
Install netflow includes.

Approved by: julian (mentor)

19 years agoAutogenerate device listings for ed(4)
brueffer [Thu, 16 Sep 2004 20:38:28 +0000 (20:38 +0000)]
Autogenerate device listings for ed(4)

MFC after: 3 days

19 years agoThere is no need to keep 'npage' value inside our softc structure,
pjd [Thu, 16 Sep 2004 20:38:11 +0000 (20:38 +0000)]
There is no need to keep 'npage' value inside our softc structure,
it is only used in one function. While doing so, change its type to
vm_ooffset_t.
We are still limited for swap-backed devices to 16TB on 32-bit architectures
where PAGE_SIZE is 4096 bytes.

19 years agoAdd ed(4)
brueffer [Thu, 16 Sep 2004 20:35:51 +0000 (20:35 +0000)]
Add ed(4)

MFC after: 3 days

19 years agoAttach ng_netflow to kernel build.
glebius [Thu, 16 Sep 2004 20:35:28 +0000 (20:35 +0000)]
Attach ng_netflow to kernel build.

Approved by: julian (mentor)

19 years ago- add a HARDWARE section based on the hardware notes
brueffer [Thu, 16 Sep 2004 20:33:32 +0000 (20:33 +0000)]
- add a HARDWARE section based on the hardware notes
- capitalize Ethernet
- minor fixes

MFC after: 3 days

19 years agoAdaptec ANA-6944/TX is supported
brueffer [Thu, 16 Sep 2004 20:29:19 +0000 (20:29 +0000)]
Adaptec ANA-6944/TX is supported

MFC after: 3 days

19 years agoA netgraph node implementing Netflow version 5.
glebius [Thu, 16 Sep 2004 20:24:23 +0000 (20:24 +0000)]
A netgraph node implementing Netflow version 5.

Supported by: Bestcom ISP, Rinet ISP
Approved by: julian (mentor)

19 years agoAllocate tty at attach time rather than open time.
phk [Thu, 16 Sep 2004 19:46:23 +0000 (19:46 +0000)]
Allocate tty at attach time rather than open time.

Use the init/lock*in/out fields in struct tty and remove them from our softc.

Use tty->t_sc to find out softc when convenient.

Mostly OK'ed by: bde

19 years ago- Do not use bio_pblkno as it is going away anyway.
pjd [Thu, 16 Sep 2004 19:42:17 +0000 (19:42 +0000)]
- Do not use bio_pblkno as it is going away anyway.
- Prefer bio_length than bio_bcount.

19 years agoFirst wakeup, then unlock.
pjd [Thu, 16 Sep 2004 18:59:19 +0000 (18:59 +0000)]
First wakeup, then unlock.

19 years agoType 'int' is too small for 'i' and 'lastp' variables. Use proper type,
pjd [Thu, 16 Sep 2004 18:56:20 +0000 (18:56 +0000)]
Type 'int' is too small for 'i' and 'lastp' variables. Use proper type,
which is vm_pindex_t (unsigned 64bit on i386).

19 years agoAdd missing comma
brueffer [Thu, 16 Sep 2004 18:46:21 +0000 (18:46 +0000)]
Add missing comma

Submitted by: ceri
MFC after: 3 days

19 years agoFix an out of bounds write during the initialization of the PF_INET protocol
andre [Thu, 16 Sep 2004 18:33:39 +0000 (18:33 +0000)]
Fix an out of bounds write during the initialization of the PF_INET protocol
family to the ip_protox[] array.  The protocol number of IPPROTO_DIVERT is
larger than IPPROTO_MAX and was initializing memory beyond the array.
Catch all these kinds of errors by ignoring protocols that are higher than
IPPROTO_MAX or 0 (zero).

Add more comments ip_init().

19 years agoThere is no such manual page in FreeBSD.
pjd [Thu, 16 Sep 2004 18:32:58 +0000 (18:32 +0000)]
There is no such manual page in FreeBSD.

19 years agoDo not traverse list of snapshots if there isn't one.
phk [Thu, 16 Sep 2004 17:28:56 +0000 (17:28 +0000)]
Do not traverse list of snapshots if there isn't one.

Found by: scottl

19 years agoDon't print a warning message if the _CRS value is empty. This is already
njl [Thu, 16 Sep 2004 17:19:16 +0000 (17:19 +0000)]
Don't print a warning message if the _CRS value is empty.  This is already
covered by other printfs under ACPI_DEBUG and is not a failure case.

MFC after: 3 days

19 years agoNew release notes:
hrs [Thu, 16 Sep 2004 17:18:55 +0000 (17:18 +0000)]
New release notes:
crontab(1) now properly prompts when an entry is written
in the incorrect format.

19 years agoWe don't have any providers of `beforenetlkm' in FreeBSD. Remove the
keramida [Thu, 16 Sep 2004 17:04:20 +0000 (17:04 +0000)]
We don't have any providers of `beforenetlkm' in FreeBSD.  Remove the
dependency to it from our rc.d scripts.

Approved by: mtm

19 years agoFix requirement of `network' to `NETWORK' because the former isn't
keramida [Thu, 16 Sep 2004 17:03:12 +0000 (17:03 +0000)]
Fix requirement of `network' to `NETWORK' because the former isn't
provided by any rc.d script.

Approved by: mtm

19 years agoDisconnect early-adopter/ from the build.
hrs [Thu, 16 Sep 2004 16:46:37 +0000 (16:46 +0000)]
Disconnect early-adopter/ from the build.

19 years agoMissed a place where snapshots were allocated in my last commit to
phk [Thu, 16 Sep 2004 15:58:18 +0000 (15:58 +0000)]
Missed a place where snapshots were allocated in my last commit to
this file.

19 years agog_nop_create: destroy newly created provider in case of errors.
fjoe [Thu, 16 Sep 2004 15:28:48 +0000 (15:28 +0000)]
g_nop_create: destroy newly created provider in case of errors.

19 years agoImplement cancellation points in libc interfaces, as specified by POSIX.
mtm [Thu, 16 Sep 2004 13:55:46 +0000 (13:55 +0000)]
Implement cancellation points in libc interfaces, as specified by POSIX.

19 years agoUse the tty->t_sc field to find our softc.
phk [Thu, 16 Sep 2004 12:07:25 +0000 (12:07 +0000)]
Use the tty->t_sc field to find our softc.

19 years agoAdd fields to struct tty for the initial/lock * tty/cua states.
phk [Thu, 16 Sep 2004 10:43:47 +0000 (10:43 +0000)]
Add fields to struct tty for the initial/lock * tty/cua states.

19 years agoIgnore leading '_' in model name returned by devices.
sos [Thu, 16 Sep 2004 09:35:01 +0000 (09:35 +0000)]
Ignore leading '_' in model name returned by devices.

This make "_NEC" devices appear as "NEC" which is more corrent.
The reason is tha NEC originally screwed up on the byteorder in the
model string, so now that they have realized that they prefixed the '_'
so that not every ATA driver on the planet would call them "EN C" :)

19 years agoclean up thread runq accounting a bit.
julian [Thu, 16 Sep 2004 07:12:59 +0000 (07:12 +0000)]
clean up thread runq accounting a bit.

MFC after: 3 days

19 years agodefault: case shouldn't set an error yet either.
imp [Thu, 16 Sep 2004 06:37:05 +0000 (06:37 +0000)]
default: case shouldn't set an error yet either.

19 years agoReserve the DMA memory at attach time, rather than at use. While
imp [Thu, 16 Sep 2004 06:34:00 +0000 (06:34 +0000)]
Reserve the DMA memory at attach time, rather than at use.  While
reserving it at use time is more miserly, low memory (< 16MB)
evaporates quickly on many systems, so there may not be any suitable
buffers available.  This specifically doesn't use the newer, fancier
isa_dma_init to ease merging to 5.

Reviewed by: tegge, phk

19 years agowhitespace change
phk [Thu, 16 Sep 2004 06:00:52 +0000 (06:00 +0000)]
whitespace change

19 years agoe specific code to revert a partial add ot teh run queue, not
julian [Thu, 16 Sep 2004 05:37:40 +0000 (05:37 +0000)]
e specific code to revert a partial add ot teh run queue, not
remrunqueue() which can't handle a partially added thread.

MFC after: 1 week

19 years agoIf the timeout handler runs and notices that commands are timed out, check
scottl [Thu, 16 Sep 2004 02:37:40 +0000 (02:37 +0000)]
If the timeout handler runs and notices that commands are timed out, check
the firmware status register on the card to see if the firmware is still
running.  There is no way to recover from this, but at least it can give
a hint as whether the car has crashed (which happens all too often).

MFC after: 3 days

19 years agoFor the moment, treat failures to attach floppy drives as non-fatal
imp [Thu, 16 Sep 2004 01:51:21 +0000 (01:51 +0000)]
For the moment, treat failures to attach floppy drives as non-fatal
errors for the attachment process for the floppy controller.  This is
a band-aide because it doesn't try any of the fallback methods when
_FDE isn't long enough, but should be sufficient for people
experiencing the dreaded mutex not initialized panic.

19 years agoUpdate path to c++ internals includes for the 3.4 location.
peter [Thu, 16 Sep 2004 01:41:11 +0000 (01:41 +0000)]
Update path to c++ internals includes for the 3.4 location.
No longer use make -k since the libraries target should build now.
Remove hacks for gnu/lib/libregex.

19 years agoBe explicit about which regex.h file we are including. This reduces the
peter [Thu, 16 Sep 2004 01:39:13 +0000 (01:39 +0000)]
Be explicit about which regex.h file we are including.  This reduces the
need for hack workarounds in tools/lib32/build32.sh.

19 years agoAdd libmagic to the explicit build-tools list.
peter [Thu, 16 Sep 2004 00:22:59 +0000 (00:22 +0000)]
Add libmagic to the explicit build-tools list.

19 years agoBackout the code which tries to use undocumented way to determine if
sobomax [Wed, 15 Sep 2004 23:47:17 +0000 (23:47 +0000)]
Backout the code which tries to use undocumented way to determine if
fm801 has sound capabilities or not. Unfortunately this code doesn't
work as expected.

Submitted by: many
MFC after: 3 days

19 years agoFix breakpoint handling for i386.
julian [Wed, 15 Sep 2004 23:26:49 +0000 (23:26 +0000)]
Fix breakpoint handling for i386.
not sure yet about 5.x... MFC if needed.
Also fixes small problems with examining some registers and
some specific gdb transfer problems.

As the patch says:
This is not a pretty patch and only meant as a temporary
fix until a better solution is committed.

PR: i386/71715
Submitted by: Stephan Uphoff <ups@tree.com>
MFC after: 1 week

19 years agoMake libcrypto/libssh cross compile
peter [Wed, 15 Sep 2004 23:15:53 +0000 (23:15 +0000)]
Make libcrypto/libssh cross compile

19 years agoFix typo in rev 1.2 "-DNOINFOall" should be "-DNOINFO all"
peter [Wed, 15 Sep 2004 23:01:28 +0000 (23:01 +0000)]
Fix typo in rev 1.2 "-DNOINFOall" should be "-DNOINFO all"

19 years agoRemove unused B_WRITEINPROG flag
phk [Wed, 15 Sep 2004 21:49:22 +0000 (21:49 +0000)]
Remove unused B_WRITEINPROG flag

19 years agoSimplify initialization of va_null a little bit.
phk [Wed, 15 Sep 2004 21:42:03 +0000 (21:42 +0000)]
Simplify initialization of va_null a little bit.

19 years agoComment lines may have leading whitespace.
des [Wed, 15 Sep 2004 21:10:46 +0000 (21:10 +0000)]
Comment lines may have leading whitespace.

PR: 71773
Submitted by: Antoine Brodin <antoine.brodin@laposte.net>

19 years agoundent some functions a bit.
phk [Wed, 15 Sep 2004 21:08:58 +0000 (21:08 +0000)]
undent some functions a bit.

19 years agostylistic polishing.
phk [Wed, 15 Sep 2004 20:54:23 +0000 (20:54 +0000)]
stylistic polishing.

19 years agoClarify some comments for the M_FASTFWD_OURS case in ip_input().
andre [Wed, 15 Sep 2004 20:17:03 +0000 (20:17 +0000)]
Clarify some comments for the M_FASTFWD_OURS case in ip_input().

19 years agoRemove the last two global variables that are used to store packet state while
andre [Wed, 15 Sep 2004 20:13:26 +0000 (20:13 +0000)]
Remove the last two global variables that are used to store packet state while
it travels through the IP stack.  This wasn't much of a problem because IP
source routing is disabled by default but when enabled together with SMP and
preemption it would have very likely cross-corrupted the IP options in transit.

The IP source route options of a packet are now stored in a mtag instead of the
global variable.

19 years agoMy fingers keep typing 'burncd data foo fixate eject' instead of 'burncd -e
des [Wed, 15 Sep 2004 19:03:35 +0000 (19:03 +0000)]
My fingers keep typing 'burncd data foo fixate eject' instead of 'burncd -e
data foo fixate'.  Humor them.

MFC after: 4 weeks

19 years agoPark my birthday truck in this free space.
kwm [Wed, 15 Sep 2004 19:03:27 +0000 (19:03 +0000)]
Park my birthday truck in this free space.

Approved by: pav (mentor)

19 years agoMechanical whitespace cleanup.
des [Wed, 15 Sep 2004 19:01:08 +0000 (19:01 +0000)]
Mechanical whitespace cleanup.

19 years agoUpdate to reflect recent changes such as the fields for O(log n) address
alc [Wed, 15 Sep 2004 18:41:10 +0000 (18:41 +0000)]
Update to reflect recent changes such as the fields for O(log n) address
space allocation.

Submitted by: Mark W. Krentel

19 years agoTry harder to get back to being a non threaded process.
julian [Wed, 15 Sep 2004 18:39:09 +0000 (18:39 +0000)]
Try harder to get back to being a non threaded process.

Submitted by: DavidXu
MFC after: 3 days

19 years agoFlush the queue of minor fixes to pst.
sos [Wed, 15 Sep 2004 15:39:28 +0000 (15:39 +0000)]
Flush the queue of minor fixes to pst.

19 years agoAdd new a function isa_dma_init() which returns an errno when it fails
phk [Wed, 15 Sep 2004 12:09:50 +0000 (12:09 +0000)]
Add new a function isa_dma_init() which returns an errno when it fails
and which takes a M_WAITOK/M_NOWAIT flag argument.

Add compatibility isa_dmainit() macro which whines loudly if
isa_dma_init() fails.

Problem uncovered by: tegge

19 years agoRemove now unused #include files.
phk [Wed, 15 Sep 2004 12:02:35 +0000 (12:02 +0000)]
Remove now unused #include files.

19 years ago#include <isa/isavar.h> instead of <i386/isa/isa_dma.h>
phk [Wed, 15 Sep 2004 11:58:34 +0000 (11:58 +0000)]
#include <isa/isavar.h> instead of <i386/isa/isa_dma.h>

19 years agoDistinguish between TCQ and NCQ type of tagged queing.
sos [Wed, 15 Sep 2004 11:22:05 +0000 (11:22 +0000)]
Distinguish between TCQ and NCQ type of tagged queing.

19 years agoClear all "active partition" bits before we set a new one.
delphij [Wed, 15 Sep 2004 08:19:03 +0000 (08:19 +0000)]
Clear all "active partition" bits before we set a new one.

This adds a safebelt that prevents users to mark more than
one "active" partitions, which will lead to a unbootable
machine, especially in multi-boot configurations.

PR: bin/71404
MFC After: 3 days
Approved by: murray (mentor)

19 years agoUse "cp -f" instead of "rm" and "cp" to break the hardlink to
brooks [Wed, 15 Sep 2004 05:14:21 +0000 (05:14 +0000)]
Use "cp -f" instead of "rm" and "cp" to break the hardlink to
device.hints.

Submitted by: ru

19 years agoFix a LOR where copyout was called while holding a lock.
brooks [Wed, 15 Sep 2004 04:41:56 +0000 (04:41 +0000)]
Fix a LOR where copyout was called while holding a lock.

Reported by:    rwatson

19 years agoOops accidentally removed #ifdef SCHED_4BSD
julian [Wed, 15 Sep 2004 03:51:51 +0000 (03:51 +0000)]
Oops accidentally removed #ifdef SCHED_4BSD
as part of another commit
This function is not yet used in ULE

19 years agoFix a typo that affects !i386.
alc [Wed, 15 Sep 2004 03:39:18 +0000 (03:39 +0000)]
Fix a typo that affects !i386.

19 years agoAdd a mention of the ntpd_sync_on_start tunable.
seanc [Wed, 15 Sep 2004 01:39:25 +0000 (01:39 +0000)]
Add a mention of the ntpd_sync_on_start tunable.

Requested by: maxim

19 years agoBring back etc/rc.d/ntpdate as requested by scads of people. This isn't a
seanc [Wed, 15 Sep 2004 01:08:33 +0000 (01:08 +0000)]
Bring back etc/rc.d/ntpdate as requested by scads of people.  This isn't a
complete backout as the ntpd_sync_on_start etc/rc.conf tunable is still
present, though the default is now NO (was YES).  Since we're no longer
syncing time at startup by default when ntpd is enabled (as was the case
24hrs ago), remove UPDATING entry pointing out that ntpd(1) -g is slower
than ntpdate(1).

Hopefully ntpd_sync_on_start="YES" can be made the default for -CURRENT
after 5.3 is cut.  At the very least, this should be set to YES when a
user requests to have ntpd enabled via sysinstall(1).

Requested by: many

19 years agoAdd missing NGE_LOCK_DESTROY() to nge_detach().
wpaul [Tue, 14 Sep 2004 22:32:58 +0000 (22:32 +0000)]
Add missing NGE_LOCK_DESTROY() to nge_detach().

19 years agoMake two major changes to this code to address some stability/corruption
wpaul [Tue, 14 Sep 2004 22:06:25 +0000 (22:06 +0000)]
Make two major changes to this code to address some stability/corruption
problems:

1) Add locking for SMP, code provided by Alan Cox
2) While testing Alan's patches, I observed serious problems with
   the jumbo buffer allocation code (machine crashed twice), so I gutted
   it and rewrote the receive handler to use multiple chained descriptors.
   Each RX descriptor gets a single 2K cluster, and the chip will fill in
   as many as it needs to hold the complete packet.

User reports that this corrects the data corruption issues previously
observed and discussed on -current.

Note that this driver still needs to be hit with the busdma stick.
I intend to inflict said beating in the near future.

MFC after: 1 week

19 years agoCorrect polarity of packet mode bit.
tegge [Tue, 14 Sep 2004 21:58:30 +0000 (21:58 +0000)]
Correct polarity of packet mode bit.

Problem discovered when 'boot0cfg -B -v -o packet -s 2 ad4' turned off
packet mode while reporting it as being enabled.

19 years agoboot0 defaults to packet mode.
tegge [Tue, 14 Sep 2004 21:48:25 +0000 (21:48 +0000)]
boot0 defaults to packet mode.

19 years agoUse a safe temporary file for saving out the PR if send-pr is
ceri [Tue, 14 Sep 2004 20:30:35 +0000 (20:30 +0000)]
Use a safe temporary file for saving out the PR if send-pr is
interrupted.

MT5: 7 days
MT4: 7 days

19 years agoAdd missing #include
emax [Tue, 14 Sep 2004 20:04:33 +0000 (20:04 +0000)]
Add missing #include
Bump WARNS level to 2

PR: bin/71668
Submitted by: Dan Lukes <dan@obluda.cz>
MFC after: 3 days

19 years agoDeallocate VM object on failure.
pjd [Tue, 14 Sep 2004 19:55:07 +0000 (19:55 +0000)]
Deallocate VM object on failure.

19 years agoOne more missing NDFREE(9).
pjd [Tue, 14 Sep 2004 19:27:59 +0000 (19:27 +0000)]
One more missing NDFREE(9).

19 years agoEnsure that edits that do not span a clock tick are not lost.
dds [Tue, 14 Sep 2004 19:01:19 +0000 (19:01 +0000)]
Ensure that edits that do not span a clock tick are not lost.

PR: bin/22612
MT5: 4 weeks
MT4: 2 weeks

19 years ago- Don't forget about NDFREE() in case of vn_open() failure.
pjd [Tue, 14 Sep 2004 18:43:24 +0000 (18:43 +0000)]
- Don't forget about NDFREE() in case of vn_open() failure.
- Don't forget about vn_close() in case of failure.

19 years agounlock global lock in kqueue_scan before msleep'ing to prevent dead
jmg [Tue, 14 Sep 2004 18:38:16 +0000 (18:38 +0000)]
unlock global lock in kqueue_scan before msleep'ing to prevent dead
lock..  we didn't unlock global lock earlier to prevent just having
to reaquire it again..

Found by: peter
Reviewed by: ps
MFC after: 3 days

19 years agoFix UMA zone leak.
pjd [Tue, 14 Sep 2004 18:32:05 +0000 (18:32 +0000)]
Fix UMA zone leak.

19 years agoUse bus_setup_intr in preference to BUS_SETUP_INTR.
imp [Tue, 14 Sep 2004 17:28:51 +0000 (17:28 +0000)]
Use bus_setup_intr in preference to BUS_SETUP_INTR.

19 years agoBetter wording for the hardware section.
brueffer [Tue, 14 Sep 2004 16:46:16 +0000 (16:46 +0000)]
Better wording for the hardware section.

Discussed with: emax

19 years agoSet up the data flow flag correctly so that bounced buffers have a chance of
scottl [Tue, 14 Sep 2004 16:36:12 +0000 (16:36 +0000)]
Set up the data flow flag correctly so that bounced buffers have a chance of
working in amr_enquire().

19 years agoFix copyright (e-mail address and years were wrong).
wpaul [Tue, 14 Sep 2004 16:08:13 +0000 (16:08 +0000)]
Fix copyright (e-mail address and years were wrong).

19 years agoReactivate skipping over bogus IPCP addresses on ppp interfaces. Be more
mlaier [Tue, 14 Sep 2004 15:20:24 +0000 (15:20 +0000)]
Reactivate skipping over bogus IPCP addresses on ppp interfaces. Be more
careful with the skip condition this time. Addresses are only not taken into
account if:
- The interface is POINTTOPOINT
- There is no route installed for the address
- The user specified noalias (:0)
and - We are looking at an IPv4 address.

This should be enough paranoia to not cause any false positives.

PR:   misc/69954
Discussed with: yongari
MFC after: 4 days

19 years agoRemove a bogus check that caused empty lines not to be counted when the
tjr [Tue, 14 Sep 2004 12:01:18 +0000 (12:01 +0000)]
Remove a bogus check that caused empty lines not to be counted when the
-c option was given.

Noticed by: sf

19 years agoBe explicit that packets passed from a 'ipfw tee' action will not be reassembled.
andre [Tue, 14 Sep 2004 09:35:10 +0000 (09:35 +0000)]
Be explicit that packets passed from a 'ipfw tee' action will not be reassembled.

Prodded by: ru

19 years agoCheckpoint the fdc resource changes:
imp [Tue, 14 Sep 2004 07:06:49 +0000 (07:06 +0000)]
Checkpoint the fdc resource changes:

o Allow for up to 3 resource I/O ranges to be given for the floppy
  controller, rather than just two that are allowed for now.
o Make sure that we can work with either a base address of 0x3f0 or 0x3f2.
o Create new inline functions to access the YE DATA's unique BDCR register.
o Update pccard attachment to add the fd device.
o Do some minor style(9) polishing.

# I'm guessing that the fdc pccard attachment broke some time ago, since
# there are a number of issues with it still.

19 years agoUpdate release notes:
hrs [Tue, 14 Sep 2004 05:35:19 +0000 (05:35 +0000)]
Update release notes:
Add a note about pcm(4)->sound(4) transition.

Noticed by: ru

19 years agoAdd 'hint.atkbd.0.flags="0x1"' back to /boot/device.hints on the
brooks [Tue, 14 Sep 2004 04:01:57 +0000 (04:01 +0000)]
Add 'hint.atkbd.0.flags="0x1"' back to /boot/device.hints on the
install media on i386 and amd64.  While the current default is very
useful in server environments, the ability to use USB keyboards is
vastly more important then the ability to use PS/2 keyboards the admin
forgot to plug in during the install process.

PR: kern/71443

19 years agoMove pf* init from SI_SUB_PSEUDO to SI_SUB_PROTO_IFATTACHDOMAIN where it is
mlaier [Tue, 14 Sep 2004 03:12:01 +0000 (03:12 +0000)]
Move pf* init from SI_SUB_PSEUDO to SI_SUB_PROTO_IFATTACHDOMAIN where it is
save to call if_attachdomain from if_attach() (as done for if_loop.c). We
will now end up with a properly initialized if_afdata array and the nd6
callout will no longer try to deref a NULL pointer.

Still this is a temp workaround and the locking for if_afdata should be
revisited at a later point.

Requested by: rwatson
Discussed with and tested by: yongari (a while ago)
PR: kern/70393
MFC after: 5 days

19 years agoStop using ntpdate(1) in our startup procedure. Replace ntpdate(1) with
seanc [Tue, 14 Sep 2004 03:04:50 +0000 (03:04 +0000)]
Stop using ntpdate(1) in our startup procedure.  Replace ntpdate(1) with
calls to ntpd -g.  ntpd is noticeably slower than ntpdate, but is also more
accurate.  This removes the nasty hackery in rc.d/ntpdate that would parse
out ntp servers from /etc/ntp.conf (ntpd knows how to read its own config
file).  By default, ntpd *will* sync with its listed time servers.  To
turn this off so that ntpd does not sync, ntpd_sync_on_start="NO" can be
added to /etc/rc.conf.  If ntpd is not enabled (the default), then time is
not synced on startup.  ntpdate has been depreciated by the ntpd authors
for quite some time so this change shouldn't be unexpected.

Suggested by: des
Approved by: roberto (resident ntp guru)

19 years agoStop using ntpdate(1) in our startup proceedure. Replace ntpdate(1) with
seanc [Tue, 14 Sep 2004 03:01:38 +0000 (03:01 +0000)]
Stop using ntpdate(1) in our startup proceedure.  Replace ntpdate(1) with
calls to ntpd -g.  ntpd is noticably slower than ntpdate, but is also more
accurate.  This removes the nasty hackery in rc.d/ntpdate that would parse
out ntp servers from /etc/ntp.conf (ntpd knows how to read its own config
file).  By default, ntpd *will* sync with its listed time servers.  To
turn this off so that ntpd does not sync, ntpd_sync_on_start="NO" can be
added to /etc/rc.conf.  If ntpd is not enabled (the default), then time is
not synced on startup.  ntpdate's use has been depreciated by the ntpd
authors for quite some time so this change shouldn't be unexpected.

Suggested by: des
Approved by: roberto (resident ntp guru)