]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
10 years agoMFC r246711:
pluknet [Wed, 15 May 2013 21:05:25 +0000 (21:05 +0000)]
MFC r246711:

o Bring in sync decoding the first nfssvc(2) parameter (flags) with
the current definitions location.
o Respect numbers in NFSSVC_* (e.g. NFSSVC_V4ROOTEXPORT).

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

10 years agoMFC r250393:
dim [Wed, 15 May 2013 20:59:00 +0000 (20:59 +0000)]
MFC r250393:

When gcc 4.2.0 was imported, the 3DNow intrinsics header <mm3dnow.h> was
not added to the list of intrinsics headers to install, so belatedly (5
years :) add it.

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

10 years agoMFC r242995: firmware(9) mdoc cleanup.
pluknet [Wed, 15 May 2013 19:52:37 +0000 (19:52 +0000)]
MFC r242995: firmware(9) mdoc cleanup.
  - Lowercase a cross reference to make.
  - Sort SEE ALSO cross references.

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

10 years agoMFC r242992: Avoid an ambiguous reference to mtx_lock(9).
pluknet [Wed, 15 May 2013 19:38:49 +0000 (19:38 +0000)]
MFC r242992: Avoid an ambiguous reference to mtx_lock(9).

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

10 years agoMFC r248993:
yongari [Wed, 15 May 2013 01:22:55 +0000 (01:22 +0000)]
MFC r248993:
  Fix a typo.

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

10 years agoMFC r248542:
yongari [Wed, 15 May 2013 01:17:59 +0000 (01:17 +0000)]
MFC r248542:
  For RTL8211B or later PHYs, enable crossover detection and
  auto-correction. This change makes re(4) establish a link with
  a system using non-crossover UTP cable.

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

10 years agoMFC r248456:
yongari [Wed, 15 May 2013 01:06:24 +0000 (01:06 +0000)]
MFC r248456:
  r119712 introduced SIS_TYPE_83816 but it was not actually set in
  driver such that checking against the type was always false.
  To detect NS DP83816, driver should have checked silicon revision
  register for NS controllers. While here, remove SIS_TYPE_83816 to
  not make the similar mistake again.

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

10 years agoMFC r248227:
yongari [Wed, 15 May 2013 01:00:40 +0000 (01:00 +0000)]
MFC r248227:
  Disable TX IP header checksum offloading on RL_HWREV_8168CP. The
  controller generates wrong checksummed frame if the IP packet has
  IP options.

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

11 years agoMFC r249200: Correct the path.
jh [Mon, 13 May 2013 14:00:24 +0000 (14:00 +0000)]
MFC r249200: Correct the path.

PR: 176256

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

11 years agoMFC r249949:
eadler [Mon, 13 May 2013 01:28:09 +0000 (01:28 +0000)]
MFC r249949:
Take some improvements from DragonFlyBSD:
- add const where appropriate
- add static where appropriate
- fix a whitespace issues

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

11 years agoMFC r250463:
eadler [Mon, 13 May 2013 01:20:36 +0000 (01:20 +0000)]
MFC r250463:
Permit relative paths with mergemaster -m

PR: bin/173929

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

11 years agoMFC r249796, r249830, r249844 and r249845:
hselasky [Sun, 12 May 2013 12:30:42 +0000 (12:30 +0000)]
MFC r249796, r249830, r249844 and r249845:
USB audio fixes and improvements.
- Fix runtime switching of sample rate
- Fix feedback endpoint algorithm

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

11 years agoMFC r249795:
hselasky [Sun, 12 May 2013 12:24:29 +0000 (12:24 +0000)]
MFC r249795:
Add convenience wrapper functions to run callbacks in the context of the
USB explore thread.

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

11 years agoTidy up some CVS workarounds.
peter [Sun, 12 May 2013 01:53:47 +0000 (01:53 +0000)]
Tidy up some CVS workarounds.

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

11 years agoMFC r250012:
eadler [Sun, 12 May 2013 01:38:01 +0000 (01:38 +0000)]
MFC r250012:
Add an alternate version of beastie to the examples directory.

PR: docs/38556

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

11 years agoMFC r250392:
dim [Sat, 11 May 2013 16:44:36 +0000 (16:44 +0000)]
MFC r250392:

For some reason, the gcc intrinsics header tmmintrin.h was imported with
two copies of itself pasted together.  Remove the extraneous copy.

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

11 years agoMFC r249352:
mav [Sat, 11 May 2013 08:15:56 +0000 (08:15 +0000)]
MFC r249352:
Do not sent 120 TEST UNIT READY requests on generic NOT READY statuses.

Some failing disks tend to return vendor-specific ASC/ASCQ codes with
NOT READY sense key.  It caused extremely long recovery attempts, repeating
these 120 TURs (it takes at least 1 minute) for every I/O request.
Instead of that use default error handling, doing just few retries.

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

11 years agoMFC r250185:
mav [Sat, 11 May 2013 08:11:55 +0000 (08:11 +0000)]
MFC r250185:
Add IDs for HighPoint RocketRAID 640L/642L/644L -- new series of 4-port
6Gbps PCIe 2.0 x2 SATA controllers, based on Marvell 88SE9235 chips.

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

11 years agoMFC r244123 Add CTLFLAG_RWTUN define
smh [Sat, 11 May 2013 02:48:40 +0000 (02:48 +0000)]
MFC r244123 Add CTLFLAG_RWTUN define
MFC r247367 Fix non-recusive mutex MFI I/O lock
MFC r247369 Fix a large amount of bugs in MFI that cause panics

Approved by: pjd (mentor)

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

11 years agoFix the build: 'valid' is no longer used.
markj [Sat, 11 May 2013 00:05:05 +0000 (00:05 +0000)]
Fix the build: 'valid' is no longer used.

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

11 years agoMFC r249257:
markj [Fri, 10 May 2013 21:11:18 +0000 (21:11 +0000)]
MFC r249257:
  Add support for getting and setting BBU properties related to battery
  relearning. Specifically, add subcommands to mfiutil(8) which allow the
  user to set the BBU and autolearn modes when the firmware supports it,
  and add a subcommand which kicks off a battery relearn.

MFC r249258:
  Switch to a 2-clause license.

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

11 years agoMFC r248851:
markj [Fri, 10 May 2013 20:57:22 +0000 (20:57 +0000)]
MFC r248851:
  Ignore interface renames instead of removing the interface from the bridge
  group.

Approved by: emaste

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

11 years agoMFC r248776:
markj [Fri, 10 May 2013 20:56:07 +0000 (20:56 +0000)]
MFC r248776:
  Fix interval-based rotations when the -t flag is used. In this case, find
  the most-recently archived logfile and use its mtime to determine whether
  or not to rotate, as in the non-timestamped case.

  Previously we would just try to use the mtime of <logfile>.0, which always
  results in a rotation since it generally doesn't exist in the -t case.

Approved by: emaste

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

11 years agoMFC r249815
sbruno [Wed, 8 May 2013 15:48:36 +0000 (15:48 +0000)]
MFC r249815

Return a lun count of 1 and a lun id of 0 when CAM attempts a REPORT_LUNS
command on a disk device.  This quieseces some noise on the console that
recently appeared.

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

11 years agoMFC r249811:
kib [Tue, 7 May 2013 09:48:42 +0000 (09:48 +0000)]
MFC r249811:
Literally follow POSIX:
If the bs= expr operand is specified and no conversions other than sync,
noerror, or notrunc are requested, the data returned from each input
block shall be written as a separate output block.

PR: standards/177742

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

11 years agoMFC: r210877 (partial)
jkim [Mon, 6 May 2013 21:13:22 +0000 (21:13 +0000)]
MFC: r210877 (partial)

Decrease emulated stack size from 64K to 4K bytes.

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

11 years agoMFC r215137:
dim [Mon, 6 May 2013 19:59:13 +0000 (19:59 +0000)]
MFC r215137:

  Revert r103230, which depended on ld preserving the __start_xxx and
  __stop_xxx symbols for custom sections, even when these were not
  referenced (at link time).  This behaviour was changed again in binutils
  commit 0b8ed435c3fe8bd09a08c23920e65bfb03251221.

  This time, put the __GLOBL macro definition in cdefs.h, so it can be
  reused in a few other places where it will be needed.

  Reviewed by: kib

MFC r215138:

  Use the same treatment as in linker_set.h for the __start and __stop
  symbols of the set_vnet and set_pcpu sections, so those symbols will
  always be emitted in kernel modules, if they use vnet.h or pcpu.h.

  Also, for pcpu.h, make the __(start|stop)_set_pcpu declarations, and
  associated macros invisible to userland, to prevent it picking up these
  symbols.

  Reviewed by: kib

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

11 years agoMFC r248933:
mdf [Sat, 4 May 2013 18:49:04 +0000 (18:49 +0000)]
MFC r248933:

Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation.

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

11 years agoMFC r249489,249555
bdrewery [Thu, 2 May 2013 21:51:57 +0000 (21:51 +0000)]
MFC r249489,249555

  Run configtest before restarting so that the system is not
  left without a running sshd.

  Also call configtest before reload to ensure working config.

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

11 years agoMFC r250075:
kib [Thu, 2 May 2013 04:23:57 +0000 (04:23 +0000)]
MFC r250075:
Properly terminate the result string for intermediate results.

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

11 years agoMFC r249846:
dim [Wed, 1 May 2013 18:06:53 +0000 (18:06 +0000)]
MFC r249846:

When rebooting (exiting) from the BTX loader, make sure to restore the
GDT from the correct segment, otherwise a triple fault would be caused.
In some virtual environments (VMware, VirtualBox, etc) this could lead
to a unhandled error or hang in the guest emulation software.

Thanks to avg and jhb for a few hints in the right direction.

Noticed by: Jeremy Chadwick <jdc@koitsu.org> (and many others)

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

11 years agoMFC r245783:
lstewart [Wed, 1 May 2013 08:57:45 +0000 (08:57 +0000)]
MFC r245783:

Simplify and fix a bug in cc_ack_received()'s "are we congestion window limited"
logic (refer to [1] for associated discussion). snd_cwnd and snd_wnd are
unsigned long and on 64 bit hosts, min() will truncate them to 32 bits and could
therefore potentially corrupt the result (although under normal operation,
neither variable should legitmately exceed 32 bits).

[1] http://lists.freebsd.org/pipermail/freebsd-net/2013-January/034297.html

Submitted by: jhb

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

11 years agoMFC r249996:
eadler [Tue, 30 Apr 2013 00:49:30 +0000 (00:49 +0000)]
MFC r249996:
Add missing static qualifiers

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

11 years agoMFC r243314:
pluknet [Mon, 29 Apr 2013 21:33:36 +0000 (21:33 +0000)]
MFC r243314:
 Zero the whole struct not just the size of a pointer.

MFC r246670:
 Major update for unix_cmsg.

PR: bin/131567
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>

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

11 years agoMFC r246826:
pluknet [Mon, 29 Apr 2013 21:12:18 +0000 (21:12 +0000)]
MFC r246826:
 Add support of passing SCM_BINTIME ancillary data object for PF_LOCAL
 sockets.

PR: kern/175883
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>

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

11 years agoFix a bug that allows NFS clients to issue READDIR on files.
des [Mon, 29 Apr 2013 21:10:49 +0000 (21:10 +0000)]
Fix a bug that allows NFS clients to issue READDIR on files.

(files missing from previous commit)

PR: kern/178016
Security: CVE-2013-3266
Security: FreeBSD-SA-13:05.nfsserver
Approved by: so

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

11 years agoMFC: r248777
jkim [Mon, 29 Apr 2013 21:05:12 +0000 (21:05 +0000)]
MFC: r248777

Loosen restrictions for quoted strings.  Now we can use more complex strings
and "escaped" quote characters.

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

11 years agoMFC r248253:
pluknet [Mon, 29 Apr 2013 20:31:25 +0000 (20:31 +0000)]
MFC r248253:
 Add missed `_load' to the `if_foo_load="YES"' line.

PR: docs/176915
Submitted by: Dmitry Afanasiev <KOT@MATPOCKuH.Ru>

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

11 years agoFix a bug that allows NFS clients to issue READDIR on files.
des [Mon, 29 Apr 2013 20:15:43 +0000 (20:15 +0000)]
Fix a bug that allows NFS clients to issue READDIR on files.

PR: kern/178016
Security: CVE-2013-3266
Security: FreeBSD-SA-13:05.nfsserver
Approved by: so

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

11 years agoMFC r249525:
kib [Mon, 29 Apr 2013 17:29:48 +0000 (17:29 +0000)]
MFC r249525:
Rewrite origin_subst_one() to get rid of the wrong limit on the length
of the resulting string.

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

11 years agoFix build.
pluknet [Mon, 29 Apr 2013 11:36:22 +0000 (11:36 +0000)]
Fix build.
- pass a format string to printf
- catch up with constifying uz_name

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

11 years agoMFC r249471: libc: Fix typo in French translation.
jilles [Fri, 26 Apr 2013 16:11:07 +0000 (16:11 +0000)]
MFC r249471: libc: Fix typo in French translation.

PR: kern/177704
Submitted by: martymac

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

11 years agoMFC remainder of r249802 (eadler) to fix build:
gjb [Fri, 26 Apr 2013 11:58:46 +0000 (11:58 +0000)]
MFC remainder of r249802 (eadler) to fix build:

- sl_find does not modify 'name'
- make the prototype of sl_find match NetBSD

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

11 years agoMFC r249802:
eadler [Fri, 26 Apr 2013 00:47:28 +0000 (00:47 +0000)]
MFC r249802:
- sl_find does not modify 'name'
- make the prototype of sl_find match NetBSD

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

11 years agoMFC r249801:
eadler [Fri, 26 Apr 2013 00:45:03 +0000 (00:45 +0000)]
MFC r249801:
Switch from K&R prototypes to modern C

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

11 years agoMFC r249349
sbruno [Thu, 25 Apr 2013 17:04:48 +0000 (17:04 +0000)]
MFC r249349

Repair camcontrol output and use CAM defined values for string sizes

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

11 years agoMFC of PR r249848.
rrs [Thu, 25 Apr 2013 11:24:40 +0000 (11:24 +0000)]
MFC of PR r249848.

PR: 174749, 157796

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

11 years agoRecord sendmail 8.14.7 upgrade
gshapiro [Thu, 25 Apr 2013 02:25:42 +0000 (02:25 +0000)]
Record sendmail 8.14.7 upgrade

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

11 years agoUpdate perl version to that included on install medium.
gjb [Thu, 25 Apr 2013 02:18:57 +0000 (02:18 +0000)]
Update perl version to that included on install medium.
This is a direct commit to stable/8 with no intent to MFC/MFS.

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

11 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Thu, 25 Apr 2013 02:16:29 +0000 (02:16 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.7/cf tree.

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

11 years agoMFC: Update for sendmail 8.14.7
gshapiro [Thu, 25 Apr 2013 02:15:34 +0000 (02:15 +0000)]
MFC: Update for sendmail 8.14.7

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

11 years agoMFC: Merge sendmail 8.14.7
gshapiro [Thu, 25 Apr 2013 02:14:36 +0000 (02:14 +0000)]
MFC: Merge sendmail 8.14.7

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

11 years agoMFC r227101:
eadler [Wed, 24 Apr 2013 12:47:41 +0000 (12:47 +0000)]
MFC r227101:
Add static keywords to variables and functions where possible in games/.

This allows us to detect unused functions and variables and allows the
compiler to do a better job at optimisation.

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

11 years agoMFC r249281: Add FreeBSD 8.4.
pluknet [Wed, 24 Apr 2013 10:20:21 +0000 (10:20 +0000)]
MFC r249281: Add FreeBSD 8.4.

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

11 years agoMerge unmerged commits to fortune(1)
eadler [Wed, 24 Apr 2013 04:21:23 +0000 (04:21 +0000)]
Merge unmerged commits to fortune(1)

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

11 years agoMFC r249398:
ae [Mon, 22 Apr 2013 06:47:27 +0000 (06:47 +0000)]
MFC r249398:
  Free memory after deleting an address policy entry.

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

11 years agoMerge of current from 249692, tzdata2013c:
edwin [Sat, 20 Apr 2013 11:46:01 +0000 (11:46 +0000)]
Merge of current from 249692, tzdata2013c:

- antarctica: AusAQ and ATAQ have been removed.
- Antarctica/Macquarie has been moved to australasia file and AU.
- Asia/Hebron, Palestine updated for 2013.
- Paraguay stays with DST for the whole year.

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

11 years agoMFC r249170
sbruno [Fri, 19 Apr 2013 18:37:49 +0000 (18:37 +0000)]
MFC r249170

Notify CAM on state* change to a logical volume not status.  This resolves
the issues reported regarding camcontrol devlist not showing the rebuild
states of volumes unless an explicit camcontrol rescan was executed.

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

11 years agoMFC r248493:
mm [Fri, 19 Apr 2013 10:48:38 +0000 (10:48 +0000)]
MFC r248493:
Plug memory leak in dsl_check_snap_cb()
This was unnoticed because the function is very rarely used.

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

11 years agoMFC r240870 (pjd):
mm [Fri, 19 Apr 2013 10:35:45 +0000 (10:35 +0000)]
MFC r240870 (pjd):
It is possible to recursively destroy snapshots even if the snapshot
doesn't exist on a dataset we are starting from. For example if we
have the following configuration:

tank
tank/foo
tank/foo@snap
tank/bar
tank/bar@snap

We can execute:

# zfs destroy -t tank@snap

eventhough tank@snap doesn't exit.

Unfortunately it is not possible to do the same with recursive rename:

# zfs rename -r tank@snap tank@pans
cannot open 'tank@snap': dataset does not exist

...until now. This change allows to recursively rename snapshots even if
snapshot doesn't exist on the starting dataset.

Sponsored by: rsync.net

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

11 years agoMFC of 249064:
mckusick [Thu, 18 Apr 2013 00:14:51 +0000 (00:14 +0000)]
MFC of 249064:

The code in clear_remove() and clear_inodedeps() skips one entry
in the pagedep and inodedep hash tables. An entry in the table is
skipped because 'pagedep_hash' and 'inodedep_hash' hold the size
of the hash tables - 1.

The chance that this would have any operational failure is extremely
unlikely. These funtions only need to find a single entry and are
only called when there are too many entries. The chance that they
would fail because all the entries are on the single skipped hash
chain are remote.

Submitted by: Pedro Martelletto
Reviewed by:  kib

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

11 years agoMFC r247910:
danfe [Wed, 17 Apr 2013 05:56:59 +0000 (05:56 +0000)]
MFC r247910:

  Plug a memory leak.

  Reviewed by: mav
  Sponsored by: Nginx, Inc.

Approved by: glebius

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

11 years agoMFC r249449:
dim [Tue, 16 Apr 2013 17:50:20 +0000 (17:50 +0000)]
MFC r249449:

Fix undefined behaviour in several gpio_pin_setflags() routines (under
sys/arm and sys/mips), squelching the clang 3.3 warnings about this.

Noticed by: tinderbox and many irate spectators
Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
PR: kern/177759

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

11 years agoMFC r249316:
dim [Tue, 16 Apr 2013 06:52:32 +0000 (06:52 +0000)]
MFC r249316:

Ensure make -j N universe works correctly, by checking for an up-to-date
make before starting the universe targets themselves.  Otherwise, all of
the targets would attempt to build make simultaneously, overwriting each
other's copies of the make object files and executable.  This could lead
to strange errors, for example when partially-written make executables
are invoked.

Also amend r216620, to make the rest of universe wait properly until the
upgrade_checks target is finished, by adding universe_${target}_prologue
to the .ORDER target.  Otherwise, make will be too smart for its own
good, and start building the universe targets simultaneously with the
prologues anyway.

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

11 years agoMFC r249439:
kib [Tue, 16 Apr 2013 06:21:57 +0000 (06:21 +0000)]
MFC r249439:
Fix the name of the pcb member in the comments.

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

11 years agoMFC r249397:
delphij [Mon, 15 Apr 2013 05:01:12 +0000 (05:01 +0000)]
MFC r249397:

Fix a few typos.

Reviewed by: gjb

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

11 years agoFreeBSD 8.0 introduced inpcb reference counting, and FreeBSD 8.1 began using
rwatson [Sun, 14 Apr 2013 16:25:37 +0000 (16:25 +0000)]
FreeBSD 8.0 introduced inpcb reference counting, and FreeBSD 8.1 began using
that reference count to protect inpcb stability in udp_pcblist() and other
monitoring functions, preventing the inpcb from being garbage collected
across potentially sleeping copyout() operations despite the inpcb zone
becoming shrinkable.

However, this introduced a race condition in which inp->inp_socket() might
become NULL as a result of the socket being freed, but before the inpcb we
removed from the global list of connections, allowing it to be exposed to a
third thread invoking udp_input() or udp6_input() which would try to
indirect through inp_socket without testing it for NULL.  This might occur
with particular regularity on systems that frequently run netstat, or which
use SNMP for connection monitoring.

Later FreeBSD releases use a different reference/destruction model, but
stable/8 remained affected in FreeBSD 8.2 and 8.3; the problem could be
spotted on very high-load UDP services, such as top-level name servers.

An Errata Note for 8.x branches under continuing support might be
appropriate.  Regardless, this fix should be merged to releng/8.4 prior to
8.4-RELEASE.

PR: 172963
Submitted by: Vincent Miller <vmiller@verisign.com>
Submitted by: Julien Charbon <jcharbon@verisign.com>
Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com>

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

11 years agoMFH (r247285): always bootstrap liby along with yacc.
des [Sun, 14 Apr 2013 11:51:25 +0000 (11:51 +0000)]
MFH (r247285): always bootstrap liby along with yacc.

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

11 years agoMFC r219937, r220094, r221383, r222307, r222817, r222994, r223545, r223638, r225846...
eadler [Sat, 13 Apr 2013 22:30:02 +0000 (22:30 +0000)]
MFC r219937, r220094, r221383, r222307, r222817, r222994, r223545, r223638, r225846, r225853, r225854, r226121, r226320, r226351, r228991, r229164, r230876, r231274, r231516, r232105, r232353, r234221, r234320, r234446, r234600, r236392, r236733, r238058, r238976, r239498, r240362, r240548, r242549, r242849, r242900, r245447, r247752, r249113

Merge all outstanding calendar commits.

Discussed with: gjb, des

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

11 years agoMFC r243520, r243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management
smh [Fri, 12 Apr 2013 19:36:53 +0000 (19:36 +0000)]
MFC r243520, r243521: zfs: overhaul zfs-vfs glue for vnode life-cycle management

Reviewed by: avg
Approved by: avg (co-mentor)

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

11 years agoMFC r241628: zfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget
smh [Fri, 12 Apr 2013 14:23:21 +0000 (14:23 +0000)]
MFC r241628: zfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget

Reviewed by: avg
Approved by: avg (co-mentor)

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

11 years agoMFC r245525:
bz [Thu, 11 Apr 2013 22:08:59 +0000 (22:08 +0000)]
MFC r245525:

  Add a conditional sleep 1 in case we add any IPv6 addresses to interfaces.
  Do this per jail started, not per address.  This will allow DAD to complete
  and services to properly start.   Before we have seen problems with services
  trying to start before the IPv6 address was available to use and thus
  erroring and failing to start.

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

11 years agoMFC r248800:
mav [Wed, 10 Apr 2013 17:51:15 +0000 (17:51 +0000)]
MFC r248800:
On SIM destruction free associated CCBs, preallocated inside xpt_get_ccb().
Before this change they were just leaked.  Fortunately USB sticks now use
only one CCB, and so leak was only 2KB per detach, while other bigger SIMs
with much more allocated CCBs are rarely detached.

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

11 years agoMFC r241556:
smh [Tue, 9 Apr 2013 15:35:26 +0000 (15:35 +0000)]
MFC r241556:
Add a KPI to allow to reserve some amount of space in the numvnodes
counter, without actually allocating the vnodes.

For KBI stability, the td_vp_reserv was moved to the end of struct thread.

Reviewed by: avg
Approved by: avg (co-mentor)

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

11 years agoMFC r248627:
delphij [Mon, 8 Apr 2013 23:06:25 +0000 (23:06 +0000)]
MFC r248627:

Don't attempt to reference sc before testing whether it's NULL.

Submitted by: Sascha Wildner
Obtained from: DragonFly

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

11 years agoMFC r247596:
delphij [Mon, 8 Apr 2013 23:01:33 +0000 (23:01 +0000)]
MFC r247596:

Fix assignment of maximum bounadary.

Submitted by: Sascha Wildner <saw online de>
Obtained from: DragonFly rev fd39c81ba220f7ad6e4dc9b30d45e828cf58a1ad

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

11 years agoMFC r247595:
delphij [Mon, 8 Apr 2013 22:56:40 +0000 (22:56 +0000)]
MFC r247595:

Fix wrong assignment.

Submitted by: Sascha Wildner <saw online de>
Obtained from: DragonFly rev 9568dd07a22a136e380e6c19a8ea188eb92976d5

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

11 years agoMFC: r247859
jkim [Mon, 8 Apr 2013 22:32:37 +0000 (22:32 +0000)]
MFC: r247859

Update the manual page to reflect reality.  With r138509 and r152355,
"nostrictjoliet" option for mount_cd9660(8) was completely replaced with
"brokenjoliet" somehow.

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

11 years agoMFC: r248799
jkim [Mon, 8 Apr 2013 20:45:11 +0000 (20:45 +0000)]
MFC: r248799

Limit the amount of video memory we map for the driver to the maximum value.

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

11 years agoMFC r248707:
trociny [Mon, 8 Apr 2013 19:50:15 +0000 (19:50 +0000)]
MFC r248707:

hrStorageSize and hrStorageUsed are 32 bit integers, reporting a fs
size and usage in hrStorageAllocationUnits. If the file system has
more than 2^31 allocations it can not be shown correctly and the
meters are useless.

In such cases follow net-snmp behaviour and increase
hrStorageAllocationUnits so the values fit under INT_MAX.

PR: bin/177183
Submitted by: Eugene Grosbein egrosbein rdtc.ru

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

11 years agoMFC r248969:
kib [Mon, 8 Apr 2013 08:33:31 +0000 (08:33 +0000)]
MFC r248969:
Do not call the VOP_LOOKUP() for the doomed directory vnode.

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

11 years agoMFC r246922 (pjd):
trociny [Sun, 7 Apr 2013 17:06:26 +0000 (17:06 +0000)]
MFC r246922 (pjd):

- Add support for 'memsync' mode. This is the fastest replication mode that's
  why it will now be the default.
- Bump protocol version to 2 and add backward compatibility for version 1.
- Allow to specify hosts by kern.hostid as well (in addition to hostname and
  kern.hostuuid) in configuration file.

Sponsored by: Panzura

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

11 years agoFurther improve previous revision:
delphij [Thu, 4 Apr 2013 23:14:14 +0000 (23:14 +0000)]
Further improve previous revision:

 - enable_all_pool_feat will be unset if version is specified.  Use it as
   a flag instead of testing the props nvlist;
 - Allow user to use -d -o feature@...=enable to create a v5000 pool when
   desired.  Without this, the implicit -o version=28 would make the utility
   to complain about feature@ and version being conflict, which is confusing.

Reviewed by: Matthew Ahrens

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

11 years agoMFC r244704, r244714 and r244715:
rakuco [Thu, 4 Apr 2013 19:31:19 +0000 (19:31 +0000)]
MFC r244704, r244714 and r244715:
Add vendor IDs for Broadcom USB dongles (BCM20702).

PR: kern/174707
Approved by: glebius

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

11 years agoPer Matthew Ahrens, version 5000 should not be exposed to user and there is
delphij [Thu, 4 Apr 2013 17:10:36 +0000 (17:10 +0000)]
Per Matthew Ahrens, version 5000 should not be exposed to user and there is
a problem with my first revision, namely, specifying -d -o feature@...=enable
will still bail out with:

    'feature@' and 'version' properties cannot be specified together.

Because zpool create -o version=5000 will not likely be supported by other
ZFS implementations (including ours on -CURRENT and 9-STABLE), remove the
hack that make that work.  Users who want feature flags support can still
do an explicit 'zpool upgrade' after creating a pool.

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

11 years agoMFC r248968:
kib [Thu, 4 Apr 2013 05:16:14 +0000 (05:16 +0000)]
MFC r248968:
Record the correct error in the trace.

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

11 years agoThe current ZFS version in 8-STABLE supports feature flags, which
delphij [Wed, 3 Apr 2013 21:15:21 +0000 (21:15 +0000)]
The current ZFS version in 8-STABLE supports feature flags, which
enables many new features but makes it impossible to import pools
created on earlier released FreeBSD 9.x releases, including 9.0
and 9.1-RELEASE, where the feature flags are not yet supported
because they predates the merge (r243674), and 9.2-RELEASE will
not be released before 8.4-RELEASE.

To avoid surprises when users "upgrade" to 9.1-RELEASE, limit the
creation version to 28 by default on stable/8.  The user will still
be able to upgrade the pool by using "zpool upgrade" or at create
time by explicitly specifying "zpool create -o version=5000".

This is a direct commit to stable/8 because it's not applicable to
-HEAD, and can be reverted once 9.2-RELEASE is released.

Requested by: re (jpaetzel, hrs)
Reviewed by: mm

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

11 years agoMFC r248802:
dim [Wed, 3 Apr 2013 16:26:58 +0000 (16:26 +0000)]
MFC r248802:

Similar to r239870 and r239872, teach the other binutils tools about the
DW_FORM_flag_present dwarf attribute, so they do not print errors or
warnings on files that contain it.  (This attribute can be emitted by
newer versions of clang and gcc.)

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

11 years agoMFC r248563:
kib [Wed, 3 Apr 2013 16:02:01 +0000 (16:02 +0000)]
MFC r248563:
Increment the write ref counter for the buffer object before calling
bundirty().

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

11 years agoMFC r248562:
kib [Wed, 3 Apr 2013 15:57:18 +0000 (15:57 +0000)]
MFC r248562:
Move the vn_start_write() call in the dounmount() before setting the
MNTK_UNMOUNT flag.

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

11 years agoOops, r240972 (Add DEBUG kernel distribution) forgot to make said distribution
dteske [Tue, 2 Apr 2013 14:10:22 +0000 (14:10 +0000)]
Oops, r240972 (Add DEBUG kernel distribution) forgot to make said distribution
optional (such as the long-standing "local" distribution; also optional). This
fixes a regression in the install process when the user selects "All" as the
distribution-set.

This is a direct commit to stable/8.

PR: bin/177309
Reviewed by: eadler

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

11 years agofix r248946: there is no pmap_page_is_write_mapped in stable/8
avg [Sun, 31 Mar 2013 20:40:06 +0000 (20:40 +0000)]
fix r248946: there is no pmap_page_is_write_mapped in stable/8

This is a direct commit.

Pointyhat to: avg

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

11 years agoMFC r242845 (delphij):
mm [Sun, 31 Mar 2013 19:03:25 +0000 (19:03 +0000)]
MFC r242845 (delphij):
  Illumos r13840:97fd5cdf328a:
    3145 single-copy arc
    3212 ztest: race condition between vdev_online() and spa_vdev_remove()

  Illumos r13849:3468a95b27cd:
    3258 ztest's use of file descriptors is unstable

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

11 years agoMFC r247592 (delphij):
mm [Sun, 31 Mar 2013 18:56:00 +0000 (18:56 +0000)]
MFC r247592 (delphij):
  Import a fix tighten assertion on SPA versions from vendor (Illumos).

  Illumos ZFS issue:
    3543 Feature flags causes assertion in spa.c to miss certain cases

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

11 years agoMFC r248267:
mm [Sun, 31 Mar 2013 18:39:11 +0000 (18:39 +0000)]
MFC r248267:
  Import minor ZFS changes from vendor

  Illumos ZFS issues:
  3604 zdb should print bpobjs more verbosely (fix zdb hang)
  3606 zpool status -x shouldn't warn about old on-disk format

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

11 years agoMFC r247852:
mm [Sun, 31 Mar 2013 18:31:58 +0000 (18:31 +0000)]
MFC r247852:
  Import ZFS bpobj bugfix from vendor.

  Illumos ZFS issues:
  3603 panic from bpobj_enqueue_subobj()
  3604 zdb should print bpobjs more verbosely

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

11 years agoMFC r248642: fbt_getargdesc: correctly handle types for return probes
avg [Sun, 31 Mar 2013 14:10:49 +0000 (14:10 +0000)]
MFC r248642: fbt_getargdesc: correctly handle types for return probes

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

11 years agoMFC r248640: fbt_typoff_init: fix an off by one in determining required
avg [Sun, 31 Mar 2013 14:02:43 +0000 (14:02 +0000)]
MFC r248640: fbt_typoff_init: fix an off by one in determining required
memory size

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

11 years agoMFC r246293: zfs: fix, improve and re-organize page_lookup and page_unlock
avg [Sun, 31 Mar 2013 13:56:13 +0000 (13:56 +0000)]
MFC r246293: zfs: fix, improve and re-organize page_lookup and page_unlock

Please note that because of the significant VM API differences between HEAD
and stable/8 this commit has some additional changes.

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

11 years agoMFC r247842.
melifaro [Sun, 31 Mar 2013 10:20:29 +0000 (10:20 +0000)]
MFC r247842.

Write lock is not required for find&compare operation.

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