]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC r230437: sh: Remove "kill" example function, which is superseded by the
jilles [Sat, 11 Feb 2012 20:44:16 +0000 (20:44 +0000)]
MFC r230437: sh: Remove "kill" example function, which is superseded by the
kill builtin.

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

12 years agoMFC r231001: sh: Fix swapped INTON/INTOFF.
jilles [Sat, 11 Feb 2012 20:08:46 +0000 (20:08 +0000)]
MFC r231001: sh: Fix swapped INTON/INTOFF.

A possible consequence of this bug was a memory leak if SIGINT arrived
during a 'set' command (listing variables).

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

12 years agoMFC: r231168
pfg [Sat, 11 Feb 2012 20:01:03 +0000 (20:01 +0000)]
MFC: r231168

Update the data structures with some fields reserved for
ext4 but that can be used in ext3 mode.

Also adjust the internal inode to carry the birthtime,
like in UFS, which is starting to get some use when
big inodes are available.

This is a prerequisite for new features that will be
coming in the future.

Approved by: jhb (mentor)

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

12 years agoMFC: r230635
pfg [Sat, 11 Feb 2012 19:41:56 +0000 (19:41 +0000)]
MFC: r230635

Set SVN text/plain property for some shell scripts that
happen to have a .exe extension.

While here fix the shebang of a shell script that
was looking for /bin/bash.

Reviewed by: gnn
Approved by: jhb (mentor)

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

12 years agoMFC r230157: dadump: don't leak the periph lock on i/o error
avg [Sat, 11 Feb 2012 14:55:05 +0000 (14:55 +0000)]
MFC r230157: dadump: don't leak the periph lock on i/o error

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

12 years agoMFC 231170
ken [Fri, 10 Feb 2012 18:14:25 +0000 (18:14 +0000)]
MFC 231170

Update the mps(4) man page for the changes in the new LSI-supported driver.

This should have been included in change 230592.

The supported hardware section still needs some updating to reflect
the current reality.

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

12 years agoMFC r230403.
brooks [Fri, 10 Feb 2012 15:54:17 +0000 (15:54 +0000)]
MFC r230403.

When creating the jails /dev/log symlink, do it by full path to avoid
creating stray "log" symlinks if the mount fails.  That apparently
happens in some ezjail configs.

PR: conf/143084
Submitted by: Dirk Engling <erdgeist at erdgeist.org>

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

12 years agoMFC r231144:
mm [Fri, 10 Feb 2012 13:35:49 +0000 (13:35 +0000)]
MFC r231144:
Merge illumos revision 13594:

uninitialized variables in zfs(8) may make snapshots undestroyable [1]

References:
https://www.illumos.org/issues/2067 [1]

Obtained from: illumos (issue #2067)
PR: bin/164802

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

12 years agoMFC r228191:
dougb [Fri, 10 Feb 2012 10:22:42 +0000 (10:22 +0000)]
MFC r228191:

Ensure kldxref is run first.

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

12 years agoPull up mergeinfo from r226345,226464,226879 to etc/ where it belongs
dougb [Fri, 10 Feb 2012 09:46:30 +0000 (09:46 +0000)]
Pull up mergeinfo from r226345,226464,226879 to etc/ where it belongs

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

12 years agoMFC r230861:
ae [Fri, 10 Feb 2012 06:38:03 +0000 (06:38 +0000)]
MFC r230861:
  The scheme code may not know about some inconsistency in the metadata.
  So, add an integrity check after recovery attempt.

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

12 years agoMFC r228061:
ae [Fri, 10 Feb 2012 06:34:21 +0000 (06:34 +0000)]
MFC r228061:
  The size of APM could be bigger than number of already allocated entries.
  And the first usable sector should not start from the inside of APM area.

MFC r228076:
  Add an ability to increase number of allocated APM entries when we
  have reserved free space in the APM area.
  Also instead of one write request per each APM entry, use MAXPHYS
  sized writes when we are updating APM.

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

12 years agoMFC r231111, r231331
eadler [Fri, 10 Feb 2012 04:08:22 +0000 (04:08 +0000)]
MFC r231111, r231331

PR: 159551
Approved by: gjb

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

12 years agoMFC: r230605
rmacklem [Fri, 10 Feb 2012 03:32:29 +0000 (03:32 +0000)]
MFC: r230605
A problem with respect to data read through the buffer cache for both
NFS clients was reported to freebsd-fs@ under the subject "NFS
corruption in recent HEAD" on Nov. 26, 2011. This problem occurred when
a TCP mounted root fs was changed to using UDP. I believe that this
problem was caused by the change in mnt_stat.f_iosize that occurred
because rsize was decreased to the maximum supported by UDP. This
patch fixes the problem by using v_bufobj.bo_bsize instead of f_iosize,
since the latter is set to f_iosize when the vnode is allocated, but
does not change for a given vnode when f_iosize changes.

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

12 years agoMFC r230510:
bz [Fri, 10 Feb 2012 00:51:23 +0000 (00:51 +0000)]
MFC r230510:

 Replace random ARIN direct assignment legacy IPs with proper RFC 5735
 TEST-NET1 block for use in documentation and example code addresses.

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

12 years agoMFC r230506:
bz [Fri, 10 Feb 2012 00:24:39 +0000 (00:24 +0000)]
MFC r230506:

 Plug a possible ifa_ref leak in case of premature return from in6_purgeaddr().

 Reviewed by: rwatson

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

12 years agoMFC r228344:
eadler [Fri, 10 Feb 2012 00:08:53 +0000 (00:08 +0000)]
MFC r228344:
 - Add support for Support SEAGATE DAT Scopion 130

PR: kern/141934
Approved by: cperciva

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

12 years agoMFC r230494:
bz [Fri, 10 Feb 2012 00:02:03 +0000 (00:02 +0000)]
MFC r230494:

 Remove unnecessary line break.

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

12 years agoMFC r230387:
bz [Thu, 9 Feb 2012 22:54:16 +0000 (22:54 +0000)]
MFC r230387:

 Remove a superfluous INET6 check (no opt_inet6.h included anyway).

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

12 years agoMFC r231074:
tuexen [Thu, 9 Feb 2012 22:05:51 +0000 (22:05 +0000)]
MFC r231074:
Fix a typo which was already fixed by eadler in r227489. We missed
to integrate this fix in our code base, so it was removed in r227755.

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

12 years agoMFC r229546:
bz [Thu, 9 Feb 2012 22:01:59 +0000 (22:01 +0000)]
MFC r229546:

 Convert an #ifdef DIAGNOSTIC if/panic to a KASSERT.

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

12 years agoMFC r229795:
bz [Thu, 9 Feb 2012 20:57:25 +0000 (20:57 +0000)]
MFC r229795:

 Correct comment for the IPv6 case to say "traffic class" not "TOS"
 as pointed out back in 2009.

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

12 years agoMFC r229276:
bz [Thu, 9 Feb 2012 20:54:04 +0000 (20:54 +0000)]
MFC r229276:

 Remove an uneeded inpcb forward declaration and align the function
 declaration following to match the style in the rest of the file.

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

12 years agoMFC r230330:
ed [Thu, 9 Feb 2012 16:58:06 +0000 (16:58 +0000)]
MFC r230330:

  Remove remnants of dev_t.

  These functions take a `struct cdev *' -- not a dev_t. Inside the
  kernel, dev_t has the same use as in userspace, namely to store a device
  identifier.

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

12 years agoMFH r226119: Mention tdsignal(9)
bapt [Thu, 9 Feb 2012 16:57:21 +0000 (16:57 +0000)]
MFH r226119: Mention tdsignal(9)

Approved by: des (mentor)

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

12 years agoMFH r226166: Document some not-so-recently added trace points
bapt [Thu, 9 Feb 2012 16:55:41 +0000 (16:55 +0000)]
MFH r226166: Document some not-so-recently added trace points

Approved by: des (mentor)

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

12 years agoMFC r228474:
ed [Thu, 9 Feb 2012 16:55:20 +0000 (16:55 +0000)]
MFC r228474:

  Add support for __COUNTER__.

  __COUNTER__ allows one to obtain incrementing (read: unique) numbers
  from the C preprocesor. This is useful when implementing things like a
  robust implementation of CTASSERT(), which currently fails when using
  it more than once on a single line of code. Probably not likely to cause
  any breakage, but still.

  __COUNTER__ was also added to GCC 4.3, but since that implementation is
  GPLv3 licensed, I took the liberty of implementing it without looking at
  any upstream sources. Therefore, this version is licensed under the same
  license as the rest of the code; GPLv2.

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

12 years agoMFH r226506: Look for /boot/config in addition to /boot.config
bapt [Thu, 9 Feb 2012 16:53:51 +0000 (16:53 +0000)]
MFH r226506: Look for /boot/config in addition to /boot.config

Approved by: des (mentor)

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

12 years agoMFC r229127:
bz [Thu, 9 Feb 2012 16:11:57 +0000 (16:11 +0000)]
MFC r229127:

 Remove a declaration to a non-existent function.

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

12 years agoMFC r229590 manually:
ed [Thu, 9 Feb 2012 15:28:28 +0000 (15:28 +0000)]
MFC r229590 manually:

  It turns out our GCC has quite an interesting bug:

        typeof(1.0fi) != float _Complex
        typeof((float _Complex)1.0fi) != float _Complex
        typeof((float _Complex)1.0i) == float _Complex

  In other words: if casting to an equal size, GCC seems to take a
  shortcut. By casting down from a double to a float, GCC doesn't take
  this shortcut, yielding the proper type.

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

12 years agoMFC r229385
ed [Thu, 9 Feb 2012 15:26:47 +0000 (15:26 +0000)]
MFC r229385

  Fix subtle typo: compare against idx -- not index.

  In this context, index refers to the index(3) function. In this case it
  doesn't really harm, as this function is never called with idx == NULL.

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

12 years agoMFC r226424:
ed [Thu, 9 Feb 2012 15:23:39 +0000 (15:23 +0000)]
MFC r226424:

  Use integer to store the result of getch().

  We need to use an integer to make the comparison against ERR work.

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

12 years agoMFC r226396:
ed [Thu, 9 Feb 2012 15:21:54 +0000 (15:21 +0000)]
MFC r226396:

  Fix whitespace inconsistencies in systat(1).

  According to md5(1), the resulting binary is the same.

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

12 years agoMFH r226345, r226464, r226879:
bapt [Thu, 9 Feb 2012 14:16:00 +0000 (14:16 +0000)]
MFH r226345, r226464, r226879:
Make dhclient use a pid file. Modify the rc script accordingly, fix some bugs

Approved by: des (mentor)

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

12 years agoMFH r227531: Add netcat (nc) to /rescue.
bapt [Thu, 9 Feb 2012 13:23:33 +0000 (13:23 +0000)]
MFH r227531: Add netcat (nc) to /rescue.

Approved by: des (mentor)

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

12 years agoMFC r230341:
kib [Thu, 9 Feb 2012 10:30:45 +0000 (10:30 +0000)]
MFC r230341:
Use shared lock for the executable vnode in the exec path after the
VV_TEXT changes are handled. Assert that vnode is exclusively locked at
the places that modify VV_TEXT.

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

12 years agoMFH r226504: Make ktrace(1) build cleanly at WARNS level 6
bapt [Thu, 9 Feb 2012 09:24:33 +0000 (09:24 +0000)]
MFH r226504: Make ktrace(1) build cleanly at WARNS level 6

Approved by: des (mentor)

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

12 years agoMFH r226502,r226503: factor out the common code and fix two display bugs
bapt [Thu, 9 Feb 2012 09:20:34 +0000 (09:20 +0000)]
MFH r226502,r226503: factor out the common code and fix two display bugs

Approved by: des (mentor)

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

12 years agoMFC r230921:
mav [Thu, 9 Feb 2012 07:43:38 +0000 (07:43 +0000)]
MFC r230921:
Insert ordered command every 1/4 of the current command timeout, not 1/4
of the default one.

Without this change setting kern.cam.ada.default_timeout to 1 instead of 30
allowed me to trigger several false positive command timeouts under heavy
ZFS load on a SiI3132 siis(4) controller with 5 HDDs on a port multiplier.

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

12 years agoMFC r230912:
mav [Thu, 9 Feb 2012 07:38:56 +0000 (07:38 +0000)]
MFC r230912:
Make CAM ATA honor old hw.ata.ata_dma and hw.ata.atapi_dma tunables.

Even having more specific hint.ata.X.mode controls, global ones are
still could be useful from some points, including compatibility.

PR: kern/164651

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

12 years agoMFH r230307: fix SIGINFO-related data corruption bug
bapt [Thu, 9 Feb 2012 06:48:04 +0000 (06:48 +0000)]
MFH r230307: fix SIGINFO-related data corruption bug

Approved by: des (mentor)

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

12 years agoMerge from head to stable/9:
scf [Thu, 9 Feb 2012 01:18:35 +0000 (01:18 +0000)]
Merge from head to stable/9:

r230656:
msdos was renamed to msdosfs in 2001 by r77577.

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

12 years agoMerge from head to stable/9:
scf [Wed, 8 Feb 2012 23:14:26 +0000 (23:14 +0000)]
Merge from head to stable/9:

r230655:
Since April 2, 2006, Indiana has observed DST.

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

12 years agoMFC r228641:
bz [Wed, 8 Feb 2012 18:51:10 +0000 (18:51 +0000)]
MFC r228641:

 Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksum
 offloading on vlans and document the new option.

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

12 years agoMFC r230866:
kib [Wed, 8 Feb 2012 14:21:20 +0000 (14:21 +0000)]
MFC r230866:
Add kqueue support to /dev/klog.

PR: kern/156423

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

12 years agoMFC r230553:
kib [Wed, 8 Feb 2012 14:09:08 +0000 (14:09 +0000)]
MFC r230553:
When doing vflush(WRITECLOSE), clean vnode pages.

Unmounts do vfs_msync() before calling VFS_UNMOUNT(), but there is
still a race allowing a process to dirty pages after msync
finished. Remounts rw->ro just left dirty pages in system.

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

12 years agoMFC 230877:
mav [Wed, 8 Feb 2012 07:30:48 +0000 (07:30 +0000)]
MFC 230877:
Fix NULL dereference panic on attempt to turn off (on system shutdown)
disconnected swap device.

This is quick and imperfect solution, as swap device will still be opened
and GEOM will not be able to destroy it. Proper solution would be to
automatically turn off and close disconnected swap device, but with existing
code it will cause panic if there is at least one page on device, even if
it is unimportant page of the user-level process. It needs some work.

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

12 years agoMFC r231177:
marcel [Wed, 8 Feb 2012 04:40:14 +0000 (04:40 +0000)]
MFC r231177:
Rev. 228360 moved the call to cpu_set_upcall() to happen before
td_proc gets initialized in td (=newtd). Use td0 instead.

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

12 years agoMFC 229465: Use correct locking when traversing interface address list.
jhb [Tue, 7 Feb 2012 22:13:38 +0000 (22:13 +0000)]
MFC 229465: Use correct locking when traversing interface address list.

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

12 years agoMFC r226274,r226416:
delphij [Tue, 7 Feb 2012 22:13:33 +0000 (22:13 +0000)]
MFC r226274,r226416:

Fix the error message when setgid() failed.

PR: bin/161509
Submitted by: Jeremy Huddleston <jeremyhu apple com>

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

12 years agoMFC r227454:
delphij [Tue, 7 Feb 2012 21:56:58 +0000 (21:56 +0000)]
MFC r227454:

Use __packed to prevent alignment from taking place, which otherwise may
change the on-disk format in an incompatible way. Without this change,
msdosfs created on FreeBSD/arm would not be mountable.

PR: bin/162486
Submitted by: Ian Lepore <freebsd damnhippie dyndns org>
Reported by: Mattia Rossi <mrossi at swin.edu.au>

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

12 years agoMFC 229614:
jhb [Tue, 7 Feb 2012 19:55:58 +0000 (19:55 +0000)]
MFC 229614:
Add new variants of the IF_ADDR_*LOCK*() macros used for protecting
interface address lists that distinguish read locks from write locks.
To preserve the KPI, the previous operations are mapped to the write
lock macros.  The lock is still kept as a mutex for now.

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

12 years agoMFC 229613:
jhb [Tue, 7 Feb 2012 19:53:02 +0000 (19:53 +0000)]
MFC 229613:
Update recently added drivers to use the if_*addr_r*lock() wrapper
functions instead of using the IF_ADDR_LOCK directly.  The wrapper
functions are the supported interface for device drivers.

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

12 years agoMFC 229598:
jhb [Tue, 7 Feb 2012 19:40:52 +0000 (19:40 +0000)]
MFC 229598:
Remove use of explicit bus space tags and handles and use methods that
operate on resource objects instead.

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

12 years agoHoist mergeinfo for modules/sound/driver/* up to sys/.
jhb [Tue, 7 Feb 2012 19:32:20 +0000 (19:32 +0000)]
Hoist mergeinfo for modules/sound/driver/* up to sys/.

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

12 years agoMFC 228962:
jhb [Tue, 7 Feb 2012 19:23:08 +0000 (19:23 +0000)]
MFC 228962:
Use curthread rather than PCPU_GET(curthread).  'curthread' uses
special-case optimizations on several platforms and is preferred.

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

12 years agoRegen.
jhb [Tue, 7 Feb 2012 19:13:34 +0000 (19:13 +0000)]
Regen.

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

12 years agoMFC 228957:
jhb [Tue, 7 Feb 2012 19:11:54 +0000 (19:11 +0000)]
MFC 228957:
Implement linux_fadvise64() and linux_fadvise64_64() using
kern_posix_fadvise().

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

12 years agoMFC r230620:
bschmidt [Tue, 7 Feb 2012 18:05:10 +0000 (18:05 +0000)]
MFC r230620:
On state changes from RUN to anything else the AGGR sessions are
cleared/dropped leading to qid2tap[n] being NULL as there no longer
is a tap. Now, if there have been lots of frames queued the firmware
processes and returns those after the tap is gone.

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

12 years agoMFC r230514:
mm [Tue, 7 Feb 2012 17:57:33 +0000 (17:57 +0000)]
MFC r230514:
Merge illumos revisions 13572, 13573, 13574:

Rev. 13572:
disk sync write perf regression when slog is used post oi_148 [1]

Rev. 13573:
crash during reguid causes stale config [2]
allow and unallow missing from zpool history since removal of pyzfs [5]

Rev. 13574:
leaking a vdev when removing an l2cache device [3]
memory leak when adding a file-based l2arc device [4]
leak in ZFS from metaslab_group_create and zfs_ereport_checksum [6]

References:
https://www.illumos.org/issues/1909 [1]
https://www.illumos.org/issues/1949 [2]
https://www.illumos.org/issues/1951 [3]
https://www.illumos.org/issues/1952 [4]
https://www.illumos.org/issues/1953 [5]
https://www.illumos.org/issues/1954 [6]

Obtained from: illumos (issues #1909, #1949, #1951, #1952, #1953, #1954)

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

12 years agoMFC r227755:
tuexen [Tue, 7 Feb 2012 17:52:32 +0000 (17:52 +0000)]
MFC r227755:
Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.
Retire the the now unused sctp_udp_tunneling_for_client_enable
sysctl variable.

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

12 years agoMFC r230495:
mm [Tue, 7 Feb 2012 17:46:02 +0000 (17:46 +0000)]
MFC r230495:
Try resolving jail path with realpath(3).

jail(8) does a chdir(2) to the given path argument. Kernel evaluates the
jail path from the new cwd and not from the original cwd, which leads to
undesired behavior if given a relative path.

Reviewed by: jamie

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

12 years agoMFC r230141 (eadler):
gabor [Tue, 7 Feb 2012 17:42:10 +0000 (17:42 +0000)]
MFC r230141 (eadler):
- Remove duplicate line from usage()

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

12 years agoMFC r226441 and r226443
cognet [Tue, 7 Feb 2012 16:07:29 +0000 (16:07 +0000)]
MFC r226441 and r226443
r226441:
Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the
page has been allocated, or we could end up using random values, and bad things
could happen.

 PR: arm/161492
 Submitted by: Ian Lepore <freebsd AT damnhippie dot dyndns DOT org>

r226443:
Fix 2 bugs :

- A race condition could happen if two threads were using RAS at the same time
  as the code didn't reset RAS_END, the RAS code could believe we were not in
   a RAS, when we were in fact.
- Using signed value logic to compare addresses wasn't such a good idea.

Many thanks to Ian to investigate on these issues.

  Pointy hat to:  cognet
  PR: arm/161498
  Submitted by: Ian Lepore <freebsd At damnhippie DOT dyndns dot org

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

12 years agoMFC r230978:
kib [Tue, 7 Feb 2012 09:37:30 +0000 (09:37 +0000)]
MFC r230978:
Be as explicit as possible when describing relation between the -m mask
argument and slices. Adjust example for the same reason.

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

12 years agoMFC r227893 and r228119:
emaste [Tue, 7 Feb 2012 04:03:39 +0000 (04:03 +0000)]
MFC r227893 and r228119:

  Avoid double free creating a new RAID with invalid command line
  arguments.

  In build_volume(), check if arrays is allocated before traversing its
  items.  While parsing the arrays input, it's possible that we reach the
  error path before initializing the 'arrays' pointer, which in turn leads
  to a NULL deference.

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

12 years agoMFC r226697 and r226708:
emaste [Tue, 7 Feb 2012 03:34:57 +0000 (03:34 +0000)]
MFC r226697 and r226708:

  Avoid printing // for packages that install to /

  I have some packages that install to / (for whatever reason).  Right now we
  print entries of the form //path/to/file when listing files (pkg_info -L,
  pkg_info -g etc.)  This change avoids printing the redundant / .

  Staticify elide_root() for now to fix build.

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

12 years agoMFC r228825:
np [Tue, 7 Feb 2012 02:21:17 +0000 (02:21 +0000)]
MFC r228825:
Fix return value of function.

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

12 years agoMFC r229714
np [Mon, 6 Feb 2012 18:46:49 +0000 (18:46 +0000)]
MFC r229714

Always release the inp lock before returning from tcp_detach.

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

12 years agoMFC r228491, r228561, r228594.
np [Mon, 6 Feb 2012 18:11:01 +0000 (18:11 +0000)]
MFC r228491, r228561, r228594.

r228491:
Do not clobber the ingress queue's congestion setting.

r228561:
Many updates to cxgbe(4)

- Device configuration via plain text config file.  Also able to operate
  when not attached to the chip as the master driver.

- Generic "work request" queue that serves as the base for both ctrl and
  ofld tx queues.

- Generic interrupt handler routine that can process any event on any
  kind of ingress queue (via a dispatch table).

- A couple of new driver ioctls.  cxgbetool can now install a firmware
  to the card ("loadfw" command) and can read the card's memory
  ("memdump" and "tcb" commands).

- Lots of assorted information within dev.t4nex.X.misc.*  This is
  primarily for debugging and won't show up in sysctl -a.

- Code to manage the L2 tables on the chip.

- Updates to cxgbe(4) man page to go with the tunables that have changed.

- Updates to the shared code in common/

- Updates to the driver-firmware interface (now at fw 1.4.16.0)

r228594:
Catch up with new driver ioctls in cxgbe.

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

12 years agoMFC r230212:
dumbbell [Mon, 6 Feb 2012 13:29:50 +0000 (13:29 +0000)]
MFC r230212:
sh: Fix execution of multiple statements in a trap when evalskip is set

Before this fix, only the first statement of the trap was executed if
evalskip was set. This is for example the case when:
    o  "-e" is set for this shell
    o  a trap is set on EXIT
    o  a function returns 1 and causes the script to abort

Reviewed by: jilles
Sponsored by: Yakaz (http://www.yakaz.com)

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

12 years agoMFC r230211:
dumbbell [Mon, 6 Feb 2012 13:14:26 +0000 (13:14 +0000)]
MFC r230211:
sh: Test EXIT trap with multiple statements in it

Reviewed by: jilles

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

12 years agoMFC: r230787
brueffer [Mon, 6 Feb 2012 13:12:30 +0000 (13:12 +0000)]
MFC: r230787

Manpages for the buf_ring and drbr interfaces.

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

12 years agoMFC r227931:
tuexen [Mon, 6 Feb 2012 10:38:20 +0000 (10:38 +0000)]
MFC r227931:
Move up the address to the top of the sctp_udencaps structure
like in all other structures. This avoids alignment problems.

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

12 years agoMFC r227755:
tuexen [Mon, 6 Feb 2012 10:22:50 +0000 (10:22 +0000)]
MFC r227755:
Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.
Retire the the now unused sctp_udp_tunneling_for_client_enable
sysctl variable.

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

12 years agoMFC r227655:
tuexen [Mon, 6 Feb 2012 10:19:18 +0000 (10:19 +0000)]
MFC r227655:
Cleanup comparison of interface names.

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

12 years agoMFC r230785:
kib [Mon, 6 Feb 2012 10:14:07 +0000 (10:14 +0000)]
MFC r230785:
A debugger which requested PT_FOLLOW_FORK should get the notification
about new child not only when doing PT_TO_SCX, but also for PT_CONTINUE.
If TDB_FORK flag is set, always issue a stop, the same as is done for
TDB_EXEC.

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

12 years agoMFC r230555:
tuexen [Sun, 5 Feb 2012 20:53:06 +0000 (20:53 +0000)]
MFC r230555:
Don't print a warning when using netstat to print
SCTP statistics when there is not SCTP in the kernel.
This problem was reported by Sean Mahood.

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

12 years agoMFC r230379:
tuexen [Sun, 5 Feb 2012 20:50:56 +0000 (20:50 +0000)]
MFC r230379:
Fix a problem when using the CBAPI.
While there, remove an old comment which does not apply anymore.

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

12 years agoMFC r230138:
tuexen [Sun, 5 Feb 2012 20:49:03 +0000 (20:49 +0000)]
MFC r230138:
Small cleanup, no functional change.

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

12 years agoMFC r230136:
tuexen [Sun, 5 Feb 2012 20:47:26 +0000 (20:47 +0000)]
MFC r230136:
Two cleanups. No functional change.

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

12 years agoMFC r230104:
tuexen [Sun, 5 Feb 2012 20:45:32 +0000 (20:45 +0000)]
MFC r230104:
Fix two bugs, which result in a panic when calling getsockopt()
using SCTP_RECVINFO or SCTP_NXTINFO.
Reported by Clement Lecigne and forwarded to us by zi@.

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

12 years agoMFC: r230897
pfg [Sun, 5 Feb 2012 20:09:50 +0000 (20:09 +0000)]
MFC: r230897

Use new OSS-based BSD-licensed header for cs sound driver.

The cs driver requires a table with firmware values. An
alternative firmware is available in a similar Open Sound
System driver. This is actually a partial revert of
Revision 77504.

The csa driver is now free of the GPL.

Tested by: joel
Approved by: jhb (mentor)

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

12 years agoMFC r229805:
tuexen [Sun, 5 Feb 2012 20:06:43 +0000 (20:06 +0000)]
MFC r229805:
Add an SCTP sysctl "blackhole", similar to the one for TCP.
If set to 1, no ABORT is sent back in response to an incoming
INIT. If set to 2, no ABORT is sent back in response to
an out of the blue packet. If set to 0 (the default), ABORTs
are sent.
Discussed with rrs@.

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

12 years agoMFC 229775:
tuexen [Sun, 5 Feb 2012 20:04:21 +0000 (20:04 +0000)]
MFC 229775:
Retire the SCTP sysctl "strict_init". We always perform the validation
and there is no reason to make is configuarable.
Discussed with rrs@.

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

12 years agoMFC r229774:
tuexen [Sun, 5 Feb 2012 19:59:01 +0000 (19:59 +0000)]
MFC r229774:
Improve the handling of received INITs. Send an ABORT when
not accepting the connection. Also fix a crash, which
could happen when the user closed the socket.

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

12 years agoMFC r229729:
tuexen [Sun, 5 Feb 2012 19:56:07 +0000 (19:56 +0000)]
MFC r229729:
Use NULL instead of 0.

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

12 years agoMFC 228907:
tuexen [Sun, 5 Feb 2012 19:52:55 +0000 (19:52 +0000)]
MFC 228907:
Address issues found by clang. While there, fix also some style
issues.

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

12 years agoMFC 228653:
tuexen [Sun, 5 Feb 2012 19:49:34 +0000 (19:49 +0000)]
MFC 228653:
Fix unused parameter warnings.
While there, fix some whitespace issues.

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

12 years agoMFC r228630:
tuexen [Sun, 5 Feb 2012 19:33:53 +0000 (19:33 +0000)]
MFC r228630:
Address warnings found by clang.

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

12 years agoMFC r230325
sbruno [Sun, 5 Feb 2012 19:30:18 +0000 (19:30 +0000)]
MFC r230325

Wrap changes from svn r212126 inside LOADER_NFS_SUPPORT

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

12 years agoMFC 228531:
tuexen [Sun, 5 Feb 2012 19:29:14 +0000 (19:29 +0000)]
MFC 228531:
Fix a bug where sctp_sendmdg() uses uninitialized memory.

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

12 years agoMFC r230313, r230316, r230323, r230588
sbruno [Sun, 5 Feb 2012 18:39:11 +0000 (18:39 +0000)]
MFC r230313, r230316, r230323, r230588

Support new raid controllers

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

12 years agoMFC r228391:
tuexen [Sun, 5 Feb 2012 18:21:03 +0000 (18:21 +0000)]
MFC r228391:
 Fix a bug reported by Irene Ruengeler which resulted in not sending
 out HEARTBEATs when requested by the user. The HEARTBEATs were only
 queued, but not actually sent out.

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

12 years agoMFC r228102:
tuexen [Sun, 5 Feb 2012 18:16:38 +0000 (18:16 +0000)]
MFC r228102:
Remove debug code.

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

12 years agoMFC r230247:
nwhitehorn [Sun, 5 Feb 2012 16:23:55 +0000 (16:23 +0000)]
MFC r230247:

Revert r212360 now that PowerPC can handle large sparse arguments to
pmap_remove() (changed in r228412).

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

12 years agoPick a constant high IRQ value for the PS3 IPI, which lets PS3 devices be
nwhitehorn [Sun, 5 Feb 2012 16:17:14 +0000 (16:17 +0000)]
Pick a constant high IRQ value for the PS3 IPI, which lets PS3 devices be
usefully loaded and unloaded as modules.

Submitted by: geoffrey dot levand at mail dot ru

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

12 years agoMFC r230398:
nwhitehorn [Sun, 5 Feb 2012 16:14:23 +0000 (16:14 +0000)]
MFC r230398:

Prevent an error resulting from signed/unsigned comparison on systems
that do not comply with the OF spec.

Submitted by: Anders Gavare

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

12 years agoMFC r230309:
nwhitehorn [Sun, 5 Feb 2012 16:08:45 +0000 (16:08 +0000)]
MFC r230309:

Warn if trying to install over an existing partition, which usually fails
anyway due to libarchive not being able to overwrite schg flags.

PR: bin/164278

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

12 years agoMFC r229699, r229744, r229778, r229944, r229945, r229946, r230092, r230395,
trociny [Sun, 5 Feb 2012 15:51:19 +0000 (15:51 +0000)]
MFC r229699, r229744, r229778, r229944, r229945, r229946, r230092, r230395,
  r230396, r230436, r230457, r230515, r230976:

r229744 (pjd):

fork(2) returns -1 on failure, not some random negative number.

r229699 (pjd):

Constify argument.

r229778 (uqs):

Spelling fixes for sbin/

r229944 (pjd):

Don't touch pidfiles when running in foreground. Before that change we
would create an empty pidfile on start and check if it changed on SIGHUP.

r229945 (pjd):

For functions that return -1 on failure check exactly for -1 and not for
any negative number.

r229946 (pjd):

- Fix a bug where pidfile was removed in SIGHUP when it hasn't changed in
  configuration file.
- Log the fact that pidfile has changed.

r230092 (pjd):

Style cleanups.

r230395 (pjd):

Remove unused token 'port'.

r230396 (pjd):

Remove another unused token.

r230436 (pjd):

Fix minor memory leak.

r230457 (pjd):

Free memory that won't be used in child.

r230515 (pjd):

- Fix documentation to note that /etc/hast.conf is the default configuration
  file for hastd(8) and hastctl(8) and not hast.conf.
- In copyright statement correct that this file is documentation, not software.
- Bump date.

r230976 (pjd):

Fix typo in comment.

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