]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoThis file was obsolete when committed. Catchup and delete it.
imp [Fri, 17 Feb 2006 22:23:36 +0000 (22:23 +0000)]
This file was obsolete when committed.  Catchup and delete it.

18 years agoExpand scope of marker to reduce the number of page queue scan restarts.
tegge [Fri, 17 Feb 2006 21:02:39 +0000 (21:02 +0000)]
Expand scope of marker to reduce the number of page queue scan restarts.

18 years agoBelatedly bump the date for the fan control changes in rev. 1.9.
brueffer [Fri, 17 Feb 2006 20:29:32 +0000 (20:29 +0000)]
Belatedly bump the date for the fan control changes in rev. 1.9.

18 years agoRe-work the bus attachment somewhat. Make the rids unique for
ambrisko [Fri, 17 Feb 2006 18:46:18 +0000 (18:46 +0000)]
Re-work the bus attachment somewhat.  Make the rids unique for
the SMI/TCO address space.  Switch the bus space I/O to the
one specific for either the SMI or TCO space.  Re-calibrate
the tick.  Add some more device id's, 82801FBR submitted by des.
This makes it work on the platforms I've tested with.

Go ahead by: des

18 years agoCheck return value from nonblocking call to vn_start_write().
tegge [Fri, 17 Feb 2006 18:22:19 +0000 (18:22 +0000)]
Check return value from nonblocking call to vn_start_write().

18 years ago1) Ignore link events for MII/GMII cards if MI auto-polling disabled. This
oleg [Fri, 17 Feb 2006 14:33:35 +0000 (14:33 +0000)]
1) Ignore link events for MII/GMII cards if MI auto-polling disabled. This
   should fix strange link state behaviour reported for bcm5721 & bcm5704c
2) Clear bge_link flag in bge_stop()
3) Force link state check after bge_ifmedia_upd(). Otherwise we can miss link
   event if PHY changes it's state fast enough.

Tested by: phk (bcm5704c)
Approved by: glebius (mentor)
MFC after: 1 week

18 years agoJMicron RAID metadata support.
brueffer [Fri, 17 Feb 2006 14:26:49 +0000 (14:26 +0000)]
JMicron RAID metadata support.

18 years agoReplace the 4k fixed sized jumbo mbuf clusters with PAGE_SIZE sized
andre [Fri, 17 Feb 2006 14:14:15 +0000 (14:14 +0000)]
Replace the 4k fixed sized jumbo mbuf clusters with PAGE_SIZE sized
jumbo mbuf clusters.  To make the variable size clear they are named
MJUMPAGESIZE.

Having jumbo clusters with the native PAGE_SIZE is more useful than
a fixed 4k size according the device driver writers using this API.

The 9k and 16k jumbo mbuf clusters remain unchanged.

Requested by: glebius, gallatin
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoAdd r/w support for JMicron ATA RAID metadata.
sos [Fri, 17 Feb 2006 13:02:10 +0000 (13:02 +0000)]
Add r/w support for JMicron ATA RAID metadata.
Acknowledgement should definitly go to JMicron Technology for providing full
docs on the metadata format as the only vendor so far, big thanks from here.

18 years agoFix standalone module build.
ru [Fri, 17 Feb 2006 10:52:59 +0000 (10:52 +0000)]
Fix standalone module build.

Reported by: Boris Samorodov

18 years agoRemove unused now field.
glebius [Fri, 17 Feb 2006 09:42:49 +0000 (09:42 +0000)]
Remove unused now field.

18 years agoDocument how to find a short description of a memory type.
pjd [Fri, 17 Feb 2006 09:11:41 +0000 (09:11 +0000)]
Document how to find a short description of a memory type.

18 years agoCheck if /sbin/nextboot exists before running it.
ru [Fri, 17 Feb 2006 08:34:01 +0000 (08:34 +0000)]
Check if /sbin/nextboot exists before running it.

PR: 93466
Submitted by: Mats Palmgren

18 years agoDocument Intel E7505 support.
brueffer [Fri, 17 Feb 2006 06:29:51 +0000 (06:29 +0000)]
Document Intel E7505 support.

18 years agoWhen linking make sure it succeeds.
obrien [Fri, 17 Feb 2006 04:59:23 +0000 (04:59 +0000)]
When linking make sure it succeeds.

18 years agoAdd support for the Intel E7205 chipset.
anholt [Fri, 17 Feb 2006 01:40:46 +0000 (01:40 +0000)]
Add support for the Intel E7205 chipset.

PR: kern/91315
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>

18 years agoRounding addr upwards to next 4M or 2M boundary in pmap_growkernel() could
tegge [Thu, 16 Feb 2006 22:10:57 +0000 (22:10 +0000)]
Rounding addr upwards to next 4M or 2M boundary in pmap_growkernel() could
cause addr to become 0, resulting in an early return without populating
the last PDE.

Reviewed by: alc

18 years agoJMicron JMB363 support.
brueffer [Thu, 16 Feb 2006 22:05:49 +0000 (22:05 +0000)]
JMicron JMB363 support.

18 years agoAdd new -E option, which allows to specify location of the mdconfig(8)
sobomax [Thu, 16 Feb 2006 21:28:54 +0000 (21:28 +0000)]
Add new -E option, which allows to specify location of the mdconfig(8)
utility instead of using default _PATH_MDCONFIG (/sbin/mdconfig).

MFC after:      1 week

18 years agoUse example.com rather than bar.com for the system contact example.
ceri [Thu, 16 Feb 2006 20:38:09 +0000 (20:38 +0000)]
Use example.com rather than bar.com for the system contact example.

Requested by: glebius

18 years agoHave TCP Inflight disable itself if the RTT is below a certain
andre [Thu, 16 Feb 2006 19:38:07 +0000 (19:38 +0000)]
Have TCP Inflight disable itself if the RTT is below a certain
threshold.  Inflight doesn't make sense on a LAN as it has
trouble figuring out the maximal bandwidth because of the coarse
tick granularity.

The sysctl net.inet.tcp.inflight.rttthresh specifies the threshold
in milliseconds below which inflight will disengage.  It defaults
to 10ms.

Tested by: Joao Barros <joao.barros-at-gmail.com>,
Rich Murphey <rich-at-whiteoaklabs.com>
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoAdd support for the JMicron JMB363 dual SATA + single PATA controller.
sos [Thu, 16 Feb 2006 17:09:24 +0000 (17:09 +0000)]
Add support for the JMicron JMB363 dual SATA + single PATA controller.
Documentation and HW kindly provided by JMicron.

18 years agoIn in_pcbconnect_setup() reduce code duplication and use ip_rtaddr()
andre [Thu, 16 Feb 2006 15:45:28 +0000 (15:45 +0000)]
In in_pcbconnect_setup() reduce code duplication and use ip_rtaddr()
to find the outgoing interface for this connection.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 2 weeks

18 years agoMake sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS) generally available instead
andre [Thu, 16 Feb 2006 15:40:36 +0000 (15:40 +0000)]
Make sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS) generally available instead
of being private to tcp_timer.c.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoThe libwrap built with NO_INET6=yes cannot parse an IPv6 address.
ume [Thu, 16 Feb 2006 14:46:03 +0000 (14:46 +0000)]
The libwrap built with NO_INET6=yes cannot parse an IPv6 address.
So, mention it in comment.

Submitted by: Dmitry Morozovsky <marck__at__rinet.ru>
MFC after: 2 days

18 years ago- Massage wording to make it easier to understand and fix some grammar.
brd [Thu, 16 Feb 2006 09:56:31 +0000 (09:56 +0000)]
- Massage wording to make it easier to understand and fix some grammar.

Submitted by: sbahra at gwu dot edu
Reviewed by: ru@
Approved by: ceri@
MFC after: 3 days

18 years agoWisdom about the Open Source ecosystem.
grog [Thu, 16 Feb 2006 09:30:12 +0000 (09:30 +0000)]
Wisdom about the Open Source ecosystem.

Submitted by: MÃ¥rten Mickos

18 years agoDon't forget to initialize a tailq before using it.
deischen [Thu, 16 Feb 2006 01:33:36 +0000 (01:33 +0000)]
Don't forget to initialize a tailq before using it.

MFC candidate
Noticed by: luoqi

18 years agoFix a long standing race between sleep queue and thread
davidxu [Wed, 15 Feb 2006 23:52:01 +0000 (23:52 +0000)]
Fix a long standing race between sleep queue and thread
suspension code. When a thread A is going to sleep, it calls
sleepq_catch_signals() to detect any pending signals or thread
suspension request, if nothing happens, it returns without
holding process lock or scheduler lock, this opens a race
window which allows thread B to come in and do process
suspension work, however since A is still at running state,
thread B can do nothing to A, thread A continues, and puts
itself into actually sleeping state, but B has never seen it,
and it sits there forever until B is woken up by other threads
sometimes later(this can be very long delay or never
happen). Fix this bug by forcing sleepq_catch_signals to
return with scheduler lock held.
Fix sleepq_abort() by passing it an interrupted code, previously,
it worked as wakeup_one(), and the interruption can not be
identified correctly by sleep queue code when the sleeping
thread is resumed.
Let thread_suspend_check() returns EINTR or ERESTART, so sleep
queue no longer has to use SIGSTOP as a hack to build a return
value.

Reviewed by: jhb
MFC after: 1 week

18 years agoadd miss args to mac:del and mac:kick
sam [Wed, 15 Feb 2006 23:16:03 +0000 (23:16 +0000)]
add miss args to mac:del and mac:kick

Submitted by: Anders Hanssen
MFC after: 3 days

18 years agoRework last change of pthread_once, create a function _thr_once_init to
davidxu [Wed, 15 Feb 2006 23:05:03 +0000 (23:05 +0000)]
Rework last change of pthread_once, create a function _thr_once_init to
reinitialize its internal locks.

18 years agoWhen the VM needs to allocated physical memory pages (for non interrupt use)
ups [Wed, 15 Feb 2006 22:29:53 +0000 (22:29 +0000)]
When the VM needs to allocated physical memory pages (for non interrupt use)
and it has not plenty of free pages it tries to free pages in the cache queue.
Unfortunately freeing a cached page requires the locking of the object that
owns the page. However in the context of allocating pages we may not be able
to lock the object and thus can only TRY to lock the object. If the locking try
fails the cache page can not be freed and is activated to move it out of the way
so that we may try to free other cache pages.

If all pages in the cache belong to objects that are currently locked the
cache queue can be emptied without freeing a single page. This scenario caused
two problems:

    1)  vm_page_alloc always failed allocation when it tried freeing pages from
        the cache queue and failed to do so. However if there are more than
        cnt.v_interrupt_free_min pages on the free list it should return pages
        when requested with priority VM_ALLOC_SYSTEM. Failure to do so can cause
        resource exhaustion deadlocks.

    2)  Threads than need to allocate pages spend a lot of time cleaning up the
        page queue without really getting anything done while the pagedaemon
         needs to work overtime to refill the cache.

This change fixes the first problem. (1)

Reviewed by: tegge@

18 years agodrop softc lock around copyin/copyout
sam [Wed, 15 Feb 2006 18:36:52 +0000 (18:36 +0000)]
drop softc lock around copyin/copyout

MFC after: 2 weeks

18 years agofix build w/o AR_DEBUG
sam [Wed, 15 Feb 2006 18:35:09 +0000 (18:35 +0000)]
fix build w/o AR_DEBUG

MFC after: 2 weeks

18 years agoimprove tx/rx buf printing routines
sam [Wed, 15 Feb 2006 18:31:04 +0000 (18:31 +0000)]
improve tx/rx buf printing routines

MFC after: 2 weeks

18 years agoadd missing bit from 1.130
sam [Wed, 15 Feb 2006 18:24:22 +0000 (18:24 +0000)]
add missing bit from 1.130

18 years agoo handle fatal errors directly instead of via the task queue
sam [Wed, 15 Feb 2006 18:23:03 +0000 (18:23 +0000)]
o handle fatal errors directly instead of via the task queue
o temporarily dump some h/w state for diagnosis; this will be
  removed once some issues are resolved

MFC after: 2 weeks

18 years agouse ath_hal_gettxintrtxqs so we only process h/w tx
sam [Wed, 15 Feb 2006 18:17:53 +0000 (18:17 +0000)]
use ath_hal_gettxintrtxqs so we only process h/w tx
queues that have an interrupt pending

MFC after: 2 weeks

18 years agofixup comments
sam [Wed, 15 Feb 2006 18:15:49 +0000 (18:15 +0000)]
fixup comments

18 years agoclose race between ath_tx_start and ath_tx_processq
sam [Wed, 15 Feb 2006 18:12:24 +0000 (18:12 +0000)]
close race between ath_tx_start and ath_tx_processq

Reviewed by: apatti
MFC after: 1 week

18 years ago- Add info regarding the watchdog part of the MK48Txx.
marius [Wed, 15 Feb 2006 16:57:30 +0000 (16:57 +0000)]
- Add info regarding the watchdog part of the MK48Txx.
- Add a missing .Tn before Mostek.

MFC after: 3 days

18 years agoFor E250 and E450 enable the watchdog part of the MK48Txx as it just
marius [Wed, 15 Feb 2006 16:56:38 +0000 (16:56 +0000)]
For E250 and E450 enable the watchdog part of the MK48Txx as it just
works there.

MFC after: 3 days

18 years agoIt seems bit 5 of cpu_feature2 is the VMX (Virtual Machine Extensions)
dwmalone [Wed, 15 Feb 2006 14:48:59 +0000 (14:48 +0000)]
It seems bit 5 of cpu_feature2 is the VMX (Virtual Machine Extensions)
bit. While I'm here, delete a comment that was cut and past from the
cpu_features code that doesn't belong here.

18 years agoUpdate a comment to match functionality changed in r1.39 (allow square
ceri [Wed, 15 Feb 2006 14:37:35 +0000 (14:37 +0000)]
Update a comment to match functionality changed in r1.39 (allow square
brackets in process names).

MFC after: 2 days

18 years agoFix fallout from last commit - we need to program the MAC address in em_init().
glebius [Wed, 15 Feb 2006 14:27:38 +0000 (14:27 +0000)]
Fix fallout from last commit - we need to program the MAC address in em_init().

18 years agoem_hardware_init() in em_init() is not needed, and leads to annoying
glebius [Wed, 15 Feb 2006 13:45:02 +0000 (13:45 +0000)]
em_hardware_init() in em_init() is not needed, and leads to annoying
link flap.

Submitted by: ru, Mike Tancsa

18 years agoAfter fork(), reinitialize internal locks for pthread_once().
davidxu [Wed, 15 Feb 2006 13:41:02 +0000 (13:41 +0000)]
After fork(), reinitialize internal locks for pthread_once().

18 years agoSet ifp->if_baudrate according to current speed.
glebius [Wed, 15 Feb 2006 11:38:33 +0000 (11:38 +0000)]
Set ifp->if_baudrate according to current speed.

18 years ago- Rename em_print_link_status() to em_update_link_status().
glebius [Wed, 15 Feb 2006 10:51:11 +0000 (10:51 +0000)]
- Rename em_print_link_status() to em_update_link_status().
- In em_attach() remove em_check_for_link(). Not needed here, since
  already done in em_hardware_init().
- In em_attach() replace the printing block with call to
  em_update_link_status().
- Remove modification of sc->link_state from em_hardware_init() and
  from em_media_status(). This makes em_update_link_status() a
  single point of change. Call em_update_link_status() where needed.

18 years ago- Second style(9) megacleanup.
glebius [Wed, 15 Feb 2006 08:39:50 +0000 (08:39 +0000)]
- Second style(9) megacleanup.
- Rename "adapter" to "sc"/"softc", to be like other drivers.

  (-13 Kb less source code)

18 years agoFix build.
glebius [Wed, 15 Feb 2006 08:25:40 +0000 (08:25 +0000)]
Fix build.

18 years agoa) clean up some declaration stuff (i.e., make more modern with respect
mjacob [Wed, 15 Feb 2006 00:31:48 +0000 (00:31 +0000)]
a) clean up some declaration stuff (i.e., make more modern with respect
to getting rid u_int for uint and so on).

b) Turn back on 64 bit DAC support. Cheeze it a bit in that we have two
DMA callback functions- one when we have bus_addr_t > 4 bits in width and
the other which should be normal. Even Cheezier in that we turn off setting
up DMA maps to be BUS_SPACE_MAXADDR if we're in ISP_TARGET_MODE. More work
on this in a week or so.

c) Tested under amd64 and 1MB DFLTPHYS, sparc64, i386 (PAE, but insufficient
memory to really test > 4GB). LINT check under amd64.

MFC after: 1 month

18 years agoChange default build of wpa_supplicant to include EAPOL support;
sam [Tue, 14 Feb 2006 23:51:21 +0000 (23:51 +0000)]
Change default build of wpa_supplicant to include EAPOL support;
ENABLE_WPA_SUPPLICANT_EAPOL is no more, now use NO_WPA_SUPPLICANT_EAPOL
to build with only WPA-PSK support.

Reviewed by: ru, bsdimp (basic approach)
MFC after: 1 week

18 years agofix off by one malloc sizes
sam [Tue, 14 Feb 2006 23:19:40 +0000 (23:19 +0000)]
fix off by one malloc sizes

Submitted by: Michal Mertl
MFC after: 1 week

18 years agoo make driver override of net80211 parameter state consistent
sam [Tue, 14 Feb 2006 17:48:56 +0000 (17:48 +0000)]
o make driver override of net80211 parameter state consistent
  with methods: instead of honoring non-zero values expect drivers
  to write their own values on return from ieee80211_ifattach
o add a define for the default h/w bmiss count

MFC after: 2 weeks

18 years agoOnly install ipmi.4 for i386/amd64.
ambrisko [Tue, 14 Feb 2006 17:18:20 +0000 (17:18 +0000)]
Only install ipmi.4 for i386/amd64.

Requested by: ru

18 years agoUnbreak this.
ru [Tue, 14 Feb 2006 15:22:24 +0000 (15:22 +0000)]
Unbreak this.

18 years agoFix the hw.realmem sysctl. The global realmem variable is a count of
jhb [Tue, 14 Feb 2006 14:50:11 +0000 (14:50 +0000)]
Fix the hw.realmem sysctl.  The global realmem variable is a count of
pages, not a count of bytes.  The sysctl handler for hw.realmem already
uses ctob() to convert realmem from pages to bytes.  Thus, on archs that
were storing a byte count in the realmem variable, hw.realmem was inflated.

Reported by: Valerio daelli valerio dot daelli at gmail dot com (alpha)
MFC after: 3 days

18 years agoMove the "r p d s w" fields to the left to create space for expansion.
bde [Tue, 14 Feb 2006 13:27:25 +0000 (13:27 +0000)]
Move the "r p d s w" fields to the left to create space for expansion.
3 columns were wasted at the left, except these columns were used to
make the header line up.  Now there is no space on the same line for
the "Proc:" part of the header.  Try putting this on the line above
although it clutters that line (there is already similar clutter for
the "Interrupts" header).  Leave 1 column between these fields.  With
the above and a previous change there is enough of space for this.

Use 5 columns instead of 3 for the number of users since 3 is not quite
enough and there was space to spare.  This also fixes an off-by-2 error
in a previous fix forthe column count in the comment on STATROW.

Move all the pager fields 1 to the right so that the "count" and "pages"
descriptors more clearly apply to the pager fields and not the memory
fields.  There was space to space.

Waste some of the spare space at the right of the pager fields to expand
all the pager field widths to their old values (but now with a column
between the fields).  There are fields more in need of expansion but most
of them are not in places near spare space.

18 years agoA little extra cleaning up.
gnn [Tue, 14 Feb 2006 13:20:09 +0000 (13:20 +0000)]
A little extra cleaning up.

MFC after: 1 week

18 years agoMove includes from if_em.h to if_em.c and sort them.
glebius [Tue, 14 Feb 2006 13:11:36 +0000 (13:11 +0000)]
Move includes from if_em.h to if_em.c and sort them.

18 years agoClean up some descriptions and remove ambiguities in the language.
gnn [Tue, 14 Feb 2006 13:02:00 +0000 (13:02 +0000)]
Clean up some descriptions and remove ambiguities in the language.
Add explanations to the examples.

MFC after: 1 week

18 years agoDisable the ipmi driver on pc98.
nyan [Tue, 14 Feb 2006 12:55:07 +0000 (12:55 +0000)]
Disable the ipmi driver on pc98.

18 years agoDo not touch ifp->if_baudrate in miibus aware drivers.
glebius [Tue, 14 Feb 2006 12:44:56 +0000 (12:44 +0000)]
Do not touch ifp->if_baudrate in miibus aware drivers.

18 years agoRemoved the frobbing of CPU percentages from > 99.9 to 99.9. Rev.1.35
bde [Tue, 14 Feb 2006 12:26:51 +0000 (12:26 +0000)]
Removed the frobbing of CPU percentages from > 99.9 to 99.9.  Rev.1.35
made it unnecessary.  (Rev.1.6 had to reduce the field width to 4, and
changed 100.0 and preposterous larger values down to 99.9 since 100.0
wouldn't have fitted.  Rev.1.35 handles precentages > 99.9 well enough by
changing the format to %.0f when the string given by the initial format
is too wide.)

Even with this change, during short testing I've never seen a percentage
of 100 being displayed by systat -v, although top(1) displays percentages
of 100 user or 100 idle for similar loads.

18 years ago- Introduce ifmedia_baudrate(), which returns correct baudrate of the
glebius [Tue, 14 Feb 2006 12:10:03 +0000 (12:10 +0000)]
- Introduce ifmedia_baudrate(), which returns correct baudrate of the
  given media status. [1]
- Utilize ifmedia_baudrate() in miibus_statchg() to update ifp->if_baudrate.

Obtained from: NetBSD [1]

18 years agoFix some minor bugs:
bde [Tue, 14 Feb 2006 11:57:02 +0000 (11:57 +0000)]
Fix some minor bugs:

Always use snprintf()'s return value, since discarding it is a style
bug at best and using it here gives slightly simpler code and better
error checking.  Use snprintf() in putlongdouble() the same as in
putfloat().  (1.25 changed most sprintf()'s to snprintf()'s to fix
non-bugs without changing the logic to use the result of snprintf();
1.27 restored one of the sprintf()s by cloning a stale version of
putfloat().)

Don't print a too-long field in the unlikely case that the fallback
to M units in putint() leaves the field still too long.  (The fallback
to printing stars was lost in rev.1.58 when the fallback to M units
was added.)

18 years agoAdd '-F' option which allows to delete existing empty directories, when
glebius [Tue, 14 Feb 2006 11:08:05 +0000 (11:08 +0000)]
Add '-F' option which allows to delete existing empty directories, when
creating symbolic links.

PR: bin/92149
Submitted by: Eugene Grosbein <eugen grosbein.pp.ru>

18 years agoReduce the field width by 1 for many numeric fields so that most fields
bde [Tue, 14 Feb 2006 10:47:36 +0000 (10:47 +0000)]
Reduce the field width by 1 for many numeric fields so that most fields
cannot run into other fields or field descriptors.  If the value is
too large to fit in the field width, then the output format is adjusted
so that the value (usually) fits, but with fields running together
externally this adjustment usually didn't help.  Mostly it doesn't
matter to lose 1 digit of precision, but switching the output format
is bad if it happens often or gives bogus units.  The loss of width
is most serious for fields near "Csw" (which are also the ones which
must often ran together) since these have a high variance and large
values relative to the possible field widths so the switch occurs more
often now, and for the memory size fields where the switch gives the
bogus units kKB or MKB.

Now only the fields for r, p, d, s and w can run into each other.
These fields have width 3, and 3 cannot be reduced to 2 without losing
all precision when the value is between 100 and 999.

Trim "pdwake" to "pdwak" at think time now that it doesn't get clobbered
at runtime.  The manpage doesn't need to be changed for this because
it documents the clobbered descriptor, unlike for 4 other too-long
descriptors which only get clobbered if there are lots of interrupt
sources.

Trim "% busy" to "%busy" since most other descriptors for percentages
are spelled without the space and this change makes changing the widths
of the %busy fields unnecessary.

18 years agoOops, the "excessive" {} removed in the previous commit was needed
bde [Tue, 14 Feb 2006 09:33:51 +0000 (09:33 +0000)]
Oops, the "excessive" {} removed in the previous commit was needed
around PUTRATE() because PUTRATE() only looked like a function -- it was
multiple statements.  Use "do {...} while(0)" as usual in PUTRATE() so
that it is a single statement that can be used like a function.

18 years agoDisconnect bsnmp from the build until the breakage is sorted out.
harti [Tue, 14 Feb 2006 08:34:26 +0000 (08:34 +0000)]
Disconnect bsnmp from the build until the breakage is sorted out.

18 years agoFixed all (?) bitrot in the comments about the number of columns used by
bde [Tue, 14 Feb 2006 08:33:02 +0000 (08:33 +0000)]
Fixed all (?) bitrot in the comments about the number of columns used by
various groups of fields.

18 years agoFix all (?) cases where the field width of a numeric field was far too
bde [Tue, 14 Feb 2006 07:44:21 +0000 (07:44 +0000)]
Fix all (?) cases where the field width of a numeric field was far too
large.  In most cases it is still 1 too large, so fields tend to run
together, but in the following cases it was more than 1 too large, and
the starting column was too small too, so the field started inside the
previous field or descriptor and clobbered that:
- "wire": the number for this overwrote 2 characters of the number for
  "Flt".  Reduce the field width by 3 (2 to avoid the overwrite and 1
  so that the fields don't run together).  This was already done for
  the preceding number for "cow".
- "inact": the number for this overwrote 1 character of the descriptor
  "Idle".  Reducing the field width by 2 is enough.
- "cache:" the number for this overwrote 3 characters of the scale
  "...|    |".  The field width should be reduced by 4 to keep things
  from running together, but that is a lot and not so necessary here
  since the final "|" in the scale serves as a delimiter.  Only reduce
  it by 3.
- "free": the number for this overwrote 2 characters of the bar graph.
  The character position under the final "|" in the scale is apparently
  not used, so reducing the field width by 3 is enough.

When "zfod" is in the main vmstat display:
- use the normal field width of 9 (not 5) for it since there is no shortage
  of space.  Fix style bugs (excessive {}) in the statement that
  conditionally writes it.

Write all reduced field widths for vmstat fields as "9 - <reduction>" as
a hint that we don't want to reduce them.

18 years agoWhen sending a packet from dummynet, indicate that we're forwarding
ru [Tue, 14 Feb 2006 06:36:39 +0000 (06:36 +0000)]
When sending a packet from dummynet, indicate that we're forwarding
it so that ip_id etc. don't get overwritten.  This fixes forwarding
of fragmented IP packets through a dummynet pipe -- fragments came
out with modified and different(!) ip_id's, making it impossible to
reassemble a datagram at the receiver side.

Submitted by: Alexander Karptsov (reworked by me)
MFC after: 3 days

18 years agoFixed style bugs in rev.1.12. Rev.1.12 arranged to display the interrupt
bde [Tue, 14 Feb 2006 05:37:25 +0000 (05:37 +0000)]
Fixed style bugs in rev.1.12.  Rev.1.12 arranged to display the interrupt
number in more cases by stealing 2 characters from the count field to
give more space in the descriptor field, but it did the column adjustments
for this strangely using an off-by-2 error in the base column and
compensating off-by-2 errors in 6 offsets from the base column (4 new
errors and 2 from not changing the offsets that actually changed).

Print the "Interrupts" header directly at its offset from the base column
instead of spacing it half using the offset and half by printing a space
character.

18 years agoRemove vestiges of OLDCARD.
imp [Tue, 14 Feb 2006 04:16:56 +0000 (04:16 +0000)]
Remove vestiges of OLDCARD.

18 years agoMinor fixes to the code that generates an internal ustar filename
kientzle [Tue, 14 Feb 2006 04:05:03 +0000 (04:05 +0000)]
Minor fixes to the code that generates an internal ustar filename
for Pax extended attribute entries.

18 years agoExtract device number information from SVR4 CPIO archives.
kientzle [Tue, 14 Feb 2006 04:00:14 +0000 (04:00 +0000)]
Extract device number information from SVR4 CPIO archives.
Without this, you cannot properly restore device node entries
from such archives.

Thanks to: Steve 'dillo Okay for reporting this oversight.

18 years agooops, mismerge from working sources.. not only add new code,
julian [Tue, 14 Feb 2006 03:13:12 +0000 (03:13 +0000)]
oops, mismerge from working sources.. not only add new code,
but remove old code!

18 years agoStop ipfw from aborting when asked to delete a table entry that
julian [Tue, 14 Feb 2006 03:10:29 +0000 (03:10 +0000)]
Stop ipfw from aborting when asked to delete a table entry that
doesn't exist or add one that is already present, if the -q flag
is set. Useful for "ipfw -q /dev/stdin" when the command above is
invoked from  something like python or TCL to feed commands
down the throat of ipfw.
MFC in: 1 week

18 years agoAudit the arguments to the ptrace(2) system call.
wsalamon [Tue, 14 Feb 2006 01:18:31 +0000 (01:18 +0000)]
Audit the arguments to the ptrace(2) system call.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoAudit the arguments to the kill(2) and killpg(2) system calls.
wsalamon [Tue, 14 Feb 2006 01:17:03 +0000 (01:17 +0000)]
Audit the arguments to the kill(2) and killpg(2) system calls.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoThe change to make column use roundup(x, TAB) rounded things to the
dwmalone [Mon, 13 Feb 2006 22:09:26 +0000 (22:09 +0000)]
The change to make column use roundup(x, TAB) rounded things to the
current tab, however the code it replaced wanted to round to the
next TAB. Consequently things like this:

( echo 1 ; echo 2 ) | column

cause column to loop indefinitely. This patch is slightly different
from the one Gary submitted, but is closer to the original code.

Submitted by: Gary Cody <gary@lyranthe.org>
MFC after: 1 week

18 years agoOn ia64, the unaligned_print sysctl is a debugging knob under debug
marcel [Mon, 13 Feb 2006 21:41:32 +0000 (21:41 +0000)]
On ia64, the unaligned_print sysctl is a debugging knob under debug
and not under machdep as the behaviour is controlled by the process.
When PSR.ac is set the process expects to receive a SIGBUS. Otherwise
the processor or the kernel will emulate the misaligned memory access.

MFC after: 3 days

18 years ago.Pp before .Sh is redundant.
joel [Mon, 13 Feb 2006 21:34:19 +0000 (21:34 +0000)]
.Pp before .Sh is redundant.

Reviewed by: ru

18 years agoFix leakage of uncommitted build changes
imp [Mon, 13 Feb 2006 21:25:01 +0000 (21:25 +0000)]
Fix leakage of uncommitted build changes

18 years agoAdd a default ldconfig32_paths entry in default/rc.conf for 32-bit compatability...
matteo [Mon, 13 Feb 2006 21:10:03 +0000 (21:10 +0000)]
Add a default ldconfig32_paths entry in default/rc.conf for 32-bit compatability shared libraries.
It is used by the ldconfig rc.d scripts.
Document this variable in the man page

PR: amd64/91571
Approved by: philip (mentor)
MFC after: 3

18 years agos/lp/plip/ for PLIP interfaces.
ceri [Mon, 13 Feb 2006 20:49:32 +0000 (20:49 +0000)]
s/lp/plip/ for PLIP interfaces.

Approved by: jhb
MFC after: 1 week

18 years agoThe interface for PLIP has been plip0 rather than lp0 for a long time.
ceri [Mon, 13 Feb 2006 20:47:43 +0000 (20:47 +0000)]
The interface for PLIP has been plip0 rather than lp0 for a long time.
Update to match.

18 years agoRemove pccard variables which are no longer supported after the move
imp [Mon, 13 Feb 2006 20:10:34 +0000 (20:10 +0000)]
Remove pccard variables which are no longer supported after the move
to NEWCARD.

18 years agoSince OLDCARD is gone from the kernel, catchup here and remove support
imp [Mon, 13 Feb 2006 20:08:31 +0000 (20:08 +0000)]
Since OLDCARD is gone from the kernel, catchup here and remove support
from here as well.

18 years agofix comment and whitespace
sam [Mon, 13 Feb 2006 18:40:53 +0000 (18:40 +0000)]
fix comment and whitespace

18 years agofix merge botch (duplicate processing of cabq for old cards)
sam [Mon, 13 Feb 2006 18:23:32 +0000 (18:23 +0000)]
fix merge botch (duplicate processing of cabq for old cards)

18 years agoTie the ipmi driver into the i386/amd64 builds.
ambrisko [Mon, 13 Feb 2006 17:56:24 +0000 (17:56 +0000)]
Tie the ipmi driver into the i386/amd64 builds.

18 years agoUse a wildcard unit (-1) to device_find_child() in our identify routine to
jhb [Mon, 13 Feb 2006 17:53:39 +0000 (17:53 +0000)]
Use a wildcard unit (-1) to device_find_child() in our identify routine to
match the wildcard unit passed to BUS_ADD_CHILD().

18 years agoDon't conflict with the DEBUG define.
ambrisko [Mon, 13 Feb 2006 16:50:45 +0000 (16:50 +0000)]
Don't conflict with the DEBUG define.

18 years agoLink the new file from the vendor fix to the build and install
harti [Mon, 13 Feb 2006 14:12:15 +0000 (14:12 +0000)]
Link the new file from the vendor fix to the build and install
the new MIB files. Add a target to smilint the MIB files.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r155602,
harti [Mon, 13 Feb 2006 14:11:18 +0000 (14:11 +0000)]
This commit was generated by cvs2svn to compensate for changes in r155602,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor fix: make mibII HC counters really 64-bit on 32-bit platforms by polling
harti [Mon, 13 Feb 2006 14:11:18 +0000 (14:11 +0000)]
Vendor fix: make mibII HC counters really 64-bit on 32-bit platforms by polling
the kernel periodically.

Submitted by: glebius (partly)

18 years agoAdd a reset of the AHCI machinery to the ICH6/ICH7 support.
sos [Mon, 13 Feb 2006 13:47:58 +0000 (13:47 +0000)]
Add a reset of the AHCI machinery to the ICH6/ICH7 support.
This should fix the missed devices on some systems.