]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoBreak out the TX DMA stop code into a separate function.
Adrian Chadd [Tue, 8 Nov 2011 21:06:36 +0000 (21:06 +0000)]
Break out the TX DMA stop code into a separate function.

Sponsored by: Hobnob, Inc.

12 years agoAdd a 'vap' to ath_keyset().
Adrian Chadd [Tue, 8 Nov 2011 19:25:52 +0000 (19:25 +0000)]
Add a 'vap' to ath_keyset().

Add some code (which is currently disabled) which modifies the group
multicast key cache behaviour. I haven't yet figured out what the
exact/correct behaviour is so I'm leaving it disabled. It's worth
investigating and "correcting", especially for future work with
mesh/ibss and encryption.

Sponsored by: Hobnob, Inc.

12 years agoSome more various fixes, etc from my 11n branch.
Adrian Chadd [Tue, 8 Nov 2011 19:18:34 +0000 (19:18 +0000)]
Some more various fixes, etc from my 11n branch.

* When doing software TX queue handling and flush, it's possible
  that the deletion of a VAP (eg a STA shutdown) will queue a
  "STA Disassociate" frame whilst the interface is being deleted.
  The VAP is then deleted, and the frame ends up being queued
  to a node that is freed before it can be TX'ed. Things go awry
  at this point.

  There's no way at the present to avoid freeing the underlying node
  when the vap is being deleted. It's too late in the game.

  I suspect the real fix is to make sure the frame is software
  queued with no completion information somehow, so it doesn't
  link back to a node whose underlying VAP has been freed.
  For now, we'll just have to do this.

* Add some comments showing what's going on.

* Move an instance of the ATH_LOCK() around to protect the interrupt
  set. I'll worry about changing that to a PCU lock later on once
  the 11n code is in the tree.

Sponsored by: Hobnob, Inc.

12 years agoBumb date after r227317.
Mikolaj Golub [Tue, 8 Nov 2011 19:14:15 +0000 (19:14 +0000)]
Bumb date after r227317.

Reminded by: pluknet

12 years agoAdd KTR tracepoints to the ath driver, in order to debug TX, RX
Adrian Chadd [Tue, 8 Nov 2011 19:02:59 +0000 (19:02 +0000)]
Add KTR tracepoints to the ath driver, in order to debug TX, RX
and interrupt handling.

Sponsored by: Hobnob, Inc.

12 years agoIn preparation for supporting 11n TX/RX properly, allow for TX queue draining
Adrian Chadd [Tue, 8 Nov 2011 18:56:52 +0000 (18:56 +0000)]
In preparation for supporting 11n TX/RX properly, allow for TX queue draining
and interface resets to be marked as ATH_RESET_DEFAULT, ATH_RESET_FULL,
ATH_RESET_NOLOSS.

Currently a reset is still a reset - ie, all tx/rx frames in the hardware
queues are purged. This means that those frames will be lost to the 11n TX
and RX aggregation state tracking, breaking AMPDU sessions.

The (eventual) new semantics:

* ATH_RESET_DEFAULT:
      full reset, this is the default for reset situations
      which I haven't yet figured out what they should be.
* ATH_RESET_FULL:
      A full reset - for things such as channel changes.
* ATH_RESET_NOLOSS:
      Don't flush TX/RX queues - handle pending RX frames and leave TX
      frames where they are; restart TX DMA from where it was.

12 years agoBreak out the node cleanup and node free path, in preparation for
Adrian Chadd [Tue, 8 Nov 2011 18:48:26 +0000 (18:48 +0000)]
Break out the node cleanup and node free path, in preparation for
doing software TX queue management.

The software queued TX frames will be freed by the new cleanup
function.

Sponsored by: Hobnob, Inc.

12 years agoPreparation for correct 802.11n tx/rx handling.
Adrian Chadd [Tue, 8 Nov 2011 18:45:15 +0000 (18:45 +0000)]
Preparation for correct 802.11n tx/rx handling.

* Change ath_rx_proc() to ath_rx_tasklet(); make that the taskqueue function.
  This way (eventually) ath_rx_proc() can be called from elsewhere in the
  packet reset/processing queue so frames aren't just "flushed" during
  interface resets/reconfigure. This breaks 802.11n RX aggregation tracking.
* Extend ath_tx_proc() to take a 'resched' flag, which marks whether to
  reschedule further RX PCU reads or not.
* Change ath_tx_processq() to take a "dosched" flag, which will eventually
  be used to indicate whether to reschedule the software TX scheduler.

Sponsored by: Hobnob, Inc.

12 years agoConditionally compile the PCI latency workaround; I think it's
Adrian Chadd [Tue, 8 Nov 2011 18:37:52 +0000 (18:37 +0000)]
Conditionally compile the PCI latency workaround; I think it's
only required for some earlier NICs.

12 years agoDocument TI_SF_BUF_JUMBO and Xr altq.
Pyun YongHyeon [Tue, 8 Nov 2011 18:36:59 +0000 (18:36 +0000)]
Document TI_SF_BUF_JUMBO and Xr altq.

12 years agoti(4) supports altq(4).
Pyun YongHyeon [Tue, 8 Nov 2011 18:35:11 +0000 (18:35 +0000)]
ti(4) supports altq(4).

12 years agoRetire 'options TI_PRIVATE_JUMBOS' and replace local jumbo
Pyun YongHyeon [Tue, 8 Nov 2011 18:23:02 +0000 (18:23 +0000)]
Retire 'options TI_PRIVATE_JUMBOS' and replace local jumbo
allocator with UMA backed jumbo allocator by default. Previously
ti(4) used sf_buf(9) interface for jumbo buffers but it was broken
at this moment such that enabling jumbo frame caused instant panic.
Due to the nature of sf_buf(9) it heavily relies on VM changes but
it seems ti(4) was not received much blessing from VM gurus.  I
don't understand VM magic and implications used in driver either.
Switching to UMA backed jumbo allocator like other network drivers
will make jumbo frame work on ti(4).
While I'm here, fully allocate all RX buffers. This means ti(4) now
uses 512 RX buffer and 1024 mini RX buffers.

To use sf_buf(9) interface for jumbo buffers, introduce a new
'options TI_SF_BUF_JUMBO'. If it is proven that sf_buf(9) is better
for jumbo buffers, interesting developers can fix the issue in
future.

ti(4) still needs more bus_dma(9) cleanups and should use separate
DMA tag/map for each ring(standard, jumbo, mini, command, event
etc) but it should work on all platforms except PAE.

Special thanks to Jay[1] who provided complete remote debugging
access.

Tested by: Jay Borkenhagen <jayb <> braeburn dot org > [1]

12 years agoMerge in some fixes from the if_ath_tx branch.
Adrian Chadd [Tue, 8 Nov 2011 18:10:04 +0000 (18:10 +0000)]
Merge in some fixes from the if_ath_tx branch.

* Close down some of the kickpcu races, where the interrupt handler
  can and will run concurrently with the taskqueue.
* Close down the TXQ active/completed race between the interrupt
  handler and the concurrently running tx completion taskqueue
  function.
* Add some tx and rx interrupt count tracking, for debugging.
* Fix the kickpcu logic in ath_rx_proc() to not simply drain and
  restart the TX queue - instead, assume the hardware isn't
  (too) confused and just restart RX DMA. This may break on
  previous chipsets, so if it does I'll add a HAL flag and
  conditionally handle this (ie, for broken chipsets, I'll
  just restore the "stop PCU / flush things / restart PCU"
  logic.)
* Misc stuff

Sponsored by: Hobnob, Inc.

12 years agoAdd IPv6 support to netblast/netsend/netreceive
Olivier Houchard [Tue, 8 Nov 2011 17:23:43 +0000 (17:23 +0000)]
Add IPv6 support to netblast/netsend/netreceive

PR: bin/161368
Submitted by: Olivier Cochard-Labbe <olivier AT cochard doT me>

12 years agoMigrate the STAILQ lists to TAILQs.
Adrian Chadd [Tue, 8 Nov 2011 17:08:12 +0000 (17:08 +0000)]
Migrate the STAILQ lists to TAILQs.

A bunch of the 11n TX aggregation logic wants to traverse lists of buffers
in various ways. In order to provide O(1) behaviour in this instance,
use TAILQs.

This does blow out the memory footprint and CPU cycles slightly for some
of these operations. I may convert some of these back to STAILQs once
the rest of the software transmit queue handling has been stabilised.

Sponsored by: Hobnob, Inc.

12 years agoMake kobj_methods constant.
Ed Schouten [Tue, 8 Nov 2011 15:38:21 +0000 (15:38 +0000)]
Make kobj_methods constant.

These structures hold no information that is modified during runtime. By
marking this constant, we see approximately 600 symbols become
read-only (amd64 GENERIC). While there, also mark the kobj_method
structures generated by makeobjops.awk static. They are only referenced
by the kobjop_desc structures within the same file.

Before:

$ ls -l kernel
-rwxr-xr-x  1 ed  wheel  15937309 Nov  8 16:29 kernel*
$ size kernel
    text    data     bss      dec    hex filename
12260854 1358468 2848832 16468154 fb48ba kernel
$ nm kernel | fgrep -c ' r '
8240

After:

$ ls -l kernel
-rwxr-xr-x  1 ed  wheel  15922469 Nov  8 16:25 kernel*
$ size kernel
    text    data     bss      dec    hex filename
12302869 1302660 2848704 16454233 fb1259 kernel
$ nm kernel | fgrep -c ' r '
8838

12 years agoThe in-kernel CTF parser caches the result of its first attempt to parse
Ryan Stone [Tue, 8 Nov 2011 15:17:54 +0000 (15:17 +0000)]
The in-kernel CTF parser caches the result of its first attempt to parse
CTF data from a module.  On subsequent attempts to retrieve CTF data for
a module, return an error if there no CTF data.

This fixes a panic if you try to enable fbt probes on a module with CTF
data twice.

Submitted by: Paul Ambrose (ambrosehua AT gmail DOT com)
MFC after: 3 days

12 years agoClaim that _POSIX_ADVISORY_INFO is fully supported since posix_fadvise()
John Baldwin [Tue, 8 Nov 2011 14:47:28 +0000 (14:47 +0000)]
Claim that _POSIX_ADVISORY_INFO is fully supported since posix_fadvise()
was added.

Submitted by: avilla
Discussed with: wollman

12 years agoSome cosmetic fixes to ath_rate_sample.
Adrian Chadd [Tue, 8 Nov 2011 14:46:03 +0000 (14:46 +0000)]
Some cosmetic fixes to ath_rate_sample.

* Use 64 bit integer types for the sample rate statistics.
  When TX'ing 11n aggregates, a 32 bit counter will overflow in a few
  hours due to the high packet throughput.

* Create a default label of "" rather than defaulting to "Mb" - that way
  if a rate hasn't yet been selected, it won't say "-1 Mb".

Sponsored by: Hobnob, Inc.

12 years ago.. add missing include from an incorrect merge.
Adrian Chadd [Tue, 8 Nov 2011 14:34:01 +0000 (14:34 +0000)]
.. add missing include from an incorrect merge.

Sponsored by: Hobnob, Inc.

12 years agoReject frames in STA mode which are not destined to the local STA address.
Adrian Chadd [Tue, 8 Nov 2011 14:28:33 +0000 (14:28 +0000)]
Reject frames in STA mode which are not destined to the local STA address.

Some hardware (eg the AR9160 in STA mode) seems to "leak" unicast FROMDS
frames which aren't destined to itself. This angers the net80211 stack -
the existing code would fail to find an address in the node table and try
passing the frame up to each vap BSS. It would then be accepted in the
input routine and its contents would update the local crypto and sequence
number state.

If the sequence number / crypto IV replay counters from the leaked frame
were greater than the "real" state, subsequent "real" frames would be
rejected due to out of sequence / IV replay conditions.

This is also likely helpful if/when multi-STA modes are added to net80211.

Sponsored by: Hobnob, Inc.

12 years agoAdd quiet time element configuration support to ifconfig.
Adrian Chadd [Tue, 8 Nov 2011 14:22:40 +0000 (14:22 +0000)]
Add quiet time element configuration support to ifconfig.

This allows a hostap to specify to a set of stations that they
should not transmit for a certain period of time after each
beacon interval has expired. This is used when searching for
radar pulses or general interference.

Submitted by: Himali Patel <himali.patel@sibridgetech.com>
Sponsored by: Sibridge Technologies

12 years agoSimplify getopt switch parsing.
Ed Schouten [Tue, 8 Nov 2011 11:36:46 +0000 (11:36 +0000)]
Simplify getopt switch parsing.

Only one of these flags can be set. Just add them together and check the
value. Also, get rid of the listall variable. The code is already filled
with direct *flag-comparisons.

Obtained from: Alexander Best (though modified)

12 years agoIntroduce the option VFS_ALLOW_NONMPSAFE and turn it on by default on
Attilio Rao [Tue, 8 Nov 2011 10:18:07 +0000 (10:18 +0000)]
Introduce the option VFS_ALLOW_NONMPSAFE and turn it on by default on
all the architectures.
The option allows to mount non-MPSAFE filesystem. Without it, the
kernel will refuse to mount a non-MPSAFE filesytem.

This patch is part of the effort of killing non-MPSAFE filesystems
from the tree.

No MFC is expected for this patch.

Tested by: gianni
Reviewed by: kib

12 years agoEnable PCI MMC/SD support by default on i386 and amd64
Kevin Lo [Tue, 8 Nov 2011 08:29:05 +0000 (08:29 +0000)]
Enable PCI MMC/SD support by default on i386 and amd64

12 years agoAdd 802.11h quiet time element support into net80211.
Adrian Chadd [Tue, 8 Nov 2011 04:00:24 +0000 (04:00 +0000)]
Add 802.11h quiet time element support into net80211.

This supports both station and hostap modes:

* Station mode quiet time element support listens to quiet time
  IE's and modifies the local quiet time configuration as appropriate;
* Hostap mode both obeys the locally configured quiet time period
  and includes it in beacon frames so stations also can obey as needed.

Submitted by: Himali Patel <himali.patel@sibridgetech.com>
Sponsored by: Sibridge Technologies

12 years agoBegin merging in some of my 802.11n TX aggregation driver changes.
Adrian Chadd [Tue, 8 Nov 2011 02:12:11 +0000 (02:12 +0000)]
Begin merging in some of my 802.11n TX aggregation driver changes.

* Add a PCU lock, which isn't currently used but will eventually be
  used to serialise some of the driver access.

* Add in all the software TX aggregation state, that's kept per-node
  and per-TID.

* Add in the software and aggregation state to ath_buf.

* Add in hooks to ath_softc for aggregation state and the (upcoming)
  aggregation TX state calls.

* Add / fix the HAL access macros.

Obtained from: Linux, ath9k
Sponsored by: Hobnob, Inc.

12 years agoBring over the 11n aggregation statistics struct from the if_ath_tx branch.
Adrian Chadd [Tue, 8 Nov 2011 01:35:44 +0000 (01:35 +0000)]
Bring over the 11n aggregation statistics struct from the if_ath_tx branch.

12 years agoMerge in ath rate flags and ath_rc_series from my 11n TX branch.
Adrian Chadd [Tue, 8 Nov 2011 01:35:05 +0000 (01:35 +0000)]
Merge in ath rate flags and ath_rc_series from my 11n TX branch.
This is in preparation for 802.11n TX aggregation support.

12 years agoDo not allow changing MTU to be less than the minimum.
Pyun YongHyeon [Mon, 7 Nov 2011 22:58:49 +0000 (22:58 +0000)]
Do not allow changing MTU to be less than the minimum.

12 years agoIf ti_chipinit() fails in ti_stop(), ignore the error and release
Pyun YongHyeon [Mon, 7 Nov 2011 22:53:06 +0000 (22:53 +0000)]
If ti_chipinit() fails in ti_stop(), ignore the error and release
all allocated TX/RX buffer resources. If the interface is brought
to up again after the error, we will leak allocated TX/RX buffers.

12 years agoShow RX buffer allocation failure and do not blindly send alive
Pyun YongHyeon [Mon, 7 Nov 2011 22:47:25 +0000 (22:47 +0000)]
Show RX buffer allocation failure and do not blindly send alive
message to firmware. Probably the correct way for this error is to
send a TI_CMD_CODE_STACK_DOWN message to firmware and let firmware
handle the rest.

12 years agoWhen loading addresses from INITs, always use the correct
Michael Tuexen [Mon, 7 Nov 2011 22:30:19 +0000 (22:30 +0000)]
When loading addresses from INITs, always use the correct
local address.

MFC after: 3 days.

12 years agoMini ring is not available on Tigon 1 so do not create DMA maps for
Pyun YongHyeon [Mon, 7 Nov 2011 22:17:44 +0000 (22:17 +0000)]
Mini ring is not available on Tigon 1 so do not create DMA maps for
mini ring on Tigon 1 to save resources.

12 years agoTrack which ring was updated in RX handler and update only modified
Pyun YongHyeon [Mon, 7 Nov 2011 22:11:38 +0000 (22:11 +0000)]
Track which ring was updated in RX handler and update only modified
ring. This should reduce unnecessary register accesses.

12 years agoWhen displaying process virtual memory mappings print superpage
Mikolaj Golub [Mon, 7 Nov 2011 21:16:19 +0000 (21:16 +0000)]
When displaying process virtual memory mappings print superpage
mapping flag.

Submitted by: Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net>
Reviewed by: alc, rwatson

12 years agoAdd KVME_FLAG_SUPER and use it in sysctl_kern_proc_vmmap for marking
Mikolaj Golub [Mon, 7 Nov 2011 21:13:19 +0000 (21:13 +0000)]
Add KVME_FLAG_SUPER and use it in sysctl_kern_proc_vmmap for marking
entries with superpages.

Submitted by: Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net>
Reviewed by: alc, rwatson

12 years agoIn lim_fork() assert that processes locks are held.
Mikolaj Golub [Mon, 7 Nov 2011 21:09:04 +0000 (21:09 +0000)]
In lim_fork() assert that processes locks are held.

Suggested by: kib

12 years agoEnsure pam_lastlog removes the /dev/ component of the TTY name.
Ed Schouten [Mon, 7 Nov 2011 19:57:42 +0000 (19:57 +0000)]
Ensure pam_lastlog removes the /dev/ component of the TTY name.

Some consumers of PAM remove the /dev/ component (i.e. login), while
others don't (i.e. su). We must ensure that the /dev/ component is
removed to ensure that the utmpx entries properly work with tools such
as w(1).

Discussed with: des
MFC after: 1 week

12 years ago o Remove unnecessary controller reinitialization.
Pyun YongHyeon [Mon, 7 Nov 2011 18:26:38 +0000 (18:26 +0000)]
 o Remove unnecessary controller reinitialization.
 o Do not blindly UP controller when MTU is changed. Reinitialize
   controller only if driver is running.
 o Remove useless ti_stop() in ti_watchdog() since ti_init_locked()
   always invokes ti_stop().

12 years agoRemove ti_unit member variable in softc.
Pyun YongHyeon [Mon, 7 Nov 2011 18:19:20 +0000 (18:19 +0000)]
Remove ti_unit member variable in softc.
While I'm here use PCIR_BAR macro.

12 years agoDon astbestos garment and remove the warning about TMPFS being experimental
Marcel Moolenaar [Mon, 7 Nov 2011 16:21:50 +0000 (16:21 +0000)]
Don astbestos garment and remove the warning about TMPFS being experimental
-- highly experimental even. So far the closest to a bug in TMPFS that people
have gotten to relates to how ZFS can take away from the memory that TMPFS
needs. One can argue that such is not a bug in TMPFS. Irrespective, even if
there is a bug here and there in TMPFS, it's not in our own advantage to
scare people away from using TMPFS. I for one have been using it, even with
ZFS, very successfully.

12 years agoMark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.
Ed Schouten [Mon, 7 Nov 2011 15:43:11 +0000 (15:43 +0000)]
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.

The SYSCTL_NODE macro defines a list that stores all child-elements of
that node. If there's no SYSCTL_DECL macro anywhere else, there's no
reason why it shouldn't be static.

12 years agoIn icmp6_redirect_input:
Gleb Smirnoff [Mon, 7 Nov 2011 14:22:18 +0000 (14:22 +0000)]
In icmp6_redirect_input:

- Assert that we got a valid mbuf with rcvif pointer. [1]
- Use __func__ in logging.

Submitted by: prabhakar lakhera <prabhakar.lakhera gmail.com> [1]
Submitted by: Kristof Provost <kristof sigsegv.be> [1]

12 years agoRemove unneeded CFLAGS.
Ed Schouten [Mon, 7 Nov 2011 09:42:22 +0000 (09:42 +0000)]
Remove unneeded CFLAGS.

Such optimisations should not be performed in this Makefile. Also, uqs@
suggested they have no effect, because the checksum of the resulting
binary is unchanged.

Discussed with: gabor, uqs

12 years agoRemove a note about disabling of GEOM protection mechanism.
Andrey V. Elsukov [Mon, 7 Nov 2011 09:29:10 +0000 (09:29 +0000)]
Remove a note about disabling of GEOM protection mechanism.
boot0cfg should work without such hack.

MFC after: 3 days

12 years agoReorganize write_mbr() function to be able write bootcode with different
Andrey V. Elsukov [Mon, 7 Nov 2011 09:21:18 +0000 (09:21 +0000)]
Reorganize write_mbr() function to be able write bootcode with different
ways. Improve error reporting and also fix indenting.
Now we are trying to write bootcode:
 1. Directly to provider (if we can open it for writing);
 2. Via GEOM_PART (if it is available);
 3. Via GEOM_MBR.

MFC after: 2 weeks

12 years agoFix multi-line comment formatting.
Andrey V. Elsukov [Mon, 7 Nov 2011 07:51:10 +0000 (07:51 +0000)]
Fix multi-line comment formatting.

MFC after: 2 weeks

12 years agoFix multi-line comment formatting.
Andrey V. Elsukov [Mon, 7 Nov 2011 07:50:35 +0000 (07:50 +0000)]
Fix multi-line comment formatting.

Pointed by: jh
MFC after: 1 week

12 years agoSDT's struct sdt_argtype can be marked static everywhere.
Ed Schouten [Mon, 7 Nov 2011 07:09:38 +0000 (07:09 +0000)]
SDT's struct sdt_argtype can be marked static everywhere.

It is only passed to SYSINIT/SYSUNINIT.

12 years agoMark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.
Ed Schouten [Mon, 7 Nov 2011 06:44:47 +0000 (06:44 +0000)]
Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.

This means that their use is restricted to a single C file.

12 years agoImprove error reporting when MBR can not be written.
Andrey V. Elsukov [Mon, 7 Nov 2011 06:24:35 +0000 (06:24 +0000)]
Improve error reporting when MBR can not be written.
Remove obsolete code which uses DIOCSMBR ioctl.
When writing MBR first check that GEOM_MBR is available, if it is not
available, then try write MBR directly to provider. If both are failed,
then recommend to use gpart(8).

MFC after: 2 week

12 years agoReplace fasttrap_copyout() with uwrite(). FreeBSD copyout() is not able to
Ryan Stone [Mon, 7 Nov 2011 01:55:58 +0000 (01:55 +0000)]
Replace fasttrap_copyout() with uwrite().  FreeBSD copyout() is not able to
write to the .text section of a process.

Obtained from: rpaulo
MFC after: 3 days

12 years agoFix the DTrace pid return trap interrupt vector. Previously we were using
Ryan Stone [Mon, 7 Nov 2011 01:53:25 +0000 (01:53 +0000)]
Fix the DTrace pid return trap interrupt vector.  Previously we were using
31, but that vector is reserved.

Without this fix, running dtrace -p <pid> would either cause the target
process to crash or the kernel to page fault.

Obtained from: rpaulo
MFC after: 3days

12 years agoFix build breakage for 8-stable and older.
Hans Petter Selasky [Sun, 6 Nov 2011 23:26:26 +0000 (23:26 +0000)]
Fix build breakage for 8-stable and older.

MFC after: 0 days

12 years agoAdd support for new USB modem protocol.
Hans Petter Selasky [Sun, 6 Nov 2011 23:11:30 +0000 (23:11 +0000)]
Add support for new USB modem protocol.

PR: usb/159919
MFC after: 1 week

12 years agoFreeze the device queue if a request didn't complete without error and
Marius Strobl [Sun, 6 Nov 2011 22:28:13 +0000 (22:28 +0000)]
Freeze the device queue if a request didn't complete without error and
isn't already frozen.

12 years agoAdd check-password.4th and screen.4th to the boot image. They are
Marcel Moolenaar [Sun, 6 Nov 2011 21:57:12 +0000 (21:57 +0000)]
Add check-password.4th and screen.4th to the boot image. They are
needed by the loader.

12 years agoAdd missing comma.
Marius Strobl [Sun, 6 Nov 2011 21:54:27 +0000 (21:54 +0000)]
Add missing comma.

Submitted by: brueffer

12 years agoCommit man page update missed in r227006.
Marius Strobl [Sun, 6 Nov 2011 21:33:50 +0000 (21:33 +0000)]
Commit man page update missed in r227006.

12 years agoInitialize "acc" value inside the loop to reset failed attempts.
Andrey V. Elsukov [Sun, 6 Nov 2011 21:12:52 +0000 (21:12 +0000)]
Initialize "acc" value inside the loop to reset failed attempts.

PR: misc/162262
MFC after: 3 days

12 years agoAdd qlxgb(4).
Christian Brueffer [Sun, 6 Nov 2011 20:59:07 +0000 (20:59 +0000)]
Add qlxgb(4).

MFC after: 3 days

12 years agoAdd qlxgb(4) to the hardware notes.
Christian Brueffer [Sun, 6 Nov 2011 20:49:17 +0000 (20:49 +0000)]
Add qlxgb(4) to the hardware notes.

MFC after: 3 days

12 years agoAdd reference to gpart(8).
Andrey V. Elsukov [Sun, 6 Nov 2011 20:42:32 +0000 (20:42 +0000)]
Add reference to gpart(8).

MFC after: 3 days

12 years agoAdd reference to gpart(8).
Andrey V. Elsukov [Sun, 6 Nov 2011 20:39:35 +0000 (20:39 +0000)]
Add reference to gpart(8).

MFC after: 3 days

12 years agoAdd reference to gpart(8).
Andrey V. Elsukov [Sun, 6 Nov 2011 20:38:27 +0000 (20:38 +0000)]
Add reference to gpart(8).

MFC after: 3 days

12 years agoWrite QLogic consistently.
Christian Brueffer [Sun, 6 Nov 2011 20:37:17 +0000 (20:37 +0000)]
Write QLogic consistently.

MFC after: 3 days

12 years agoAdd recommendation to use gpart(8) when user tries write disklabel
Andrey V. Elsukov [Sun, 6 Nov 2011 20:32:55 +0000 (20:32 +0000)]
Add recommendation to use gpart(8) when user tries write disklabel
or bootcode to already opened provider.

MFC after: 1 week

12 years agoPartially revert r227233.
Ed Schouten [Sun, 6 Nov 2011 20:30:21 +0000 (20:30 +0000)]
Partially revert r227233.

The privs.h header is not only used by at(1), it's also used by
atrun(8). Just let the code the way it used to be (for now).

Reported by: kwm, tinderbox
Hat to: me

12 years agoRemove MALLOC_DECLAREs of nonexisting malloc-pools.
Ed Schouten [Sun, 6 Nov 2011 20:16:50 +0000 (20:16 +0000)]
Remove MALLOC_DECLAREs of nonexisting malloc-pools.

After careful grepping, it seems none of these pools can be found in our
source tree. They are not in use, nor are they defined.

12 years agoInitialize all components of the sent COOKIE.
Michael Tuexen [Sun, 6 Nov 2011 20:09:22 +0000 (20:09 +0000)]
Initialize all components of the sent COOKIE.

MFC after: 3 days.

12 years agoRemove unneeded checks.
Andrey V. Elsukov [Sun, 6 Nov 2011 19:03:07 +0000 (19:03 +0000)]
Remove unneeded checks.

MFC after: 1 week

12 years agoMark global functions and/or variables in spray(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:02:49 +0000 (19:02 +0000)]
Mark global functions and/or variables in spray(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in snapinfo(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:02:43 +0000 (19:02 +0000)]
Mark global functions and/or variables in snapinfo(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in rmt(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:02:37 +0000 (19:02 +0000)]
Mark global functions and/or variables in rmt(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in rip6query(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:02:31 +0000 (19:02 +0000)]
Mark global functions and/or variables in rip6query(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in pwd_mkdb(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:02:25 +0000 (19:02 +0000)]
Mark global functions and/or variables in pwd_mkdb(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in moused(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:02:20 +0000 (19:02 +0000)]
Mark global functions and/or variables in moused(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in mixer(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:02:13 +0000 (19:02 +0000)]
Mark global functions and/or variables in mixer(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in memcontrol(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:01:59 +0000 (19:01 +0000)]
Mark global functions and/or variables in memcontrol(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in fdread(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:01:54 +0000 (19:01 +0000)]
Mark global functions and/or variables in fdread(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in devinfo(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:01:48 +0000 (19:01 +0000)]
Mark global functions and/or variables in devinfo(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in chown(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:01:41 +0000 (19:01 +0000)]
Mark global functions and/or variables in chown(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in boot0cfg(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:01:35 +0000 (19:01 +0000)]
Mark global functions and/or variables in boot0cfg(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agoMark global functions and/or variables in apm(8) static where possible.
Ed Schouten [Sun, 6 Nov 2011 19:01:30 +0000 (19:01 +0000)]
Mark global functions and/or variables in apm(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.

12 years agobsdlabel(8) could automatically fill many of disklabel's deprecated
Andrey V. Elsukov [Sun, 6 Nov 2011 18:59:42 +0000 (18:59 +0000)]
bsdlabel(8) could automatically fill many of disklabel's deprecated
fields, but user could specify some of those fields when edits disklabel
with `bsdlabel -e`. But without -A flag these fields might be
overwritten with default values from the virgin disklabel.
So, don't overwrite such fields if they are not zero. Also add checks
to prevent creating disklabel with less than DEFPARTITIONS and more
than MAXPARTITIONS partitions.

PR: bin/162332
Tested by: Eugene Grosbein
MFC after: 1 week

12 years agoMark global functions and/or variables in xstr(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:50:39 +0000 (18:50 +0000)]
Mark global functions and/or variables in xstr(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in whois(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:50:33 +0000 (18:50 +0000)]
Mark global functions and/or variables in whois(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in which(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:50:26 +0000 (18:50 +0000)]
Mark global functions and/or variables in which(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in whereis(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:50:19 +0000 (18:50 +0000)]
Mark global functions and/or variables in whereis(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in unifdef(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:50:00 +0000 (18:50 +0000)]
Mark global functions and/or variables in unifdef(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in paste(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:53 +0000 (18:49 +0000)]
Mark global functions and/or variables in paste(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in m4(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:48 +0000 (18:49 +0000)]
Mark global functions and/or variables in m4(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in lam(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:41 +0000 (18:49 +0000)]
Mark global functions and/or variables in lam(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in fstat(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:36 +0000 (18:49 +0000)]
Mark global functions and/or variables in fstat(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in expand(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:30 +0000 (18:49 +0000)]
Mark global functions and/or variables in expand(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in enigma(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:23 +0000 (18:49 +0000)]
Mark global functions and/or variables in enigma(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in compress(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:16 +0000 (18:49 +0000)]
Mark global functions and/or variables in compress(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in comm(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:10 +0000 (18:49 +0000)]
Mark global functions and/or variables in comm(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.

12 years agoMark global functions and/or variables in checknr(1) static where possible.
Ed Schouten [Sun, 6 Nov 2011 18:49:03 +0000 (18:49 +0000)]
Mark global functions and/or variables in checknr(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.