]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoBe robust to a bogus script specification or contents
yar [Mon, 4 Jun 2007 11:39:35 +0000 (11:39 +0000)]
Be robust to a bogus script specification or contents
when figuring out what the real interpreter is for an
interpreted command.  That is, check whether we can read
the script file in the first place and, if so, make sure
we got a valid shebang line from it.

17 years agoReimplement traverse() helper function:
pjd [Mon, 4 Jun 2007 11:31:46 +0000 (11:31 +0000)]
Reimplement traverse() helper function:
1. Pass locking flags to VFS_ROOT().
2. Check v_mountedhere while the vnode is locked.
3. Always return locked vnode on success.

Change 1 fixes problem reported by Stephen M. Rumble - after
zfs_vfsops.c,1.9 change, zfs_root() no longer locks the vnode
unconditionally and traverse() didn't pass right lock type to
VFS_ROOT(). The result was that kernel paniced when .zfs/ directory
was accessed via NFS.

17 years agoNow that tone & delay times are correct (independent of hz), adjust
brian [Mon, 4 Jun 2007 09:27:13 +0000 (09:27 +0000)]
Now that tone & delay times are correct (independent of hz), adjust
playtone() so that it uses times of 1/100ths of a second.

Now 'time echo T60ABC >/dev/speaker' takes ~3 seconds.

MFC after: 2 weeks
Problem noted by: dwmalone

17 years agoSpeaker durations are specified in 1/100ths of a second according to
brian [Mon, 4 Jun 2007 08:33:18 +0000 (08:33 +0000)]
Speaker durations are specified in 1/100ths of a second according to
spkr(4).

PR: 70610, 67995
Submitted by: dada at sbox dot tugraz dot at (modulo one fix)
MFC after: 2 weeks

17 years agoAdd the machine-specific definitions for configuring the new physical
alc [Mon, 4 Jun 2007 08:02:22 +0000 (08:02 +0000)]
Add the machine-specific definitions for configuring the new physical
memory allocator.

Approved by: re

17 years agoTrack an update in the MPI headers that was missed earlier.
scottl [Mon, 4 Jun 2007 06:18:07 +0000 (06:18 +0000)]
Track an update in the MPI headers that was missed earlier.

17 years agocleanup about the reassembly structures and routine:
jinmei [Mon, 4 Jun 2007 06:06:35 +0000 (06:06 +0000)]
cleanup about the reassembly structures and routine:
  - removed unused structure members
  - fixed a minor bug that the ECN code point may not be restored correctly

Approved by: ume (mentor)
MFC after: 1 week

17 years agogem(4) supports altq(4) now.
yongari [Mon, 4 Jun 2007 06:01:57 +0000 (06:01 +0000)]
gem(4) supports altq(4) now.

17 years agoo Implemented Rx/Tx checksum offload. The simple checksum logic in
yongari [Mon, 4 Jun 2007 06:01:04 +0000 (06:01 +0000)]
o Implemented Rx/Tx checksum offload. The simple checksum logic in
  GEMs is unable to discriminate UDP from TCP packets such that
  it can generate 0x0000 checksum value for the UDP datagram. So the
  UDP checksum offload was disabled by default. You can enable it
  by setting link0 flag with ifconfig(8).
o bus_dma(9) clean up. It now correctly set number of required DMA
  segments/size and removed incorrect use of BUS_DMA_ALLOCNOW flag
  in static allocations done via bus_dmamem_alloc(9).
o Implemented ALTQ(9) support.
o Implemented Tx side bus_dmamap_load_mbuf_sg(9) which can remove
  several book keeping chores orginated from call-back mechanism.
  Therefore gem_txdma_callback() was removed and its functionality
  was reimplemented in gem_load_txmbuf().
o Don't set GEM_TD_START_OF_PACKET flag until all remaining mbuf
  chains are set. I think it was a long standing bug and it caused
  fluctuating interrupts/CPU usage patterns while netperf test
  is in progress. Previously it seems that we race with the device.
  Because I don't have a documentation for GEM I'm not sure this is
  correct but almost all other documentations I have stated this
  implications on setting SOP mark in descriptor ring(e.g. hme(4)).
o Borrowed gem_defrag() from ath(4) which is supposed to be much
  faster than m_defrag(9) since it's not need to defrag all
  mbuf chains.
o gem_load_txmbuf() was changed to allow passed mbuf chains to free.
  Caller of gem_load_txmbuf() correctly handles freed mbuf chains.
o In gem_start_locked(), added checks for availability of Tx
  descriptors before trying to load DMA maps which could save CPU
  cycles when number of available descriptors are low. Also, simplyfy
  IFF_DRV_OACTIVE detection logic.
o Removed hard-coded function names in CTR macros and replaced it
  with __func__.
o Moved statistics counter register access to gem_tick() to reduce
  number of PCI bus accesses. There is no reason to update statistics
  counters in interrupt handler.
o Removed unnecessary call of gem_start_locked() in gem_ioctl().

Reviewed by: grehan (initial version), marius (with improvements and suggestions)
Tested by: grehan (ppc), marius(sparc64)

17 years agoMigrate from setting a CARD_OK flag in a shared word, to setting its
imp [Mon, 4 Jun 2007 05:59:44 +0000 (05:59 +0000)]
Migrate from setting a CARD_OK flag in a shared word, to setting its
own entry in the softc.  This should allow more of cbb_pci_intr() to
migrate to a new cbb_pci_filt() so that we don't have to run cbb's ISR
in almost every case we get an interrupt.  We can't just move
cbb_pci_intr into cbb_pci_filt because it does things that aren't safe
to do from a fast interrupt handler, err I mean from a filter.  This is
an important first step.

# I wonder if I need to make cardok volatile or not.

17 years agoFree the portinfo object on unload.
scottl [Mon, 4 Jun 2007 04:35:04 +0000 (04:35 +0000)]
Free the portinfo object on unload.

17 years agoDon't register cb_func_filt if the client driver doesn't have a filter.
imp [Mon, 4 Jun 2007 03:13:24 +0000 (03:13 +0000)]
Don't register cb_func_filt if the client driver doesn't have a filter.
ditto for the isr.

Reviewed/Suggested by: simokawa-san

17 years agoRemove files no longer required to build IPFilter
darrenr [Mon, 4 Jun 2007 03:07:34 +0000 (03:07 +0000)]
Remove files no longer required to build IPFilter

17 years agoMerge IPFilter 4.1.23 back to HEAD
darrenr [Mon, 4 Jun 2007 02:54:36 +0000 (02:54 +0000)]
Merge IPFilter 4.1.23 back to HEAD
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13

17 years agoThis commit was generated by cvs2svn to compensate for changes in r170263,
darrenr [Mon, 4 Jun 2007 02:50:28 +0000 (02:50 +0000)]
This commit was generated by cvs2svn to compensate for changes in r170263,
which included commits to RCS files with non-trunk default branches.

17 years agoImport IPFilter 4.1.23 to vendor branch.
darrenr [Mon, 4 Jun 2007 02:50:28 +0000 (02:50 +0000)]
Import IPFilter 4.1.23 to vendor branch.
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13

17 years agoImport IPFilter 4.1.23 to vendor branch.
darrenr [Mon, 4 Jun 2007 02:50:28 +0000 (02:50 +0000)]
Import IPFilter 4.1.23 to vendor branch.
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13

17 years agoAdd the machine-specific definitions for configuring the new physical
alc [Mon, 4 Jun 2007 02:32:07 +0000 (02:32 +0000)]
Add the machine-specific definitions for configuring the new physical
memory allocator.

Approved by: re

17 years agoUse correct comment syntax for $FreeBSD$. This file gets put through
grog [Mon, 4 Jun 2007 01:44:07 +0000 (01:44 +0000)]
Use correct comment syntax for $FreeBSD$.  This file gets put through
cpp, not a shell script.

Pointy hat to: grog

17 years agoRegen.
delphij [Mon, 4 Jun 2007 01:43:25 +0000 (01:43 +0000)]
Regen.

17 years agoResolve conflicts.
delphij [Mon, 4 Jun 2007 01:43:11 +0000 (01:43 +0000)]
Resolve conflicts.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r170256,
delphij [Mon, 4 Jun 2007 01:42:54 +0000 (01:42 +0000)]
This commit was generated by cvs2svn to compensate for changes in r170256,
which included commits to RCS files with non-trunk default branches.

17 years ago/home/delphij/m
delphij [Mon, 4 Jun 2007 01:42:54 +0000 (01:42 +0000)]
/home/delphij/m

17 years agoNuke man page links that were orphaned by vendor branch import of
truckman [Sun, 3 Jun 2007 23:36:23 +0000 (23:36 +0000)]
Nuke man page links that were orphaned by vendor branch import of
TrustedBSD OpenBSM 1.0 alpha 6.

MFC after: 3 days

17 years agoAdd the machine-specific definitions for configuring the new physical
alc [Sun, 3 Jun 2007 23:33:11 +0000 (23:33 +0000)]
Add the machine-specific definitions for configuring the new physical
memory allocator.

Approved by: re

17 years agoAdd the machine-specific definitions for configuring the new physical
alc [Sun, 3 Jun 2007 23:18:29 +0000 (23:18 +0000)]
Add the machine-specific definitions for configuring the new physical
memory allocator.

Set the size of phys_avail[] and dump_avail[] using one of these
definitions.

Approved by: re

17 years agompt.c:
scottl [Sun, 3 Jun 2007 23:13:05 +0000 (23:13 +0000)]
mpt.c:
mpt.h:
Add support for reading extended configuration pages.
mpt_cam.c:
Do a top level topology scan on the SAS controller.  If any SATA
device are discovered in this scan, send a passthrough FIS to set
the write cache.  This is controllable through the following
tunable at boot:

hw.mpt.enable_sata_wc:
-1 = Do not configure, use the controller default
 0 = Disable the write cache
 1 = Enable the write cache

The default is -1.  This tunable is just a hack and may be
deprecated in the future.

Turning on the write cache alleviates the write performance problems with
SATA that many people have observed.  It is not recommend for those who
value data reliability!  I cannot stress this strongly enough.  However,
it is useful in certain circumstances, and it brings the performence in line
with what a generic SATA controller running under the FreeBSD ATA driver
provides (and the ATA driver has had the WC enabled by default for years).

17 years agoUpdate to MPI 1.5.16
scottl [Sun, 3 Jun 2007 22:58:27 +0000 (22:58 +0000)]
Update to MPI 1.5.16

17 years agoPrepare for the new physical memory allocator: Change the way that the
alc [Sun, 3 Jun 2007 19:39:38 +0000 (19:39 +0000)]
Prepare for the new physical memory allocator: Change the way that the
physical page's color is obtained.

Approved by: re

17 years agoRevert some debugging KTRs that were added during development.
kris [Sun, 3 Jun 2007 18:24:31 +0000 (18:24 +0000)]
Revert some debugging KTRs that were added during development.

17 years agoMerge BIND 9.4.1 into main chunk.
ume [Sun, 3 Jun 2007 18:13:59 +0000 (18:13 +0000)]
Merge BIND 9.4.1 into main chunk.

MFC after: 2 weeks

17 years agoMerge BIND 9.4.1 into main chunk.
ume [Sun, 3 Jun 2007 17:20:27 +0000 (17:20 +0000)]
Merge BIND 9.4.1 into main chunk.

MFC after: 2 weeks

17 years agoThis commit was generated by cvs2svn to compensate for changes in r170242,
ume [Sun, 3 Jun 2007 17:02:29 +0000 (17:02 +0000)]
This commit was generated by cvs2svn to compensate for changes in r170242,
which included commits to RCS files with non-trunk default branches.

17 years agoVendor import of BIND 9.4.1
ume [Sun, 3 Jun 2007 17:02:29 +0000 (17:02 +0000)]
Vendor import of BIND 9.4.1

17 years agoFix the amd64 and pc98 versions of ISC_ATOMIC_ARCH with some help
dougb [Sun, 3 Jun 2007 16:49:57 +0000 (16:49 +0000)]
Fix the amd64 and pc98 versions of ISC_ATOMIC_ARCH with some help
from ru@.

Take a guess at what might work on arm to try and fix the build.

17 years agoCorrect a typo.
bz [Sun, 3 Jun 2007 15:32:06 +0000 (15:32 +0000)]
Correct a typo.

PR: 106049
Submitted by: edwin (as part of a larger patch)

17 years agoInsert NULL pointer checking around devclass_get_maxunit(pcm_devclass, ..) .
ariff [Sun, 3 Jun 2007 10:56:22 +0000 (10:56 +0000)]
Insert NULL pointer checking around devclass_get_maxunit(pcm_devclass, ..) .
Things can get ugly without it due to uninitialized class. RELENG_6 need
a simmilar, but different treatment as well.

err.. perhaps we should teach devclass_get_maxunit() to return -1 ?

MFC after: 1 day

17 years agoMinor filter tweaks:
imp [Sun, 3 Jun 2007 05:42:05 +0000 (05:42 +0000)]
Minor filter tweaks:
o If we don't have a filter, also check to make sure the card is there before
  calling the scheduled ISR.  This is necessary to help old drivers whose
  ISRs can't cope with being called with the hardware missing, which sadly
  still exist in the tree.  This is the main reason why we have an extra
  layer of indirection for cardbus interrupts.
o If the card is no longer present, mark the interrupt as 'handled' rather
  than 'stray' because this accounts for why the interrupt happened.  Stray
  isn't all bad, since there are other filters that would claim it...
o Fix some comments
  + Add comment about why we check for CARD_OK and touch the hardware in both
    the filter and ISR.
  + add a note about why we don't care about Giant
  + also note that giant can't be taken out in a filter...
  + Some minor formatting nits on very long comments.

17 years agoAdd regression tests for calendar.
grog [Sun, 3 Jun 2007 03:29:32 +0000 (03:29 +0000)]
Add regression tests for calendar.

Submitted by: edwin@
PR: bin/113275
MFC after: 2 weeks

17 years agoFix various bugs in the -A and -B options.
grog [Sun, 3 Jun 2007 03:07:10 +0000 (03:07 +0000)]
Fix various bugs in the -A and -B options.

Submitted by: edwin@
PR: bin/113250
MFC after: 2 weeks

17 years agodisable taskqueue_drain calls on transition to INIT state; we need to
sam [Sun, 3 Jun 2007 02:16:48 +0000 (02:16 +0000)]
disable taskqueue_drain calls on transition to INIT state; we need to
find another way to do this as we cannot hold the softc mtx across
these calls

17 years agoDisable CPU idle states during suspend and reenable them during resume.
njl [Sun, 3 Jun 2007 00:40:56 +0000 (00:40 +0000)]
Disable CPU idle states during suspend and reenable them during resume.
While in the suspend path, this means the idle thread will just return
immediately rather than trying to enter C1-n.  This helps in the case where
the chipset is powered down before the rest of the system and reads from
the cpu sleep registers begin returning immediately, causing the logic that
catches bad C2/C3 behavior to kick in.  Observed on my Panasonic Y4.

MFC after: 3 days

17 years agoUpdate the upgrade notes for BIND 9.4.1
dougb [Sat, 2 Jun 2007 23:32:13 +0000 (23:32 +0000)]
Update the upgrade notes for BIND 9.4.1

17 years agoThis commit was generated by cvs2svn to compensate for changes in r170225,
dougb [Sat, 2 Jun 2007 23:29:48 +0000 (23:29 +0000)]
This commit was generated by cvs2svn to compensate for changes in r170225,
which included commits to RCS files with non-trunk default branches.

17 years agoUpdate generated files for BIND 9.4.1
dougb [Sat, 2 Jun 2007 23:24:14 +0000 (23:24 +0000)]
Update generated files for BIND 9.4.1

17 years agoThis commit was generated by cvs2svn to compensate for changes in r170222,
dougb [Sat, 2 Jun 2007 23:21:47 +0000 (23:21 +0000)]
This commit was generated by cvs2svn to compensate for changes in r170222,
which included commits to RCS files with non-trunk default branches.

17 years agoVendor import of BIND 9.4.1
dougb [Sat, 2 Jun 2007 23:21:47 +0000 (23:21 +0000)]
Vendor import of BIND 9.4.1

17 years agoUpdate bmake glue for the BIND 9.4.1 import.
dougb [Sat, 2 Jun 2007 23:19:58 +0000 (23:19 +0000)]
Update bmake glue for the BIND 9.4.1 import.

This includes a return to building with threads, since one of the
major focuses of the 9.4.x branch is to improve thread performance.

17 years agoThe archive_write_prepare.3 man page was removed in November 2006.
truckman [Sat, 2 Jun 2007 23:13:50 +0000 (23:13 +0000)]
The archive_write_prepare.3 man page was removed in November 2006.

The wpa man pages were moved to section 8 in June 2005.

The clean_environment() function was removed from libutil in February
2004, so its man page is well overdue for removal.

MFC after: 3 days

17 years agoWhen /usr/sbin/xten went away back in 2003, /usr/libexec/xtend was
truckman [Sat, 2 Jun 2007 22:39:10 +0000 (22:39 +0000)]
When /usr/sbin/xten went away back in 2003, /usr/libexec/xtend was
overlooked.

MFC after: 3 days

17 years agoObsoleteFiles.inc 1.88 should have used s/=/+=/ on entry for
truckman [Sat, 2 Jun 2007 22:34:11 +0000 (22:34 +0000)]
ObsoleteFiles.inc 1.88 should have used s/=/+=/ on entry for
usr/share/man/man9/VFS_VPTOFH.9.gz.

17 years agoRemove definition of the GCC3 variable. It was introduced in rev.
marcel [Sat, 2 Jun 2007 21:30:39 +0000 (21:30 +0000)]
Remove definition of the GCC3 variable. It was introduced in rev.
1.50 to help out with the GCC 2 to GCC 3 transition and it became
obsolete when C flags compatible with GCC 3.x became the default.
With GCC 4 in the tree this variable (i.e. GCC3) is beyond bogus
because it causes confusion when looking for the newly introduced
WITH_GCC3 option that helps the GCC 3 -> GCC 4 bump.

17 years agoAdd support for Asus A3N laptops.
philip [Sat, 2 Jun 2007 21:10:01 +0000 (21:10 +0000)]
Add support for Asus A3N laptops.

Submitted by: Holger Jorra <holger_jorra -at- gmx.net>
MFC after: 1 day

17 years agoCorrect the referenced securelevel document, it's now securelevel 7.
remko [Sat, 2 Jun 2007 20:15:59 +0000 (20:15 +0000)]
Correct the referenced securelevel document, it's now securelevel 7.

Pointed out by: ru

17 years agoFix a bug introduced in the per-CPU Cx states commit. The wrong loop var
njl [Sat, 2 Jun 2007 20:01:40 +0000 (20:01 +0000)]
Fix a bug introduced in the per-CPU Cx states commit.  The wrong loop var
(j/i) was being used and it was being incremented, not decremented as before.
Factor out this code into a common function and call it from both the common
and per-CPU case.

MFC after: 1 day

17 years agoMute the main audio during reboot/shutdown. This prevents a burst of static
njl [Sat, 2 Jun 2007 19:37:27 +0000 (19:37 +0000)]
Mute the main audio during reboot/shutdown.  This prevents a burst of static
on the speakers of my Panasonic Y4.  It might make sense to do this in the
mixer rc.d script as well.

17 years agoRemove a file that should have been removed as part of the hardware notes
bmah [Sat, 2 Jun 2007 19:32:19 +0000 (19:32 +0000)]
Remove a file that should have been removed as part of the hardware notes
reorganization.

17 years agoAcpiAcquireGlobalLock() can sometimes sleep if the mutex is contested.
njl [Sat, 2 Jun 2007 19:21:40 +0000 (19:21 +0000)]
AcpiAcquireGlobalLock() can sometimes sleep if the mutex is contested.
The global lock is a memory region shared with the BIOS and thus
has some strange behavior like the fact that the sleep is 1 ms max.
We use standard mutexes to synchronize with the SCI so acquiring
the global lock after locking the mutex resulted in a witness
warning.

To deal with this for now, acquire the global lock before all other
locks, similar to Giant.  This should fix the witness "sleeping
with mutex held" issue on boot that occurred after the last ACPI-CA
import.  In the future, we hope to move to the new mutex interface
in ACPI-CA instead of the pseudo-semaphore version we have now.

Reviewed by:    jkim

17 years agoDon't lie about saved reports.
philip [Sat, 2 Jun 2007 18:06:08 +0000 (18:06 +0000)]
Don't lie about saved reports.

PR: gnu/89777
Submitted by: edwin
MFC after: 1 day

17 years agoRemove (accidentally) included types.h .
ariff [Sat, 2 Jun 2007 17:36:11 +0000 (17:36 +0000)]
Remove (accidentally) included types.h .

17 years agoUse standard pcm_get/setflags() rather than dereferencing softc while
ariff [Sat, 2 Jun 2007 17:28:26 +0000 (17:28 +0000)]
Use standard pcm_get/setflags() rather than dereferencing softc while
enabling SD_F_SOFTPCMVOL or any flags.

17 years agoSeparate license from comments.
joel [Sat, 2 Jun 2007 13:07:44 +0000 (13:07 +0000)]
Separate license from comments.

Approved by: ariff

17 years ago- fix initial pcb vrf setting when the initial vrf is not the
rrs [Sat, 2 Jun 2007 11:05:08 +0000 (11:05 +0000)]
- fix initial pcb vrf setting when the initial vrf is not the
  default_vrf_id
- Missing lock/unlock of inp added as well in the v6 side.
- IFN hash table moves to sctppcbinfo since indexes are
  unique across systems (including different VRFs) this makes it easier
  to do ifn lookups.

17 years agoClean up more obsolete shared threading libraries:
ru [Sat, 2 Jun 2007 10:26:36 +0000 (10:26 +0000)]
Clean up more obsolete shared threading libraries:

- /lib/libpthread.so.2 was made obsolete by renaming libpthread to
  libkse (!sparc64, 2007/05/13).
- /usr/lib/libthr.so.2 was made obsolete by moving the library to
  /lib (!sparc64, 2007/05/13).
- /lib/libkse.so.2 existed for a few days before the version bump
  for those who had libpthread as their default threading library.

Coding this "right" in ObsoleteFiles.inc is nearly impossible, so
just add the missing obsolete libraries to the version bump block.

Submitted by: deischen, ru

17 years agoNew release notes:
brueffer [Sat, 2 Jun 2007 09:24:39 +0000 (09:24 +0000)]
New release notes:
- GCC SSP enabled by default
- X11BASE change
- touch -A
- fwip(4) and dcons(4) in GENERIC
- FireWire/dcons support in the i386/amd64 loader

Modified release notes:
- MFCs noted: newly supported ftpd RFCs, lagg(4), mpt(4) changes,
  snd_atiixp(4) suspend/resume
- sa(8) entry moved to the correct place
- xorg 7.2 update

17 years agofixed memory leak for IPv6 multicast membership information associated
jinmei [Sat, 2 Jun 2007 08:02:36 +0000 (08:02 +0000)]
fixed memory leak for IPv6 multicast membership information associated
with interface addresses.

Approved by: gnn (mentor)
MFC after: 1 week

17 years agosimplified the fix in rev. 1.69 by replacing RT_REMREF+RT_UNLOCK with
jinmei [Sat, 2 Jun 2007 07:27:02 +0000 (07:27 +0000)]
simplified the fix in rev. 1.69 by replacing RT_REMREF+RT_UNLOCK with
RTFREE_LOCKED.

Approved by: gnn (mentor)

17 years agoFinish making resolv ordering deterministic by REQUIRE'ing it here.
dougb [Sat, 2 Jun 2007 05:25:19 +0000 (05:25 +0000)]
Finish making resolv ordering deterministic by REQUIRE'ing it here.

17 years agoAdd REQUIRE netif to make ordering more deterministic, and to make sure
dougb [Sat, 2 Jun 2007 05:24:39 +0000 (05:24 +0000)]
Add REQUIRE netif to make ordering more deterministic, and to make sure
we have a fighting chance of having useful stuff from DHCP.

Tighten up the code a little, and fix whitespace issues.

17 years agoremove pointless recursive acquisition of port lock in cxgb_init_locked
kmacy [Sat, 2 Jun 2007 03:02:36 +0000 (03:02 +0000)]
remove pointless recursive acquisition of port lock in cxgb_init_locked

17 years agoClean up audit comments--formatting, spelling, etc.
rwatson [Fri, 1 Jun 2007 21:58:59 +0000 (21:58 +0000)]
Clean up audit comments--formatting, spelling, etc.

17 years agoI understood the MLINK part incorrectly, it should be the other way around
remko [Fri, 1 Jun 2007 21:48:07 +0000 (21:48 +0000)]
I understood the MLINK part incorrectly, it should be the other way around
also remove the init mlink to securelevel.

Discussed with and sharing pointyhat with: brueffer

17 years agoRevert my previous change, add an MLINK from securelevel.7 to security.7
remko [Fri, 1 Jun 2007 21:33:21 +0000 (21:33 +0000)]
Revert my previous change, add an MLINK from securelevel.7 to security.7

Discussed with: brueffer

17 years agoChange securelevel(7) to security(7). Yes i am aware
remko [Fri, 1 Jun 2007 21:09:11 +0000 (21:09 +0000)]
Change securelevel(7) to security(7). Yes i am aware
that this is within the contrib directory.

PR: docs/104402
Submitted by: Dr. Markus Waldeck <waldeck at gmx dot de>

Discussed with: mlaier

17 years agoMore obsolete stuff from doing a 6.2 -> 7.0 upgrade.
ru [Fri, 1 Jun 2007 21:00:27 +0000 (21:00 +0000)]
More obsolete stuff from doing a 6.2 -> 7.0 upgrade.

17 years ago- Added more obsolete stuff.
ru [Fri, 1 Jun 2007 20:28:23 +0000 (20:28 +0000)]
- Added more obsolete stuff.
- Undelete archive_entry_set_dev{major,minor}.3.

17 years agos/tabs/spaces/
ru [Fri, 1 Jun 2007 18:53:36 +0000 (18:53 +0000)]
s/tabs/spaces/

17 years agoRevert previous, part of NFS that I didn't know about.
trhodes [Fri, 1 Jun 2007 17:06:46 +0000 (17:06 +0000)]
Revert previous, part of NFS that I didn't know about.

17 years agoBreak long line
pav [Fri, 1 Jun 2007 15:32:23 +0000 (15:32 +0000)]
Break long line

Submitted by: ru

17 years agoAdd bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle
pav [Fri, 1 Jun 2007 15:17:51 +0000 (15:17 +0000)]
Add bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle
OPTIONS resolving. This will allow us to load bsd.port.mk in port Makefiles in
three steps (options, pre, post), allowing us to manipulate USE_* flags
conditionally on OPTIONS values.

With hat: portmgr
Reviewed by: ru
MFC after: 1 week

17 years agoGarbage collect msdosfs_fhtovp; it appears unused and I have been using
trhodes [Fri, 1 Jun 2007 14:57:19 +0000 (14:57 +0000)]
Garbage collect msdosfs_fhtovp; it appears unused and I have been using
MSDOSFS without this function and problems for the last month.

17 years agoChange the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operation
kib [Fri, 1 Jun 2007 14:33:11 +0000 (14:33 +0000)]
Change the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operation
argument from being file descriptor index into the pointer to struct file:
part 2. Convert calls missed in the first big commit.

Noted by: rwatson
Pointy hat to: kib

17 years agoRemove AUDIT_PRINTF() debugging statements and definition; clean up or
rwatson [Fri, 1 Jun 2007 13:53:37 +0000 (13:53 +0000)]
Remove AUDIT_PRINTF() debugging statements and definition; clean up or
remove associated comments.

Slip audit_file_rotate_wait assignment in audit_rotate_vnode() before
the drop of the global audit mutex.

Obtained from: TrustedBSD Project

17 years ago- Take out the broken table-id concept. Panda Routers have a M-VRF
rrs [Fri, 1 Jun 2007 11:19:54 +0000 (11:19 +0000)]
- Take out the broken table-id concept. Panda Routers have a M-VRF
  concept that is NOT well thought out for a multi-homed transport
  protocol. So the useless table-id entries passed around need to
  be removed.
- Add a event timer for the zero copy api.
- Fix a bug in sctp_timer.c when searching for an alternate
  with the largest ssthresh (the compare was wrong).

17 years agoPartially back out rev. 1.127, to restore broken functionality. This
glebius [Fri, 1 Jun 2007 09:20:57 +0000 (09:20 +0000)]
Partially back out rev. 1.127, to restore broken functionality. This
should be redesigned, but better enter RELENG_7 with a working ngctl(8).

Agreed by: julian

17 years agoChange directory back to ${.CURDIR} when remaking Makefiles.
fjoe [Fri, 1 Jun 2007 04:20:19 +0000 (04:20 +0000)]
Change directory back to ${.CURDIR} when remaking Makefiles.

Pointed out by: ru

17 years ago - Work-around the already partially broken rusage support in kvm by
jeff [Fri, 1 Jun 2007 04:14:57 +0000 (04:14 +0000)]
 - Work-around the already partially broken rusage support in kvm by
   completely disabling it until a full solution is agreed upon.

Pointy hat to: me

17 years agoMarkup fixes.
delphij [Fri, 1 Jun 2007 03:11:47 +0000 (03:11 +0000)]
Markup fixes.

17 years agoAdd on/off controls for VLAN_MTU and VLAN_HWTAGGING to bge(4).
yar [Fri, 1 Jun 2007 02:02:39 +0000 (02:02 +0000)]
Add on/off controls for VLAN_MTU and VLAN_HWTAGGING to bge(4).

17 years agoForced commit to describe changes in the last revision.
jeff [Fri, 1 Jun 2007 01:20:11 +0000 (01:20 +0000)]
Forced commit to describe changes in the last revision.

 - Move cpu limit handling to a callout that runs once per-second and sums
   up all threads tick times to check for violations.  This removes all code
   from mi_switch() that touches the proc.  This also cleans up ast() a bit
   by removing one large case.

17 years ago - Move rusage from being per-process in struct pstats to per-thread in
jeff [Fri, 1 Jun 2007 01:12:45 +0000 (01:12 +0000)]
 - Move rusage from being per-process in struct pstats to per-thread in
   td_ru.  This removes the requirement for per-process synchronization in
   statclock() and mi_switch().  This was previously supported by
   sched_lock which is going away.  All modifications to rusage are now
   done in the context of the owning thread.  reads proceed without locks.
 - Aggregate exiting threads rusage in thread_exit() such that the exiting
   thread's rusage is not lost.
 - Provide a new routine, rufetch() to fetch an aggregate of all rusage
   structures from all threads in a process.  This routine must be used
   in any place requiring a rusage from a process prior to it's exit.  The
   exited process's rusage is still available via p_ru.
 - Aggregate tick statistics only on demand via rufetch() or when a thread
   exits.  Tick statistics are kept in the thread and protected by sched_lock
   until it exits.

Initial patch by: attilio
Reviewed by: attilio, bde (some objections), arch (mostly silent)

17 years agoFix a breakage with "MODULES_WITH_WORLD=true make buildworld".
simokawa [Fri, 1 Jun 2007 00:23:34 +0000 (00:23 +0000)]
Fix a breakage with "MODULES_WITH_WORLD=true make buildworld".

PR: kern/11320

17 years agoCouple of the fixes needed revising. The ICH8 autoneg was still broken,
jfv [Thu, 31 May 2007 23:36:21 +0000 (23:36 +0000)]
Couple of the fixes needed revising. The ICH8 autoneg was still broken,
this change both simplifies the code and plugs a hole where the devise
was reset without keeping the management controller at bay :) Second,
the 82571 LAA reset problem was incomplete, this addition is necessary.
Just one of those days :)

17 years agoRevert VMCNT_* operations introduction.
attilio [Thu, 31 May 2007 22:52:15 +0000 (22:52 +0000)]
Revert VMCNT_* operations introduction.
Probabilly, a general approach is not the better solution here, so we should
solve the sched_lock protection problems separately.

Requested by: alc
Approved by: jeff (mentor)

17 years agoChanges to my local build lead to my confusion - revert the last change, but
trhodes [Thu, 31 May 2007 20:31:27 +0000 (20:31 +0000)]
Changes to my local build lead to my confusion - revert the last change, but
reword the original text a bit.  Sorry for the churn.

Quick jump: thompsa

17 years agoDocument recent improvements to the sound infrastructure (virtual recording
joel [Thu, 31 May 2007 20:26:39 +0000 (20:26 +0000)]
Document recent improvements to the sound infrastructure (virtual recording
channels, changed sysctl's and device nodes etc).

Reviewed by: ariff

17 years agoCorrect two small typos
dougb [Thu, 31 May 2007 20:16:46 +0000 (20:16 +0000)]
Correct two small typos

17 years agoThe newfs_msdos utility does not store the boot signature in the
trhodes [Thu, 31 May 2007 20:06:46 +0000 (20:06 +0000)]
The newfs_msdos utility does not store the boot signature in the
correct place on large sector disks.  The boot signature should be at
offset 0x1fe in the BPB; newfs_msdos currently stores it 2 bytes from
the end of the sector.

Taken from: NetBSD

17 years agoThere is no pf module yet.
trhodes [Thu, 31 May 2007 20:05:04 +0000 (20:05 +0000)]
There is no pf module yet.

17 years agoTake back the name 'bridge' now that we are the one and only. This can be
thompsa [Thu, 31 May 2007 19:47:39 +0000 (19:47 +0000)]
Take back the name 'bridge' now that we are the one and only. This can be
phased back in over the next few major releases. if_bridge is still the
documented device name so nothing has changed yet.