]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoDon't automatically send a START UNIT to sequential access devices-
Matt Jacob [Thu, 3 Mar 2011 18:28:21 +0000 (18:28 +0000)]
Don't automatically send a START UNIT to sequential access devices-
this might cause them to load the tape unintentionally.

Reviewed by: gibbs
MFC after: 1 month

13 years agoSwitch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
Dmitry Chagin [Thu, 3 Mar 2011 18:19:10 +0000 (18:19 +0000)]
Switch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
if page mapped MAP_ANON linux uses private algorithm too.

Disscussed with: jhb

MFC after: 3 Days

13 years agoMake "struct pts_softc" point to ucred instead of uidinfo. This is no-op,
Edward Tomasz Napierala [Thu, 3 Mar 2011 17:33:22 +0000 (17:33 +0000)]
Make "struct pts_softc" point to ucred instead of uidinfo.  This is no-op,
required for resource containers.

Reviewed by: kib (as part of a larger patch), ed

13 years agoUnbreak the build for no options INET6.
Bjoern A. Zeeb [Thu, 3 Mar 2011 16:16:49 +0000 (16:16 +0000)]
Unbreak the build for no options INET6.

PR: kern/155227
Submitted by: Dmitry Afanasiev (KOT MATPOCKuH.Ru)

13 years agoMFi386: revision 219186
Yoshihiro Takahashi [Thu, 3 Mar 2011 11:45:54 +0000 (11:45 +0000)]
MFi386: revision 219186

  This patch shrinks boot2 a little.

  o    It switches kname to be just a pointer instead of an array.
  o    It changes ioctl to unsigned from uint8_t.
  o    It changes the second keyhit limit to 3 seconds from 5.
  o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting.

13 years agoMake cap_new(2) and cap_getmode(2) symbols from libc public so applications
Robert Watson [Thu, 3 Mar 2011 11:31:08 +0000 (11:31 +0000)]
Make cap_new(2) and cap_getmode(2) symbols from libc public so applications
can link against them.  Add man pages for the new system calls, with one
errant forward reference to changes not yet present in FreeBSD, but soon
will be.

Reviewed by: anderson
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
Discussed with: benl, kris, pjd
MFC after: 3 months

13 years agoAdd description of ECAPMODE to errno(2) man page.
Robert Watson [Thu, 3 Mar 2011 11:29:48 +0000 (11:29 +0000)]
Add description of ECAPMODE to errno(2) man page.

Discussed with: anderson
Obtained from:  Capsicum Project
Sponsored by:   Google, Inc.
MFC after:      3 months

13 years agoAdd text string for ECAPMODE to libc.
Robert Watson [Thu, 3 Mar 2011 11:28:57 +0000 (11:28 +0000)]
Add text string for ECAPMODE to libc.

Discussed with: anderson
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
MFC after: 3 months

13 years ago- Remove dependency to ucom from ulpt.
Hans Petter Selasky [Thu, 3 Mar 2011 10:25:41 +0000 (10:25 +0000)]
- Remove dependency to ucom from ulpt.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years agoPort over ar5416OverrideIni() from ath9k ar5008_hw_override_ini().
Adrian Chadd [Thu, 3 Mar 2011 08:38:31 +0000 (08:38 +0000)]
Port over ar5416OverrideIni() from ath9k ar5008_hw_override_ini().

* change the BB gating logic to explicitly define which chips are covered;
  the ath9k method isn't as clear.
* don't disable the BB gating for now, the ar5416 initvals have it, and the
  ar9160 initval sets it to 0x0. Figure out why before re-enabling this.
* migrate the Merlin (ar9280) applicable WAR from the Kite (ar9285) code
  (which won't get called for Merlin!) and stuff it in here.

13 years ago* fix the ar5416 check macros to be slightly more correct;
Adrian Chadd [Thu, 3 Mar 2011 08:30:28 +0000 (08:30 +0000)]
* fix the ar5416 check macros to be slightly more correct;
* add some stubs for chipsets that we haven't yet obtained support for.

13 years agoModify the sample rate module output to be (slightly) easier to understand.
Adrian Chadd [Thu, 3 Mar 2011 08:09:49 +0000 (08:09 +0000)]
Modify the sample rate module output to be (slightly) easier to understand.

* add dot11rate_label() which returns Mb or MCS based on legacy or HT
* use it everywhere dot11rate() is used
* in the "current selection" part at the top of the debugging output,
  otuput what the rate itself is rather than the rix. The rate index
  (rix) has very little meaning to normal humans who don't know how
  to find the PHY settings for each of the chipsets; pointing out the
  rix rate and type is likely more useful.

13 years agoDisable trying to do HT/40 and short-GI TX.
Adrian Chadd [Thu, 3 Mar 2011 03:02:06 +0000 (03:02 +0000)]
Disable trying to do HT/40 and short-GI TX.

These flags are just plain wrong - they're the node flags from negotiation,
not the configured flags. I'll jump in later on and figure out exactly
what should be done to properly set these two flags when in both STA mode
(ie, what the AP says is possible and what's configured) and AP mode
(ie, where the AP has a configuration, but then negotiates what's possible
with each node, so per-node configuration can and will differ.)

This allows the 11n 2.4ghz/ht20 mode to associate (but perform poorly still)
and exchange MCS rates with atheros reference APs and a Cisco/Linksys
E3000 AP.

13 years agoFix some duplicate-word typos in manpages.
Ulrich Spörlein [Wed, 2 Mar 2011 21:59:53 +0000 (21:59 +0000)]
Fix some duplicate-word typos in manpages.

Submitted by: arundel
MFC after: 1 week

13 years agoUnbreak .Aq for non-ASCII output like -Tps or -Tutf8.
Ulrich Spörlein [Wed, 2 Mar 2011 21:59:42 +0000 (21:59 +0000)]
Unbreak .Aq for non-ASCII output like -Tps or -Tutf8.

groff will try to produce fancy angle brackets like
Foo ⟨foo@FreeBSD.org⟩
This is nice and well, but no email client will understand them. For
ease of copy&paste keep the one-true pair of brackets 0x3c/0x3e.

See: RFC 822, RFC 2822
PR: gnu/154822
Submitted by: Dominic Fandrey <kamikaze@bsdforen.de>
MFC after: 2 weeks

13 years agoHide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
Bjoern A. Zeeb [Wed, 2 Mar 2011 21:39:08 +0000 (21:39 +0000)]
Hide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
from processes inside jails if the addresses do not belong to the jail.

Originally reported by: Pieter de Boer via remko
PR: kern/151119
Tested by: Piotr KUCHARSKI (nospam 42.pl) [gif]
MFC after: 1 week

13 years agoThis patch shrinks boot2 a little.
Roman Divacky [Wed, 2 Mar 2011 18:53:12 +0000 (18:53 +0000)]
This patch shrinks boot2 a little.

o    It switches kname to be just a pointer instead of an array
     thus avoiding a couple of memcpy()s.

o    It changes ioctl to unsigned from uint8_t.

o    It changes the second keyhit limit to 3 seconds from 5
     so that constant propagation can take place.

o    It changes the ticks overflow computation as suggested by bde@.

o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting from
     bootinfo as it is unused.

Reviewed by: jhb

13 years agoBreak the keycache management functions out into if_ath_keycache.c .
Adrian Chadd [Wed, 2 Mar 2011 17:19:54 +0000 (17:19 +0000)]
Break the keycache management functions out into if_ath_keycache.c .

13 years agoPrevent crashes from a race when (cloned) interfaces go away.
Bjoern A. Zeeb [Wed, 2 Mar 2011 17:13:07 +0000 (17:13 +0000)]
Prevent crashes from a race when (cloned) interfaces go away.

PR: bin/152143
Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com)
Tested by: Przemyslaw Frasunek (przemyslaw frasunek.com)
MFC after: 1 week

13 years agoUpdate manual: node now supports NetFlow v9.
Gleb Smirnoff [Wed, 2 Mar 2011 16:16:09 +0000 (16:16 +0000)]
Update manual: node now supports NetFlow v9.

Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

13 years agoAdd support for NetFlow version 9 into ng_netflow(4) node.
Gleb Smirnoff [Wed, 2 Mar 2011 16:15:11 +0000 (16:15 +0000)]
Add support for NetFlow version 9 into ng_netflow(4) node.

Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

13 years agoAdd additional release makefile for bsdinstall-based media, along with
Nathan Whitehorn [Wed, 2 Mar 2011 16:06:57 +0000 (16:06 +0000)]
Add additional release makefile for bsdinstall-based media, along with
support files. This does not change the default behavior of anything.

To make bsdinstall-based media, pre-build world and GENERIC, then run
the release target in Makefile.bsdinstall.

13 years agoMigrate the sysctl related routines (statistics, debugging, etc) out of
Adrian Chadd [Wed, 2 Mar 2011 16:03:19 +0000 (16:03 +0000)]
Migrate the sysctl related routines (statistics, debugging, etc) out of
if_ath.c and into if_ath_sysctl.c .

13 years agoMake installations work when no optional components are selected.
Nathan Whitehorn [Wed, 2 Mar 2011 15:41:00 +0000 (15:41 +0000)]
Make installations work when no optional components are selected.

13 years agoFix a bug in the result of manual assembly.
Konstantin Belousov [Wed, 2 Mar 2011 14:56:58 +0000 (14:56 +0000)]
Fix a bug in the result of manual assembly.

Reported by: Stefan Grundmann <sg2342 googlemail com>
PR: kern/155118
MFC after: 3 days

13 years agoImprove the distributeworld target in Makefile.inc1 and update the release
Nathan Whitehorn [Wed, 2 Mar 2011 14:39:26 +0000 (14:39 +0000)]
Improve the distributeworld target in Makefile.inc1 and update the release
infrastructure to use it. make distributeworld can now be used without
preparing its environment first and installs games into its distribution
using the regular make distribute logic instead of post-processing with
a script.

Also add two new targets, packageworld and packagekernel, that tar up the
results of distributeworld and distributekernel (also new), respectively.

13 years agoExpand the name of Palm Sunday holiday with more canonical Entry of the
Sergey A. Osokin [Wed, 2 Mar 2011 11:09:34 +0000 (11:09 +0000)]
Expand the name of Palm Sunday holiday with more canonical Entry of the
Lord into Jerusalem.
Merge the Pentecost and Trinity Sunday holidays, they are synonyms.
Remove Body of Christ day, nonexistent holiday for Orthodox Church.
Fix typo in the name of Ioann The Baptist, introduced in previous commit.

13 years agoFix beginning day of the Carnival. it starts
Sergey A. Osokin [Wed, 2 Mar 2011 11:04:50 +0000 (11:04 +0000)]
Fix beginning day of the Carnival. it starts

13 years agoCorrect a typo.
Xin LI [Wed, 2 Mar 2011 00:29:14 +0000 (00:29 +0000)]
Correct a typo.

PR: bin/155175
Submitted by: Peter J. Philipp <pjp centroid.eu>
MFC after: 3 days

13 years agoMake a change to the implementation of the direct map to improve performance
Alan Cox [Wed, 2 Mar 2011 00:24:07 +0000 (00:24 +0000)]
Make a change to the implementation of the direct map to improve performance
on processors that support 1 GB pages.  Specifically, if the end of physical
memory is not aligned to a 1 GB page boundary, then map the residual
physical memory with multiple 2 MB page mappings rather than a single 1 GB
page mapping.  When a 1 GB page mapping is used for this residual memory,
access to the memory is slower than when multiple 2 MB page mappings are
used.  (I suspect that the reason for this slowdown is that the TLB is
actually being loaded with 4 KB page mappings for the residual memory.)

X-MFC after: r214425

13 years agokill: Note that this is used both as a normal program and a shell builtin.
Jilles Tjoelker [Tue, 1 Mar 2011 21:48:22 +0000 (21:48 +0000)]
kill: Note that this is used both as a normal program and a shell builtin.

13 years agoprintf: Note that this is used both as a normal program and a shell builtin.
Jilles Tjoelker [Tue, 1 Mar 2011 21:47:06 +0000 (21:47 +0000)]
printf: Note that this is used both as a normal program and a shell builtin.

13 years agoMFV of tzdata2011b, r219147
Edwin Groothuis [Tue, 1 Mar 2011 21:24:50 +0000 (21:24 +0000)]
MFV of tzdata2011b, r219147

- USA/Mercer County, North Dakota - Moved from Mountain time to Central time.

13 years agoVendor Import of tzdata2011b
Edwin Groothuis [Tue, 1 Mar 2011 21:16:55 +0000 (21:16 +0000)]
Vendor Import of tzdata2011b

USA/Mercer County, North Dakota - Moved from Mountain time to Central time.

Obtained from: ftp://elsie.nci.nih.gov/pub/

13 years agoFix misuse of TARGET_ARCH. This should be MACHINE_ARCH.
Nathan Whitehorn [Tue, 1 Mar 2011 20:51:41 +0000 (20:51 +0000)]
Fix misuse of TARGET_ARCH. This should be MACHINE_ARCH.

13 years agoCorrect spelling in a last-minute tweaked NOTES entry for CAPABILITIES.
Robert Watson [Tue, 1 Mar 2011 17:39:27 +0000 (17:39 +0000)]
Correct spelling in a last-minute tweaked NOTES entry for CAPABILITIES.

Submitted by: netchild
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoAdd Capsicum capability mode support; svn add of capability.h was missed
Robert Watson [Tue, 1 Mar 2011 17:37:58 +0000 (17:37 +0000)]
Add Capsicum capability mode support; svn add of capability.h was missed
in a previous commit.  Whoops!

Reported by: jhb
Reviewed by: anderson
Discussed with: benl, kris, pjd
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoPut in a temporary workaround for ctfmerge hanging on processing
Dimitry Andric [Tue, 1 Mar 2011 17:15:44 +0000 (17:15 +0000)]
Put in a temporary workaround for ctfmerge hanging on processing
kernel.debug (or possibly other files), when WITH_CTF is active.

This is caused by a bug in clang's integrated assembler, causing malloc
to sometimes hang during initialization in statically linked executables
that use threading, such as the copy of ctfmerge that is built during
the bootstrap stage of buildworld.  The bug has been submitted upstream:

  http://llvm.org/bugs/show_bug.cgi?id=9352

Note that you might have to rebuild and install libc first, to get your
kernel build to finish, because the ctfmerge binary built during
bootstrap is linked with your base system's copy of libc.a, which might
already contain a bad copy of malloc.o.

13 years agoTeach kdump to decode linux syscalls names too.
Dmitry Chagin [Tue, 1 Mar 2011 16:42:28 +0000 (16:42 +0000)]
Teach kdump to decode linux syscalls names too.

Fix bug introduced in my previous commit: the kernel always dump native
signal numbers, so no need to check the ABI in ktrpsig().

Suggested by: jhb
MFC after: 1 Month.

13 years agoFully honor KERNSRCDIR for 'make universe' if it is set.
John Baldwin [Tue, 1 Mar 2011 14:54:14 +0000 (14:54 +0000)]
Fully honor KERNSRCDIR for 'make universe' if it is set.

MFC after: 1 week

13 years agoUse a suitable DIRPRFX for each invocation of make in the build32 and
John Baldwin [Tue, 1 Mar 2011 14:53:36 +0000 (14:53 +0000)]
Use a suitable DIRPRFX for each invocation of make in the build32 and
install32 targets so that the full path to each program or library is
displayed in the make output.

MFC after: 1 week

13 years agoSimilar to 189574, properly handle subclasses of bus drivers when deleting
John Baldwin [Tue, 1 Mar 2011 14:43:37 +0000 (14:43 +0000)]
Similar to 189574, properly handle subclasses of bus drivers when deleting
a driver during kldunload.  Specifically, recursively walk the tree of
subclasses of a given driver attachment's bus device class detaching all
instances of that driver for each class and its subclasses.

Reported by: bschmidt
Reviewed by: imp
MFC after: 1 week

13 years agoContinue to introduce Capsicum capability mode:
Robert Watson [Tue, 1 Mar 2011 13:35:48 +0000 (13:35 +0000)]
Continue to introduce Capsicum capability mode:

White list sysarch calls allowed in capability mode; arguably, there
should be some link between the capability mode model and the privilege
model here.  Sysarch is a morass similar to ioctl, in many senses.

Submitted by: anderson
Discussed with: benl, kris, pjd
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoContinue introducing Capsicum capability mode support:
Robert Watson [Tue, 1 Mar 2011 13:32:07 +0000 (13:32 +0000)]
Continue introducing Capsicum capability mode support:

If a system call wasn't listed in capabilities.conf, return ECAPMODE at
syscall entry.

Reviewed by: anderson
Discussed with: benl, kris, pjd
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoRegenerate system call files following addition of cap_enter(2),
Robert Watson [Tue, 1 Mar 2011 13:30:23 +0000 (13:30 +0000)]
Regenerate system call files following addition of cap_enter(2),
cap_getmode(2), and capabilities.conf.

Reviewed by: anderson
Discussed with: benl, kris, pjd
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
MFC after: 3 months

13 years agoContinue to introduce Capsicum Capability Mode support:
Robert Watson [Tue, 1 Mar 2011 13:28:27 +0000 (13:28 +0000)]
Continue to introduce Capsicum Capability Mode support:

Add a new system call flag, SYF_CAPENABLED, which indicates that a
particular system call is available in capability mode.

Add a new configuration file, kern/capabilities.conf (similar files
may be introduced for other ABIs in the future), which enumerates
system calls that are available in capability mode.  When a new
system call is added to syscalls.master, it will also need to be
added here (if needed).  Teach sysent parts to use this file to set
values for SYF_CAPENABLED for the native ABI.

Reviewed by: anderson
Discussed with: benl, kris, pjd
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoHook up sys_capability.c to the build.
Robert Watson [Tue, 1 Mar 2011 13:24:49 +0000 (13:24 +0000)]
Hook up sys_capability.c to the build.

Sponsored by:   Google, Inc.
Reviewed by:    anderson
Discussed with: benl, kris, pjd
Obtained from:  Capsicum Project
MFC after:      3 months

13 years agoAdd initial support for Capsicum's Capability Mode to the FreeBSD kernel,
Robert Watson [Tue, 1 Mar 2011 13:23:37 +0000 (13:23 +0000)]
Add initial support for Capsicum's Capability Mode to the FreeBSD kernel,
compiled conditionally on options CAPABILITIES:

Add a new credential flag, CRED_FLAG_CAPMODE, which indicates that a
subject (typically a process) is in capability mode.

Add two new system calls, cap_enter(2) and cap_getmode(2), which allow
setting and querying (but never clearing) the flag.

Export the capability mode flag via process information sysctls.

Sponsored by: Google, Inc.
Reviewed by: anderson
Discussed with: benl, kris, pjd
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoAdd ECAPMODE, "Not permitted in capability mode", a new kernel errno
Robert Watson [Tue, 1 Mar 2011 13:14:28 +0000 (13:14 +0000)]
Add ECAPMODE, "Not permitted in capability mode", a new kernel errno
constant to indicate that a system call (or perhaps an operation requested
via a system call) is not permitted for a capability mode process.

Submitted by: anderson
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 1 week

13 years agoAdd XMIT_FAILOVER transmit algorithm to ng_one2many node. Packets are
Andrey V. Elsukov [Tue, 1 Mar 2011 13:10:56 +0000 (13:10 +0000)]
Add XMIT_FAILOVER transmit algorithm to ng_one2many node. Packets are
delivered out the first active "many" hook.

PR: kern/137775
Submitted by: Maxim Ignatenko
MFC after: 2 weeks

13 years agoRemove duplicate "in".
Rebecca Cran [Tue, 1 Mar 2011 11:47:51 +0000 (11:47 +0000)]
Remove duplicate "in".

Suggested by: Rob Farmer <rfarmer at predatorlabs.net>
MFC after: 3 days

13 years agoFixed conversion of prefix length to a netmask.
Ruslan Ermilov [Tue, 1 Mar 2011 11:47:16 +0000 (11:47 +0000)]
Fixed conversion of prefix length to a netmask.

13 years agoChange the return type of vmspace_swap_count to a long to match the other
Rebecca Cran [Tue, 1 Mar 2011 11:04:30 +0000 (11:04 +0000)]
Change the return type of vmspace_swap_count to a long to match the other
vmspace_*_count functions.

MFC after: 3 days

13 years agoAnother couple of unsigned/ssize_t changes.
Poul-Henning Kamp [Tue, 1 Mar 2011 08:52:10 +0000 (08:52 +0000)]
Another couple of unsigned/ssize_t changes.

13 years agoIncrease NKPT in case of n32 and n64 to support more physical memory.
Jayachandran C. [Tue, 1 Mar 2011 04:21:56 +0000 (04:21 +0000)]
Increase NKPT in case of n32 and n64 to support more physical memory.

On n32, vm_page_startup() needs more virtual mem to map vm_page structs.
The new value of 256 will allow us to support 16GB RAM.

13 years agoUse new thread's stack to invoke pmap_activate in cpu_switch()
Jayachandran C. [Tue, 1 Mar 2011 03:25:18 +0000 (03:25 +0000)]
Use new thread's stack to invoke pmap_activate in cpu_switch()

Restore the SP from the new thread's PCB before calling pmap_activate.
Remove some old FIXME comments.

13 years agoAdds a new Congestion Control that helps reduce
Randall Stewart [Tue, 1 Mar 2011 00:37:46 +0000 (00:37 +0000)]
Adds a new Congestion Control that helps reduce
the RTT that a flow will build up in buffers in
transit. It is a slight modification to RFC2581
but is more friendly i.e. less aggressive.

MFC after: 3 months

13 years agoUse correct types and fromats for physical address
Jayachandran C. [Mon, 28 Feb 2011 21:33:26 +0000 (21:33 +0000)]
Use correct types and fromats for physical address

- Use vm_paddr_t for pa in pmap_steal_memory()
- Use uintmax_t and %jx to ensure that physical address are printed
  correctly in cpu_startup() and pmap_bootstrap()

13 years agoUse vm_offset_t for virtual addresses.
Jayachandran C. [Mon, 28 Feb 2011 20:55:41 +0000 (20:55 +0000)]
Use vm_offset_t for virtual addresses.

The unsigned int type used now is incorrect in n64 compilation.

13 years agoMake sure changing ownership of RX descriptor to be done as last
Pyun YongHyeon [Mon, 28 Feb 2011 20:37:48 +0000 (20:37 +0000)]
Make sure changing ownership of RX descriptor to be done as last
operation.  Previously ownership was transferred to hardware before
setting address of new RX buffer such that it was possible for
hardware to use wrong RX buffer address.
While here keep compiler from re-ordering instructions by declaring
descriptor members volatile. Memory barriers would do the same job
but volatile is supposed to be cheaper than using memory barriers,
especially on MP systems.

Submitted by: marius
MFC after: 1 week

13 years ago- Add missing MLINKS for libusb and some manpage fixes.
Hans Petter Selasky [Mon, 28 Feb 2011 18:53:06 +0000 (18:53 +0000)]
- Add missing MLINKS for libusb and some manpage fixes.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years ago- Add support for software pre-scaling of ISOCHRONOUS transfers.
Hans Petter Selasky [Mon, 28 Feb 2011 17:23:15 +0000 (17:23 +0000)]
- Add support for software pre-scaling of ISOCHRONOUS transfers.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years agoSync FreeBSD ISP with mercurial tree. Minor changes having to do with
Matt Jacob [Mon, 28 Feb 2011 15:58:30 +0000 (15:58 +0000)]
Sync FreeBSD ISP with mercurial tree. Minor changes having to do with
a macro for minima.

13 years agoType-change to ssize_t to (app|pl)ease ppc platform.
Poul-Henning Kamp [Mon, 28 Feb 2011 14:48:00 +0000 (14:48 +0000)]
Type-change to ssize_t to (app|pl)ease ppc platform.

13 years agoRevert some of r177626. "in in" is valid in certain sentences.
Rebecca Cran [Mon, 28 Feb 2011 10:03:48 +0000 (10:03 +0000)]
Revert some of r177626. "in in" is valid in certain sentences.

PR: 121490
MFC after: 3 days

13 years agoUpdate fifolog internals to match main version:
Poul-Henning Kamp [Mon, 28 Feb 2011 09:11:46 +0000 (09:11 +0000)]
Update fifolog internals to match main version:

Rename ...write_bytes... to ...write_records..., that's what they do.

Move writer .h stuff into writer private .h file.

Change logic in writer to support both fifolog usage in FreeBSD and
Measured usage better, by always using an input buffer.

Various cleanups.

13 years agoDon't override the perfectly good default ->zalloc and ->zfree functions.
Poul-Henning Kamp [Mon, 28 Feb 2011 08:59:35 +0000 (08:59 +0000)]
Don't override the perfectly good default ->zalloc and ->zfree functions.

13 years agoDrop my OpenSSL maintainer hat. I don't have the motivation to keep
Simon L. B. Nielsen [Mon, 28 Feb 2011 06:54:14 +0000 (06:54 +0000)]
Drop my OpenSSL maintainer hat. I don't have the motivation to keep
chasing updates etc.

Leave a reminder not to commit non-upstream changes (ref: Debian
random...).

13 years agoUse proper lock in assertion.
Pawel Jakub Dawidek [Mon, 28 Feb 2011 05:45:31 +0000 (05:45 +0000)]
Use proper lock in assertion.

MFC after: 1 month

13 years agoPartial fix for PR 91106. Correct the short weekday names. Done according to this...
Konrad Jankowski [Sun, 27 Feb 2011 21:32:25 +0000 (21:32 +0000)]
Partial fix for PR 91106. Correct the short weekday names. Done according to this poll https://bugzilla.redhat.com/show_bug.cgi?id=242296. This will not close the bug fully yet, as the month names are still not correctly in Genitive. More research on this topic will be done, as I'm suspecting a bug in the libc locale functions picking the month name from the wrong group.

PR: conf/91106
Approved by: gavin (mentor)
MFC after: 1 month

13 years agoCommit two more files missed in r219089.
Pawel Jakub Dawidek [Sun, 27 Feb 2011 19:44:10 +0000 (19:44 +0000)]
Commit two more files missed in r219089.

MFC after: 1 month

13 years agoFinally... Import the latest open-source ZFS version - (SPA) 28.
Pawel Jakub Dawidek [Sun, 27 Feb 2011 19:41:40 +0000 (19:41 +0000)]
Finally... Import the latest open-source ZFS version - (SPA) 28.

Few new things available from now on:

- Data deduplication.
- Triple parity RAIDZ (RAIDZ3).
- zfs diff.
- zpool split.
- Snapshot holds.
- zpool import -F. Allows to rewind corrupted pool to earlier
  transaction group.
- Possibility to import pool in read-only mode.

MFC after: 1 month

13 years agoFix typo in kernel configuration entry.
Glen Barber [Sun, 27 Feb 2011 17:14:06 +0000 (17:14 +0000)]
Fix typo in kernel configuration entry.

PR: 155074
Submitted by: Warren Block (wblock of wonkity com)
MFC after: 3 days

13 years agoForce DMA for controller found in Lenovo T510 (probably in others too).
Pawel Jakub Dawidek [Sun, 27 Feb 2011 13:58:20 +0000 (13:58 +0000)]
Force DMA for controller found in Lenovo T510 (probably in others too).
This makes reads 10 times faster.

Discussed with: mav

13 years agoAccept == as an alias of = which is a popular GNU extension.
Xin LI [Sun, 27 Feb 2011 12:28:06 +0000 (12:28 +0000)]
Accept == as an alias of = which is a popular GNU extension.

This is intentionally undocumented for now since it's not part
of any standard.

MFC after: 1 month

13 years agoRename bcpy() macro to bcopy().
Pawel Jakub Dawidek [Sun, 27 Feb 2011 12:25:47 +0000 (12:25 +0000)]
Rename bcpy() macro to bcopy().

13 years agoRecognize 'reload' command, as hastd can be reloaded with the SIGHUP signal.
Pawel Jakub Dawidek [Sun, 27 Feb 2011 11:40:20 +0000 (11:40 +0000)]
Recognize 'reload' command, as hastd can be reloaded with the SIGHUP signal.

MFC after: 1 week

13 years agoMerge fix from r1.108 of NetBSD's usr.bin/ftp/main.c:
Rebecca Cran [Sun, 27 Feb 2011 10:13:16 +0000 (10:13 +0000)]
Merge fix from r1.108 of NetBSD's usr.bin/ftp/main.c:

Only attempt to el_parse() a command unknown by the default parser
if editing is enabled.

PR: bin/100089
MFC after: 3 days

13 years agoClang's integrated assembler can now handle sys/boot/i386/boot2/sio.S.
Dimitry Andric [Sun, 27 Feb 2011 02:06:09 +0000 (02:06 +0000)]
Clang's integrated assembler can now handle sys/boot/i386/boot2/sio.S.
It used to choke on the notation "inb (%dx),%al" for "inb %dx,%al"; GNU
as accepts both forms.  Which notation is more 'correct' is an open
question. :)

13 years agoRegenerate clang and tblgen manpages; the clang manpage has some minor
Dimitry Andric [Sun, 27 Feb 2011 01:45:36 +0000 (01:45 +0000)]
Regenerate clang and tblgen manpages; the clang manpage has some minor
updates.

13 years agoUpdate llvm/clang to trunk r126547.
Dimitry Andric [Sun, 27 Feb 2011 01:32:10 +0000 (01:32 +0000)]
Update llvm/clang to trunk r126547.

There are several bugfixes in this update, but the most important one is
to ensure __start_ and __stop_ symbols for linker sets and kernel module
metadata are always emitted in object files:

  http://llvm.org/bugs/show_bug.cgi?id=9292

Before this fix, if you compiled kernel modules with clang, they would
not be properly processed by kldxref, and if they had any dependencies,
the kernel would fail to load those.  Another problem occurred when
attempting to mount a tmpfs filesystem, which would result in 'operation
not supported by device'.

13 years agoInstead of defining LLVM_MULTITHREADED as 0 or 1, define or undefine it,
Dimitry Andric [Sun, 27 Feb 2011 00:02:48 +0000 (00:02 +0000)]
Instead of defining LLVM_MULTITHREADED as 0 or 1, define or undefine it,
and test appropriately.  Otherwise it might erroneously pick up some
pthread primitives, and fail to link.

13 years agoMissed a file in r219056: add disk description for da(4).
Nathan Whitehorn [Sat, 26 Feb 2011 23:30:32 +0000 (23:30 +0000)]
Missed a file in r219056: add disk description for da(4).

13 years agoUpdate llvm's config.h files to match more closely what is generated by
Dimitry Andric [Sat, 26 Feb 2011 23:12:36 +0000 (23:12 +0000)]
Update llvm's config.h files to match more closely what is generated by
a regular autoconf-based build.  More cosmetic than functional changes.

13 years agoRemove getDriver().Dir + /../libexec and /usr/libexec from clang's
Dimitry Andric [Sat, 26 Feb 2011 23:07:43 +0000 (23:07 +0000)]
Remove getDriver().Dir + /../libexec and /usr/libexec from clang's
program paths.  Unlike gcc, clang has no executables in libexec.

13 years agoRemove misapplied space.
Dimitry Andric [Sat, 26 Feb 2011 23:05:47 +0000 (23:05 +0000)]
Remove misapplied space.

13 years agoFix breakage in sys/netinet/sctp_sysctl.c, introduced by r219057. If
Dimitry Andric [Sat, 26 Feb 2011 22:45:40 +0000 (22:45 +0000)]
Fix breakage in sys/netinet/sctp_sysctl.c, introduced by r219057.  If
SCTP_HAS_RTTC is not defined, this file fails to compile.  Insert the
necessary #ifdefs to make it work.

Pointy hat to: rrs

13 years agoVendor import of clang trunk r126547:
Dimitry Andric [Sat, 26 Feb 2011 22:09:03 +0000 (22:09 +0000)]
Vendor import of clang trunk r126547:
http://llvm.org/svn/llvm-project/cfe/trunk@126547

13 years agoWhen WITH_ICONV is set, use our in-tree iconv.
Hajimu UMEMOTO [Sat, 26 Feb 2011 18:54:54 +0000 (18:54 +0000)]
When WITH_ICONV is set, use our in-tree iconv.

13 years ago- Allocate the DMA memory shared between the host and the controller as
Marius Strobl [Sat, 26 Feb 2011 17:28:09 +0000 (17:28 +0000)]
- Allocate the DMA memory shared between the host and the controller as
  coherent.
- Update a comment to no longer reference Alpha.

13 years agoConnect uep.ko to build
Gleb Smirnoff [Sat, 26 Feb 2011 17:22:11 +0000 (17:22 +0000)]
Connect uep.ko to build

PR: kern/155044
Submitted by: Carl <k0802647 telus.net>
MFC after: 1 week

13 years agoShow disk model numbers in partition wizard screen. Also, since da(4) disks
Nathan Whitehorn [Sat, 26 Feb 2011 15:44:03 +0000 (15:44 +0000)]
Show disk model numbers in partition wizard screen. Also, since da(4) disks
are probably more likely to be USB or Firewire these days than SCSI, just
call them and anyone unknown "Disk" instead of SCSI disk.

13 years agoImprovements to CC modules:
Randall Stewart [Sat, 26 Feb 2011 15:23:46 +0000 (15:23 +0000)]
Improvements to CC modules:
1) Add four new points that allow you to get more information
   to cc algo's
2) Fix the case where user changes module on a existing TCB, in
   such a case, the initialization module needs to be called on all nets.
3) Move htcp_cc structure to a union that other modules can use.
4) Add 5th point for get/set socket options for cc_module specific options

MFC after: 2 months

13 years agoAdd the disk ident and a human-meaningful description (here, the disk model
Nathan Whitehorn [Sat, 26 Feb 2011 14:58:54 +0000 (14:58 +0000)]
Add the disk ident and a human-meaningful description (here, the disk model
string) to the geom_disk config XML so that they are easily accessible from
userland.

MFC after: 1 week

13 years agoFix typo - "is is" should have been changed to "it is" in r218965.
Rebecca Cran [Sat, 26 Feb 2011 12:50:28 +0000 (12:50 +0000)]
Fix typo - "is is" should have been changed to "it is" in r218965.

13 years agoNot only had I included a syntax / style error, nice.3 is also
Remko Lodder [Sat, 26 Feb 2011 11:20:51 +0000 (11:20 +0000)]
Not only had I included a syntax / style error, nice.3 is also
deprecated.

13 years ago- Correct USB 3.0 wire-speed to 5.0Gbps
Hans Petter Selasky [Sat, 26 Feb 2011 09:28:52 +0000 (09:28 +0000)]
- Correct USB 3.0 wire-speed to 5.0Gbps

MFC after: 3 days
Approved by: thompsa (mentor)

13 years agoSet C1 "I/O then Halt" capability bit for Intel EIST. Some broken BIOSes
Jung-uk Kim [Fri, 25 Feb 2011 23:14:24 +0000 (23:14 +0000)]
Set C1 "I/O then Halt" capability bit for Intel EIST.  Some broken BIOSes
refuse to load external SSDTs if this bit is unset for _PDC.  It seems Linux
and OpenSolaris did the same long ago.

MFC after: 1 week

13 years agoFix style(9) issues in pututxline(3).
Ed Schouten [Fri, 25 Feb 2011 23:05:35 +0000 (23:05 +0000)]
Fix style(9) issues in pututxline(3).

Also, make sure to initialize the `ret' variable properly.

Reported by: Cedric Jonas <cedric c84 eu>
Patch by: Garrett Cooper <yanegomi gmail com>

13 years agoUpdate manual page to reflect latest changes of ABI description support.
Dmitry Chagin [Fri, 25 Feb 2011 22:14:12 +0000 (22:14 +0000)]
Update manual page to reflect latest changes of ABI description support.

MFC after: 1 Month.