]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r260311, r260831:
pfg [Sun, 26 Jan 2014 19:49:54 +0000 (19:49 +0000)]
MFC r260311, r260831:

gcc: Add support for Apple's Block extension

Block objects [1] are a C-level syntactic and runtime feature. They
are similar to standard C functions, but in addition to executable
code they may also contain variable bindings to automatic (stack)
or managed (heap) memory. A block can therefore maintain a set of
state (data) that it can use to impact behavior when executed.

This port is based on Apple's GCC 5646 with some bugfixes from
Apple GCC 5666.3. It has some small differences with the support
in clang, which remains the recommended compiler.

Perhaps the most notable difference is that in GCC __block is not
actually a keyword, but a macro. There may be workaround for this
issue in the future. Other issues can be consulted in the clang
documentation [2]

For better compatiblity with Apple's GCC and llvm-gcc, some related
fixes and features from Apple have been included. Support for the
non-standard nested functions in GCC is now off by default.

No effort was made to update the ObjC support since FreeBSD doesn't
carry ObjC in the base system but some of the code crept in and
was more difficult to remove than to adjust.

References:
[1]
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
[2]
http://clang.llvm.org/compatibility.html#block-variable-initialization

Obtained from: Apple GCC 4.2

git-svn-id: svn://svn.freebsd.org/base/stable/10@261188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260872:
jhibbits [Sun, 26 Jan 2014 02:23:16 +0000 (02:23 +0000)]
MFC r260872:

There's actually no data in the PMU_GET_VERSION command.  Don't send any.
This change now allows the PMU to be used on PowerBook5,8

git-svn-id: svn://svn.freebsd.org/base/stable/10@261177 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r260987:
demon [Sat, 25 Jan 2014 10:43:47 +0000 (10:43 +0000)]
Merge r260987:

 Do not exit with non-zero return code if sysctl.conf or sysctl.conf.local files
 are absent.

 Approved by: delphij

git-svn-id: svn://svn.freebsd.org/base/stable/10@261153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260549:
mav [Sat, 25 Jan 2014 01:58:15 +0000 (01:58 +0000)]
MFC r260549:
Move xpt_run_devq() call before request completion callback where it was
originally.

I am not sure why exactly have I moved it during one of many refactorings
during camlock project, but obviously it opens race window that may cause
use after free panics during SIM (in reported cases umass(4)) detach.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoImplicit include of sys/queue.h instead of relying on gelf.h/libelf.h to bring it
bapt [Sat, 25 Jan 2014 01:08:35 +0000 (01:08 +0000)]
Implicit include of sys/queue.h instead of relying on gelf.h/libelf.h to bring it
Newer version of gelf.h and libelf.h does not include sys/queue.h anymore

Submitted by: kaiw

git-svn-id: svn://svn.freebsd.org/base/stable/10@261144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFH: r261027
bapt [Sat, 25 Jan 2014 01:06:20 +0000 (01:06 +0000)]
MFH: r261027

Remove pkg_* related info from periodic.conf

Reported by Robin Brocks <robin.brocks@brocks.de>

git-svn-id: svn://svn.freebsd.org/base/stable/10@261143 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257132:
hselasky [Fri, 24 Jan 2014 08:27:19 +0000 (08:27 +0000)]
MFC r257132:
Add id for GTM661W.
This also fixes kernel build breakage since last revision.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260534:
hselasky [Fri, 24 Jan 2014 08:22:29 +0000 (08:22 +0000)]
MFC r260534:
Move USB ID from u3g driver to uhso driver.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261115 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258545:
hselasky [Fri, 24 Jan 2014 08:15:21 +0000 (08:15 +0000)]
MFC r258545:
Comply to the XHCI specification. Certain input context fields should
always be zero.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261111 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260808 and r260814:
hselasky [Fri, 24 Jan 2014 08:10:08 +0000 (08:10 +0000)]
MFC r260808 and r260814:
- Close a minor deadlock.
- Fix a possible memory use after free and leak situation associated
with USB device detach when using character device handles. This also
includes LibUSB. It turns out that "usb_close()" cannot always get a
reference to clean up its USB transfers and such, if called during the
kernel USB device detach.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261110 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260588 and r260589:
hselasky [Fri, 24 Jan 2014 07:48:52 +0000 (07:48 +0000)]
MFC r260588 and r260589:
- Separate I/O errors from reception of STALL PID.
- Implement better error recovery for Transaction Translators, TTs,
found in High Speed USB HUBs which translate from High Speed USB into
FULL or LOW speed USB. In some rare cases SPLIT transactions might get
lost, which might leave the TT in an unknown state. Whenever we detect
such an error try to issue either a clear TT buffer request, or if
that is not possible reset the whole TT.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260563:
hselasky [Fri, 24 Jan 2014 07:43:46 +0000 (07:43 +0000)]
MFC r260563:
Make sure reserved fields of the EHCI DMA descriptors are not dirty
after previous transfers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261104 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260559:
hselasky [Fri, 24 Jan 2014 07:32:05 +0000 (07:32 +0000)]
MFC r260559:
Don't do synchronous USB requests inside USB transfer callbacks. It is
technically OK, but not recommended.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260388, r260535 and r260536:
hselasky [Fri, 24 Jan 2014 07:24:40 +0000 (07:24 +0000)]
MFC r260388, r260535 and r260536:
Fix XHCI interrupt logic for "Intel Lynx Point" found in MBP2013.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260521:
mav [Fri, 24 Jan 2014 00:41:02 +0000 (00:41 +0000)]
MFC r260521:
Remove not applicable PI_SDTR_ABLE and PI_WIDE_16 hba_inquiry flags to
make CAM to not try negotiate unsupported settings and suppress warnings.

While there, enable command queuing on pass-through devices, announced
in hba_inquiry, but disabled.  Even though queue size is very small, It
seems working well enough.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 259826,259997,259998:
jhb [Thu, 23 Jan 2014 20:35:32 +0000 (20:35 +0000)]
MFC 259826,259997,259998:
Support soft power-off via the ACPI S5 state for bhyve guests and wire
up a virtual power button to SIGTERM:
- Implement the PM1_EVT and PM1_CTL registers required by ACPI.
- Emulate the Reset Control register at I/O port 0xcf9.
- Advertise an _S5 package.
- Implement an SMI_CMD register with commands to enable and disable ACPI.
  Currently the only change when ACPI is enabled is to enable the virtual
  power button via SIGTERM.
- Implement a fixed-feature power button when ACPI is enabled by asserting
  PWRBTN_STS in PM1_EVT when SIGTERM is received.
- Add support for EVFILT_SIGNAL events to mevent.
- Implement support for the ACPI system command interrupt (SCI) and assert
  it when needed based on the values in PM1_EVT.  Mark the SCI as active-low
  and level triggered in the MADT and MP Table.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 257422,257661,258075,258476,258494,258579,258609,258699:
jhb [Thu, 23 Jan 2014 20:21:39 +0000 (20:21 +0000)]
MFC 257422,257661,258075,258476,258494,258579,258609,258699:
Several enhancements to the I/O APIC support in bhyve including:
- Move the I/O APIC device model from userspace into vmm.ko and add
  ioctls to assert and deassert I/O APIC pins.
- Add HPET device emulation including a single timer block with 8 timers.
- Remove the 'vdev' abstraction.

Approved by: neel

git-svn-id: svn://svn.freebsd.org/base/stable/10@261088 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256959:
loos [Thu, 23 Jan 2014 12:32:30 +0000 (12:32 +0000)]
MFC r256959:

  Add the Raspberry Pi BSC (I2C compliant) controller driver.

  Reviewed by: rpaulo

MFC r256961:

  Enable the build of OFW I2C bus for FDT systems.

MFC r258045:

  As all the IIC controllers on system uses the same 'iichb' prefix we cannot
  rely only on checking the device unit to indentify the BSC unit we are
  attaching to.  Make use of the device base address to identify our BSC unit.

MFC r259127:

  Bring the RPi I2C driver in line with ti_i2c.  Make it treat any slave
  address as a 7-bit address.

Approved by: adrian (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/10@261078 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257127:
loos [Thu, 23 Jan 2014 12:02:04 +0000 (12:02 +0000)]
MFC r257127:

Remove all the instances of '#undef DEBUG' from kernel.

Suggested by: rpaulo
Approved by: adrian (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/10@261077 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260229, r260258, r260367, r260390, r260459, r260648:
mav [Wed, 22 Jan 2014 23:55:25 +0000 (23:55 +0000)]
MFC r260229, r260258, r260367, r260390, r260459, r260648:
Rework NFS Duplicate Request Cache cleanup logic.

 - Introduce additional hash to group requests by hash of sockref.  This
allows to process TCP acknowledgements without looping though all the cache,
and as result allows to do it every time.
 - Indroduce additional callbacks to notify application layer about sockets
disconnection.  Without this last few requests processed just before socket
disconnection never processed their ACKs and stuck in cache for many hours.
 - Implement transport-specific method for tracking reply acknowledgements.
New implementation does not cross multiple stack layers to get the data and
does not have race conditions that previously made some requests stuck
in cache.  This could be done more efficiently at sockbuf layer, but that
would broke some KBIs, while I don't know other consumers for it aside NFS.
 - Instead of traversing all DRC twice per request, run cleaning only once
per request, and except in some conditions traverse only single hash slot
at a time.

Together this limits NFS DRC growth only to situations of real connectivity
problems.  If network is working well, and so all replies are acknowledged,
cache remains almost empty even after hours of heavy load.  Without this
change on the same test cache was growing to many thousand requests even
with perfectly working local network.

As another result this reduces CPU time spent on the DRC handling during
SPEC NFS benchmark from about 10% to 0.5%.

Sponsored by:   iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261055 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260097:
mav [Wed, 22 Jan 2014 23:52:20 +0000 (23:52 +0000)]
MFC r260097:
Move most of NFS file handle affinity code out of the heavily congested
global RPC thread pool lock and protect it with own set of locks.

On synthetic benchmarks this improves peak NFS request rate by 40%.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260036:
mav [Wed, 22 Jan 2014 23:51:12 +0000 (23:51 +0000)]
MFC r260036:
Introduce xprt_inactive_self()  -- variant for use when sure that port
is assigned to thread.  For example, withing receive handlers.  In that
case the function reduces to single assignment and can avoid locking.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261053 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260031:
mav [Wed, 22 Jan 2014 23:50:13 +0000 (23:50 +0000)]
MFC r260031:
In addition to r259632 completely block receive upcalls if we have more
data than we need.  This reduces lock pressure from xprt_active() side.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261052 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259877:
mav [Wed, 22 Jan 2014 23:49:37 +0000 (23:49 +0000)]
MFC r259877:
Slightly simplify expiration logic introduced in r254337.

 - Do not update the histogram for items we are any way deleting from cache.
 - Do not update the histogram if nfsrc_tcphighwater is not set.
 - Remove some extra math operations.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261051 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259828:
mav [Wed, 22 Jan 2014 23:48:54 +0000 (23:48 +0000)]
MFC r259828:
Fix a bug introduced at r259632, triggering infinite loop in some cases.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261050 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259765:
mav [Wed, 22 Jan 2014 23:48:15 +0000 (23:48 +0000)]
MFC r259765:
Fix RPC server threads file handle affinity to work better with ZFS.

  Instead of taking 8 specific bytes of file handle to identify file during
RPC thread affitinity handling, use trivial hash of the full file handle.
ZFS's struct zfid_short does not have padding field after the length field,
as result, originally picked 8 bytes are loosing lower 16 bits of object ID,
causing many false matches and unneeded requests affinity to same thread.
  This fix substantially improves NFS server latency and scalability in SPEC
NFS benchmark by more flexible use of multiple NFS threads.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261049 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259659, r259662:
mav [Wed, 22 Jan 2014 23:47:29 +0000 (23:47 +0000)]
MFC r259659, r259662:
Remove several linear list traversals per request from RPC server code.

  Do not insert active ports into pool->sp_active list if they are success-
fully assigned to some thread.  This makes that list include only ports that
really require attention, and so traversal can be reduced to simple taking
the first one.

  Remove idle thread from pool->sp_idlethreads list when assigning some
work (port of requests) to it.  That again makes possible to replace list
traversals with simple taking the first element.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259632:
mav [Wed, 22 Jan 2014 23:46:19 +0000 (23:46 +0000)]
MFC r259632:
Rework flow control for connection-oriented (TCP) RPC server.

  When processing receive buffer, write the amount of data, expected
in present request record, into socket's so_rcv.sb_lowat to make stack
aware about our needs.  When processing following upcalls, ignore them
until socket collect enough data to be read and processed in one turn.
  This change reduces number of context switches and other operations
in RPC stack during large NFS writes (especially via non-Jumbo networks)
by order of magnitude.

  After precessing current packet, take another look into the pending
buffer to find out whether the next packet had been already received.
If not, deactivate this port right there without making RPC code to
push this port to another thread just to find that there is nothing.
If the next packet is received partially, also deactivate the port, but
also update socket's so_rcv.sb_lowat to not be woken up prematurely.
  This change additionally reduces number of context switches per NFS
request about in half.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258578, r258580, r258581 (by hrs):
mav [Wed, 22 Jan 2014 23:45:27 +0000 (23:45 +0000)]
MFC r258578, r258580, r258581 (by hrs):
Replace Sun RPC license in TI-RPC library with a 3-clause BSD license
with the explicit permissions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261046 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258132:
mav [Wed, 22 Jan 2014 23:42:30 +0000 (23:42 +0000)]
MFC r258132:
Some minor tuning to rpc/svc.c:
 - close cosmetic race in svc_exit();
 - do not set wait timeout for idle threads if we have no use for wakeups;
 - create new requested thread sooner, not only after some another thread
wakeup, that may happen later under constant load.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r260377: fix panic on pf_get_translation() failure.
glebius [Wed, 22 Jan 2014 10:45:16 +0000 (10:45 +0000)]
Merge r260377: fix panic on pf_get_translation() failure.

PR: 182557

git-svn-id: svn://svn.freebsd.org/base/stable/10@261023 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r260046: Fix the parse type for NGM_LISTTYPES.
glebius [Wed, 22 Jan 2014 10:38:01 +0000 (10:38 +0000)]
Merge r260046:  Fix the parse type for NGM_LISTTYPES.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261022 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r259855: We have in base iconv.
glebius [Wed, 22 Jan 2014 10:35:30 +0000 (10:35 +0000)]
Merge r259855:  We have in base iconv.

PR: 185135

git-svn-id: svn://svn.freebsd.org/base/stable/10@261021 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r258702: Fix some misinformation in netgraph manual pages.
glebius [Wed, 22 Jan 2014 10:31:56 +0000 (10:31 +0000)]
Merge r258702: Fix some misinformation in netgraph manual pages.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261020 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r258478, r258479, r258480, r259719: fixes related to mass source
glebius [Wed, 22 Jan 2014 10:29:15 +0000 (10:29 +0000)]
Merge r258478, r258479, r258480, r259719: fixes related to mass source
nodes removal.

PR: 176763

git-svn-id: svn://svn.freebsd.org/base/stable/10@261019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge several fixlets from head:
glebius [Wed, 22 Jan 2014 10:18:25 +0000 (10:18 +0000)]
Merge several fixlets from head:

r257619: Remove unused PFTM_UNTIL_PACKET const.
r257620: Code logic of handling PFTM_PURGE into pf_find_state().
r258475: Don't compare unsigned <= 0.
r258477: Fix off by ones when scanning source nodes hash.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261018 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r257846:
glebius [Wed, 22 Jan 2014 10:08:33 +0000 (10:08 +0000)]
Merge r257846:
  Make TCP_KEEP* socket options readable. At least PostgreSQL wants
  to read the values.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261017 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge r257686: Add required kernel option.
glebius [Wed, 22 Jan 2014 10:01:13 +0000 (10:01 +0000)]
Merge r257686: Add required kernel option.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge 257643: Document RB_FOREACH_SAFE() and RB_FOREACH_REVERSE_SAFE().
glebius [Wed, 22 Jan 2014 09:59:49 +0000 (09:59 +0000)]
Merge 257643: Document RB_FOREACH_SAFE() and RB_FOREACH_REVERSE_SAFE().

git-svn-id: svn://svn.freebsd.org/base/stable/10@261015 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge 260225:
glebius [Wed, 22 Jan 2014 09:22:39 +0000 (09:22 +0000)]
Merge 260225:

  Fix circular math macro.

PR: 146082

git-svn-id: svn://svn.freebsd.org/base/stable/10@261009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260621
jhibbits [Wed, 22 Jan 2014 06:27:02 +0000 (06:27 +0000)]
MFC r260621

Add missing EM_PPC64 to e_machine header display.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260874:
pfg [Wed, 22 Jan 2014 01:35:30 +0000 (01:35 +0000)]
MFC r260874:

gcc: fix libgcc by adding the bswap builtins for all platforms.

This change was missing from r258428 which attempted to add the
bswap builtins to gcc. The change is also missing from the patch
in gnu/155309.

Found by: marcel

git-svn-id: svn://svn.freebsd.org/base/stable/10@260998 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years ago10.0-RELEASE is out, so call stable/10 -STABLE again.
gjb [Tue, 21 Jan 2014 15:57:59 +0000 (15:57 +0000)]
10.0-RELEASE is out, so call stable/10 -STABLE again.

Reminded by: David Wolfskill
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260984 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259925-259926:
marck [Tue, 21 Jan 2014 09:19:28 +0000 (09:19 +0000)]
MFC r259925-259926:

  Add GPT UUID for VMware vSAN meta-data partition.

Approved by: ae

git-svn-id: svn://svn.freebsd.org/base/stable/10@260980 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260407:
mav [Mon, 20 Jan 2014 23:56:49 +0000 (23:56 +0000)]
MFC r260407:
Allow delete_method sysctl to be set to "DISABLE".

git-svn-id: svn://svn.freebsd.org/base/stable/10@260958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260782:
wblock [Mon, 20 Jan 2014 23:23:29 +0000 (23:23 +0000)]
MFC r260782:

-h and -H options backwards in manual page.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoAdd UPDATING entry for 10.0-RELEASE.
gjb [Mon, 20 Jan 2014 22:32:23 +0000 (22:32 +0000)]
Add UPDATING entry for 10.0-RELEASE.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259531;
pfg [Mon, 20 Jan 2014 21:58:20 +0000 (21:58 +0000)]
MFC r259531;

gcc: point to our address for bug reports.

As recommended by the FSF in gcc/version.c :

"If you distribute a modified version of GCC, please change
this to refer to a document giving instructions for reporting
bugs to you, not us."

git-svn-id: svn://svn.freebsd.org/base/stable/10@260935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260332;
pfg [Mon, 20 Jan 2014 21:50:31 +0000 (21:50 +0000)]
MFC r260332;
gcc: backport some fixes from llvm-gcc

llvm-gcc backported some patches from gcc trunk:

http://gcc.gnu.org/ml/gcc-cvs/2007-05/msg00662.html
http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00019.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00240.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00493.html

The first two were always GPL2. The last two were
added after the GPL3 transition, but were written
by aaw@google.com and Rafael Espíndola got permission
to relicense them under the GPL2 for inclusion in
llvm-gcc.

This fixes GCC-PR c++/31749

Obtained from: llvm-gcc (rev. 75463; GPLv2)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260932 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260833:
trociny [Mon, 20 Jan 2014 20:33:40 +0000 (20:33 +0000)]
MFC r260833:

Bring back r226403, the fix for bin/161526, which was (accidentally?)
reverted in r238896.

PR: bin/161526
Reported by: Karli.Sjoberg slu.se

git-svn-id: svn://svn.freebsd.org/base/stable/10@260924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260014, r260099:
pfg [Mon, 20 Jan 2014 19:37:38 +0000 (19:37 +0000)]
MFC r260014, r260099:

gcc: Add support for label attributes and "unavailable" attribute.

Apple GCC has extensions to support for both label attributes and
an "unavailable" attribute. These are critical for objc but are
also useful in regular C/C++.

Obtained from: Apple GCC 4.2 - 5531

git-svn-id: svn://svn.freebsd.org/base/stable/10@260918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFH: r260483, r260484, r260594, r260595, r260596, r260597
bapt [Mon, 20 Jan 2014 14:37:02 +0000 (14:37 +0000)]
MFH: r260483, r260484, r260594, r260595, r260596, r260597

Improve error message shown to the user when trying to load a module that is
already loaded or compiled withing the kernel
Point the user to dmesg(1) to get informations about why loading a module did fail
instead of printing the cryptic "Exec format error"
Update the BUGS section of kld(4) according the recent changes in kldload(8)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260906 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument an ipfw fwd issue.
hrs [Mon, 20 Jan 2014 05:57:58 +0000 (05:57 +0000)]
Document an ipfw fwd issue.

Suggested by: jmg

git-svn-id: svn://svn.freebsd.org/base/stable/10@260902 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years ago- Fix a bxe(4) entry. This issue is not related to NFSv4, and poor
hrs [Mon, 20 Jan 2014 05:44:45 +0000 (05:44 +0000)]
- Fix a bxe(4) entry.  This issue is not related to NFSv4, and poor
  performance is caused by disabling TSO, not the issue itself.
- s/&os;-STABLE/&os; &release.current;/

git-svn-id: svn://svn.freebsd.org/base/stable/10@260901 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260556: Add some missing .Nm for newer syscalls in existing man pages.
jilles [Sat, 18 Jan 2014 22:47:25 +0000 (22:47 +0000)]
MFC r260556: Add some missing .Nm for newer syscalls in existing man pages.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260867 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258675: Fix build.
pluknet [Sat, 18 Jan 2014 21:57:38 +0000 (21:57 +0000)]
MFC r258675: Fix build.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260864 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260583: Add unmapped IO support to virtio_scsi(4)
bryanv [Sat, 18 Jan 2014 18:41:24 +0000 (18:41 +0000)]
MFC r260583: Add unmapped IO support to virtio_scsi(4)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260858 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260582: Add unmapped IO support to virtio_blk(4)
bryanv [Sat, 18 Jan 2014 18:39:39 +0000 (18:39 +0000)]
MFC r260582: Add unmapped IO support to virtio_blk(4)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260581: Add sglist_append_bio(9) to append a struct bio's data to
bryanv [Sat, 18 Jan 2014 18:36:41 +0000 (18:36 +0000)]
MFC r260581: Add sglist_append_bio(9) to append a struct bio's data to
a sglist

git-svn-id: svn://svn.freebsd.org/base/stable/10@260856 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix description of pw(8) regression.
gjb [Sat, 18 Jan 2014 04:27:13 +0000 (04:27 +0000)]
Fix description of pw(8) regression.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260846 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument pw(8) regression when the '-G' flag is used.
gjb [Sat, 18 Jan 2014 04:17:42 +0000 (04:17 +0000)]
Document pw(8) regression when the '-G' flag is used.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260845 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix wording from r260842.
gjb [Sat, 18 Jan 2014 04:06:00 +0000 (04:06 +0000)]
Fix wording from r260842.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument a bsdconfig(8) compatibility nit with pkg(7) 1.2.x.
gjb [Sat, 18 Jan 2014 04:03:05 +0000 (04:03 +0000)]
Document a bsdconfig(8) compatibility nit with pkg(7) 1.2.x.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260842 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument possible poor NFSv6 performance with bxe(4) when 'tso'
gjb [Sat, 18 Jan 2014 03:44:43 +0000 (03:44 +0000)]
Document possible poor NFSv6 performance with bxe(4) when 'tso'
is enabled.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260839 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260566: Remove incorrect bit shift when assigning the LUN request field
bryanv [Sat, 18 Jan 2014 03:33:01 +0000 (03:33 +0000)]
MFC r260566: Remove incorrect bit shift when assigning the LUN request field

git-svn-id: svn://svn.freebsd.org/base/stable/10@260837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument the killall(1) regression.
delphij [Fri, 17 Jan 2014 21:37:55 +0000 (21:37 +0000)]
Document the killall(1) regression.

While I'm there also correct a typo.

Reviewed by: gjb (earlier version), hrs

git-svn-id: svn://svn.freebsd.org/base/stable/10@260832 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC of 260088:
mckusick [Fri, 17 Jan 2014 16:22:10 +0000 (16:22 +0000)]
MFC of 260088:

Fine tune filesystem block allocations under low free-space
conditions (-r254995) based on further operational experience.

Submitted by:  Dmitry Sivachenko
Fix Tested by: Dmitry Sivachenko

git-svn-id: svn://svn.freebsd.org/base/stable/10@260828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC of 260079:
mckusick [Fri, 17 Jan 2014 16:17:07 +0000 (16:17 +0000)]
MFC of 260079:

Properly handle unsigned comparison.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258622: dtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE
avg [Fri, 17 Jan 2014 10:58:59 +0000 (10:58 +0000)]
MFC r258622: dtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE

git-svn-id: svn://svn.freebsd.org/base/stable/10@260817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258605: Convert over the TCP probes to use mtod()
avg [Fri, 17 Jan 2014 10:48:44 +0000 (10:48 +0000)]
MFC r258605: Convert over the TCP probes to use mtod()

MFC slacker: adrian

git-svn-id: svn://svn.freebsd.org/base/stable/10@260815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257037: Redefine the io provider using the SDT(9) macros
avg [Fri, 17 Jan 2014 10:34:01 +0000 (10:34 +0000)]
MFC r257037: Redefine the io provider using the SDT(9) macros

MFC slacker: markj

git-svn-id: svn://svn.freebsd.org/base/stable/10@260813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258744-258746: zfs: add zfs_freebsd_putpages
avg [Thu, 16 Jan 2014 18:15:59 +0000 (18:15 +0000)]
MFC r258744-258746: zfs: add zfs_freebsd_putpages

git-svn-id: svn://svn.freebsd.org/base/stable/10@260786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260772:
gjb [Thu, 16 Jan 2014 16:44:23 +0000 (16:44 +0000)]
MFC r260772:
  Update the pkg-stage target to be more compatible with pkg-1.2:

 - Add a release-dvd.conf pkg(8) configuration file to override
   the default FreeBSD.conf configuration.
 - Remove architecture-specific pkg-stage.conf files, consolidate,
   and move their contents to scripts/pkg-stage.sh.
 - Use 'pkg -vv' to determine the ABI, which is used as the
   cache directory.

  Prior to these changes, it would be possible for pkg-stage to fetch
  conflicting binary packages from multiple repositories.

Tested against: head@r260522, stable/10@r260522

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@260781 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259612: ttm_bo_vm_lookup_rb: actually make use of the red-black tree
avg [Thu, 16 Jan 2014 16:28:19 +0000 (16:28 +0000)]
MFC r259612: ttm_bo_vm_lookup_rb: actually make use of the red-black tree

git-svn-id: svn://svn.freebsd.org/base/stable/10@260779 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)
avg [Thu, 16 Jan 2014 16:15:38 +0000 (16:15 +0000)]
MFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258739: zfs mappedread_sf: assert that a page is never partially valid
avg [Thu, 16 Jan 2014 16:13:21 +0000 (16:13 +0000)]
MFC r258739: zfs mappedread_sf: assert that a page is never partially valid

git-svn-id: svn://svn.freebsd.org/base/stable/10@260773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258634: MFV r258376: 3964 L2ARC should always compress metadata buffers
avg [Thu, 16 Jan 2014 16:07:59 +0000 (16:07 +0000)]
MFC r258634: MFV r258376: 3964 L2ARC should always compress metadata buffers

git-svn-id: svn://svn.freebsd.org/base/stable/10@260769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258633: MFV r255256: 3954 metaslabs continue to load even after
avg [Thu, 16 Jan 2014 16:05:21 +0000 (16:05 +0000)]
MFC r258633: MFV r255256: 3954 metaslabs continue to load even after
hitting zfs_mg_alloc_failure limit

git-svn-id: svn://svn.freebsd.org/base/stable/10@260768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
avg [Thu, 16 Jan 2014 15:57:39 +0000 (15:57 +0000)]
MFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
performance work

Sponsored by: HybridCluster [merge]

git-svn-id: svn://svn.freebsd.org/base/stable/10@260763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258631: MFV r247578
avg [Thu, 16 Jan 2014 14:47:29 +0000 (14:47 +0000)]
MFC r258631: MFV r247578

3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot

git-svn-id: svn://svn.freebsd.org/base/stable/10@260750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258743: drop ZUT_OBJ
avg [Thu, 16 Jan 2014 14:37:31 +0000 (14:37 +0000)]
MFC r258743: drop ZUT_OBJ

git-svn-id: svn://svn.freebsd.org/base/stable/10@260745 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258630: 734 taskq_dispatch_prealloc() desired
avg [Thu, 16 Jan 2014 14:34:53 +0000 (14:34 +0000)]
MFC r258630: 734 taskq_dispatch_prealloc() desired

git-svn-id: svn://svn.freebsd.org/base/stable/10@260742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258628: opensolaris taskq: some cosmetic changes
avg [Thu, 16 Jan 2014 14:30:26 +0000 (14:30 +0000)]
MFC r258628: opensolaris taskq: some cosmetic changes

git-svn-id: svn://svn.freebsd.org/base/stable/10@260739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258648: use saner calculations in should_yield
avg [Thu, 16 Jan 2014 14:27:20 +0000 (14:27 +0000)]
MFC r258648: use saner calculations in should_yield

git-svn-id: svn://svn.freebsd.org/base/stable/10@260737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258647: zfsboottest: properly specify a library dependency
avg [Thu, 16 Jan 2014 14:24:33 +0000 (14:24 +0000)]
MFC r258647: zfsboottest: properly specify a library dependency

git-svn-id: svn://svn.freebsd.org/base/stable/10@260735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl
avg [Thu, 16 Jan 2014 14:21:24 +0000 (14:21 +0000)]
MFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl

Sponsored by: HybridCluster

git-svn-id: svn://svn.freebsd.org/base/stable/10@260731 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)
avg [Thu, 16 Jan 2014 14:17:31 +0000 (14:17 +0000)]
MFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258351: fsx: new option to disable msync(MS_SYNC) after each write
avg [Thu, 16 Jan 2014 14:14:49 +0000 (14:14 +0000)]
MFC r258351: fsx: new option to disable msync(MS_SYNC) after each write

git-svn-id: svn://svn.freebsd.org/base/stable/10@260725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258354: taskqueue_cancel: garbage collect a write-only variable
avg [Thu, 16 Jan 2014 14:11:45 +0000 (14:11 +0000)]
MFC r258354: taskqueue_cancel: garbage collect a write-only variable

git-svn-id: svn://svn.freebsd.org/base/stable/10@260723 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260481:
ae [Thu, 16 Jan 2014 13:21:32 +0000 (13:21 +0000)]
MFC r260481:
  Add MRT6_DLOG() macro for debugging.
  Reduce number of MRT6DEBUG ifdefs and fix some broken format strings.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument a Heimdal fix and interoperability.
hrs [Wed, 15 Jan 2014 19:09:11 +0000 (19:09 +0000)]
Document a Heimdal fix and interoperability.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument an issue of FreeBSD/i386 on VirtualBox.
hrs [Wed, 15 Jan 2014 18:48:34 +0000 (18:48 +0000)]
Document an issue of FreeBSD/i386 on VirtualBox.

Discussed with: glebius and delphij

git-svn-id: svn://svn.freebsd.org/base/stable/10@260693 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC of r260691:
hrs [Wed, 15 Jan 2014 17:51:49 +0000 (17:51 +0000)]
MFC of r260691:
 - Fix indent.
 - Minor clean up after DB5 migration.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260261 (gavin):
dteske [Wed, 15 Jan 2014 08:17:31 +0000 (08:17 +0000)]
MFC r260261 (gavin):
Lower the priority of the "connect to any open wireless network" network
description, so guaranteeing that any other defined network will be tried
first.

MFC r260262 (gavin):
Allow bsdinstall to use WPA-Enterprise networks when installing.  This
only allows basic username/password config, and does not provide the
ability to set any of the other WPA options.  Regardless, this is
generally sufficient to associate.

Perhaps in the future this could allow full configuring (e.g. being able
to set "anonymous identity", and perhaps some of the more obscure WPA
options), though perhaps that will better belong in bsdconfig when that
grows wlan config ability.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260260 (gavin): Remove what appears to be a stray debugging printf.
dteske [Wed, 15 Jan 2014 08:12:19 +0000 (08:12 +0000)]
MFC r260260 (gavin): Remove what appears to be a stray debugging printf.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260681 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259686:
dteske [Wed, 15 Jan 2014 08:10:41 +0000 (08:10 +0000)]
MFC r259686:
Move the installer's keymap solution introduced by SVN r259468. The new
location of /etc/rc.local on the install media is more appropriate as it
knows serial vs. non-serial and can also do the change earlier (so that
even the initial Install dialog can benefit from the change).

Discussed with: nwhitehorn

git-svn-id: svn://svn.freebsd.org/base/stable/10@260680 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257824,257826-257830,258411: Updates to sysrc(8)
dteske [Wed, 15 Jan 2014 08:03:01 +0000 (08:03 +0000)]
MFC r257824,257826-257830,258411: Updates to sysrc(8)
257824: Fix a bug with `-d' form working as documented
257826: Add `--version' long option
257827: Add a `-c' option for `check only'
257828: Comments and whitespace
257829: Fix a bug with `-e' introduced by above 257828
257830: Document SYSRC_VERBOSE enviroment variable in the manual
258411: Revert the above 257830 (both merged to get .Dd bump in man-page)

git-svn-id: svn://svn.freebsd.org/base/stable/10@260679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259054:
dteske [Wed, 15 Jan 2014 07:49:17 +0000 (07:49 +0000)]
MFC r259054:
Performance and debugging enhancements:
+ Remove UNAME_P=$(...) from startup/misc -- already supplied by common.subr
+ Use f_getvar instead of $(eval echo \$$var) -- f_getvar is sub-shell free
+ Add `-e' and `-k var' options to f_eval_catch -- increasing use-cases
+ Use f_eval_catch to display errors on failure -- reducing duplicated code
+ Use f_eval_catch when we need output from a command -- improving debugging
+ Optimize f_isinter of strings.subr for performance -- now sub-shell free
+ Improve error checking on pidfiles -- using f_eval_catch and f_isinteger
+ Use $var_to_set arg of f_ifconfig_{inet,netmask} -- eliminate sub-shells
+ Use f_sprintf instead of $(printf ...) -- consolidate sub-shells
+ Use $var_to_set arg of f_route_get_default -- eliminate sub-shells
+ Add f_count to replace $(set -- ...;echo $#) -- eliminate sub-shells
+ Add f_count_ifs to replace $(IFS=x;set -- ...;echo $#) -- no sub-shells
+ Replace var="$var${var:+ }..." in loops with var="$var ..." with a follow-
  up var="${var# }" to trim leading whitespace -- optimize loops
+ Use $var_to_set arg of f_resolv_conf_nameservers -- eliminate sub-shells
+ Comments for the f_eval_catch function
+ Remove a duplicate `local ... desc ...' in f_device_get_all of device.subr
+ Use $var_to_set arg of f_device_capacity -- eliminate sub-shells
+ Whitespace fixes in f_dialog_init of dialog.subr
+ Optimize f_inet_atoi of media/tcpip.subr for performance -- sub-shell free
+ In several cases, send stderr to /dev/null -- clean up runtime execution
+ Change f_err of common.subr to go to program stderr not terminal stderr,
  allowing redirection of output from functions that use f_err
+ Disable debugging when using f_getvar to get variable argument to
  f_startup_rcconf_map_expand of startup/rcconf.subr
+ Use f_replace_all instead of $(echo ... | tr | sed) -- performance
+ Add a $var_to_set option to f_index_{file,menusel_{command,keyword}} of
  common.subr -- centralize sub-shells

git-svn-id: svn://svn.freebsd.org/base/stable/10@260678 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC missing mergeinfo for r258854.
dteske [Wed, 15 Jan 2014 07:47:13 +0000 (07:47 +0000)]
MFC missing mergeinfo for r258854.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260677 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258458:
dteske [Wed, 15 Jan 2014 07:42:31 +0000 (07:42 +0000)]
MFC r258458:
Improve network device scanning in the netdev module. First, make it use the
`device.subr' framework (improving performane and reducing sub-shells). Next
improve the `device.subr' framework itself. Make use of the `flags' device
struct member for network interfaces to indicate if an interface is Active,
Wired Ethernet, or 802.11 Wireless. Functions have been added to make checks
against the `flags' bit-field quick and efficient. Last, add function for
rescanning the network to update the device registers. Remove an unnecessary
local (ifn) while we're here (use already provided local `if').

git-svn-id: svn://svn.freebsd.org/base/stable/10@260676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f