]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r221011: sh: Remove duplicate code resetting uid/gid for set +p/
jilles [Thu, 5 May 2011 22:04:59 +0000 (22:04 +0000)]
MFC r221011: sh: Remove duplicate code resetting uid/gid for set +p/
+o privileged.

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

13 years agoMFC r221074, r221075, r221076, r221078:
trociny [Thu, 5 May 2011 18:50:52 +0000 (18:50 +0000)]
MFC r221074, r221075, r221076, r221078:

r221074:

Fix assert messages.

r221075:

For conversation between hastctl and hastd we should use HASTCTL_CMD
defines.

r221076:

Rename HASTCTL_ defines, which are used for conversation between main
hastd process and workers, remove unused one and set different range
of numbers. This is done in order not to confuse them with HASTCTL_CMD
defines, used for conversation between hastctl and hastd, and to avoid
bugs like the one fixed in r221075.

r221078:

Add missing ifdef. This fixes build with NO_OPENSSL.

Reported by: Pawel Tyll <ptyll@nitronet.pl>

Approved by: pjd (mentor)

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

13 years agoMFC: r220928
rmacklem [Thu, 5 May 2011 14:19:37 +0000 (14:19 +0000)]
MFC: r220928
Remove the nm_mtx mutex locking from the test for
nm_maxfilesize. This value rarely, if ever, changes
and the nm_mtx mutex is locked/unlocked earlier in
the function, which should be sufficient to avoid
getting a stale cached value for it. There is a
discussion w.r.t. what these tests should be, but
I've left them basically the same as the regular
NFS client for now.

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

13 years agoMFC r221335:
delphij [Thu, 5 May 2011 12:52:05 +0000 (12:52 +0000)]
MFC r221335:

Correct a typo.  According to Intel document 318914, the Tj(max) for Core 2
Duo Mobile CPUs should be 105.

Noticed by: Mark Johnston <markjdb gmail.com>

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

13 years agoMFC: r220877
rmacklem [Wed, 4 May 2011 01:39:44 +0000 (01:39 +0000)]
MFC: r220877
Modify the offset + size checks for read and write in the
experimental NFS client to take care of overflows for the calls
above the buffer cache layer in a manner similar to r220876.
Thanks go to dillon at apollo.backplane.com for providing the
snippet of code that does this.

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

13 years agoMFC: r220876
rmacklem [Wed, 4 May 2011 01:24:03 +0000 (01:24 +0000)]
MFC: r220876
Modify the offset + size checks for read and write in the
experimental NFS client to take care of overflows. Thanks
go to dillon at apollo.backplane.com for providing the
snippet of code that does this.

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

13 years agoMFC r221049: Stop zeroing UFS1 superblocks if we fall off the end of the
cperciva [Tue, 3 May 2011 16:36:39 +0000 (16:36 +0000)]
MFC r221049: Stop zeroing UFS1 superblocks if we fall off the end of the
disk, in order to avoid wasting time (potentially many hours) in the event
that we find a partially-overwritten UFS1 superblock.

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

13 years agoMFC r220832:
ae [Tue, 3 May 2011 11:07:46 +0000 (11:07 +0000)]
MFC r220832:
  Add sysctl handlers for net.inet.ip.dummynet.hash_size, .pipe_byte_limit
  and .pipe_slot_limit oids to prevent to set incorrect values.

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

13 years agoMFC r206428 (by luigi):
ae [Tue, 3 May 2011 11:00:31 +0000 (11:00 +0000)]
MFC r206428 (by luigi):
    This commit enables partial operation of dummynet with kernels
    compiled with "options VIMAGE".
    As it is now, there is still a single instance of the pipes,
    and it is only usable from vnet0 (the main instance).
    Trying to use a pipe from a different vimage does not crash
    the system as it did before, but the traffic coming out from
    the pipe goes to the wrong place, and i still need to
    figure out where.

    Support for per-vimage pipes is almost there (just a matter of
    uncommenting the VNET_* definitions for dn_cfg, plus putting into
    the structure the remaining static variables), however i need
    first to figure out how init/uninit work, and also to understand
    where packets are ending up on exit from a pipe.

    In summary: vimage support for dummynet is not complete yet,
    but we are getting there.

MFC r206461 (by bz):
    Try to help with a virtualized dummynet after r206428.

    This adds the explicit include (so far probably included through one of the
    few "hidden" includes in other header files) for vnet.h and adds a cast
    to unbreak LINT-VIMAGE.

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

13 years agoMFC r219955: It's possible to unmount multiple items at once, make it clear.
ru [Tue, 3 May 2011 10:01:08 +0000 (10:01 +0000)]
MFC r219955: It's possible to unmount multiple items at once, make it clear.

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

13 years agoMFC r219958: Discourage from using "cp -r".
ru [Tue, 3 May 2011 09:59:33 +0000 (09:59 +0000)]
MFC r219958: Discourage from using "cp -r".

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

13 years agoMFC r221282:
mm [Tue, 3 May 2011 08:39:57 +0000 (08:39 +0000)]
MFC r221282:

Add ChangeLog.gcc43 for backported changes from gcc 4.3

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

13 years agoMFC r221119:
pluknet [Tue, 3 May 2011 07:24:47 +0000 (07:24 +0000)]
MFC r221119:
Fix typo in "continuously" argument used in patrol auto command.

Unlike the version in head, this one preserves a misspelled version.

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

13 years agoMFC r218360 (by luigi):
ae [Tue, 3 May 2011 05:42:50 +0000 (05:42 +0000)]
MFC r218360 (by luigi):
    correct the 'output_time' of packets generated by dummynet.
    In the dec.2009 rewrite I introduced a bug, using for the
    computation the arrival time instead of the time the packet
    has exited from the queue.
    The bandwidth computation was still correct because it is
    computed elsewhere, but traffic was sent out in bursts.

    The bug is also present in RELENG_8 after dec.2009

    Thanks to Daikichi Osuga for investingating, finding and fixing the
    bug with detailed graphs of the behaviour before and after the fix.

    Submitted by: Daikichi Osuga

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

13 years agoMFC r220831:
ae [Tue, 3 May 2011 05:09:02 +0000 (05:09 +0000)]
MFC r220831:
  ipdn_bound_var() function is designed to bound a variable between
  specified minimum and maximum. In case when specified default value
  is out of bounds it does not work as expected and does not limit
  variable. Check that default value is in range and limit it if needed.
  Also bump max_hash_size value to 65536 to correspond with manual page.

  PR: kern/152887

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

13 years agoMFC: r220875
rmacklem [Tue, 3 May 2011 01:55:27 +0000 (01:55 +0000)]
MFC: r220875
Add stablerestart(5) to the See Also list for nfsd.8.
This is a content change.

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

13 years agoMFC: r220810
rmacklem [Tue, 3 May 2011 01:19:39 +0000 (01:19 +0000)]
MFC: r220810
Fix up handling of the nfsmount structure in read and write
within the experimental NFS client. Mostly add mutex locking
and use the same rsize, wsize during the operation by keeping
a local copy of it. This is another change that brings it
closer to the regular NFS client.

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

13 years agoMFC r220368:
yongari [Mon, 2 May 2011 22:49:43 +0000 (22:49 +0000)]
MFC r220368:
  Add initial jumbo frame support for BCM5714/BCM5715 and BCM5780.
  Unlike other controllers which have more advanced jumbo support,
  these controllers have one send ring, one standard receive producer
  ring and one receive return ring. In order to receive jumbo frames
  on the controllers, driver now will increase Rx buffer size to 9k.
  Two Rx modes are supported on these controllers and I chose
  standard Rx BDs over extended Rx BDs. The extended Rx BD mode
  allows up to 4 segmentations for each Rx BDs such that kernel does
  not have to allocate large buffer of contiguous memory for
  receiving. The extended Rx BD mode is already used on controllers
  that have separate jumbo receive ring. However, using extended Rx
  BDs on BCM5714/BCM5715/BCM5780 reduces the number of Rx BDs to 256
  entries which in turn may reduce the performance.  Also UMA backed
  page allocator for jumbo frame returns contiguous memory so using
  extended Rx BD has no advantage on FreeBSD unless highly customized
  local allocator implemented in driver is used.
  To use jumbo buffers in standard receive ring, Rx buffer allocation
  handler was changed to allocate MJUM9BYTES sized mbuf.

  PR: kern/155192
  Tested by: Vijay Singh <vijju.singh <> gmail dot com>
  Submitted by: mjacob (initial version)

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

13 years agoMFC r216461:
jh [Mon, 2 May 2011 13:58:40 +0000 (13:58 +0000)]
MFC r216461:

- Assert that dm_lock is exclusively held in devfs_rules_apply() and
  in devfs_vmkdir() while adding the entry to de_list of the parent.
- Apply devfs rules to newly created directories and symbolic links.

PR: kern/125034

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

13 years agoMFC: r220764
rmacklem [Mon, 2 May 2011 01:01:03 +0000 (01:01 +0000)]
MFC: r220764
Add a vput() to nfs_lookitup() in the experimental NFS client
for a case that will probably never happen. It can only
happen if a server were to successfully lookup a file, but not
return attributes for that file. Although technically allowed
by the NFSv3 RFC, I doubt any server would ever do this.
However, if it did, the client would have not vput()'d the
new vnode when it needed to do so.

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

13 years agoMFC: r220763
rmacklem [Mon, 2 May 2011 00:49:47 +0000 (00:49 +0000)]
MFC: r220763
Add vput() calls in two places in the experimental NFS client
that would be needed if, in the future, nfscl_loadattrcache()
were to return an error. Currently nfscl_loadattrcache()
never returns an error, so these cases never currently happen.

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

13 years agoMFC: r220762
rmacklem [Sun, 1 May 2011 03:16:13 +0000 (03:16 +0000)]
MFC: r220762
Change the mutex locking for several locations in the
experimental NFS client's vnode op functions to make
them compatible with the regular NFS client. I'll admit
I'm not sure that the mutex locks around the assignments
are needed, but the regular client has them, so I added them.
Also, add handling of the case of partial attributes in
setattr to be compatible with the regular client.

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

13 years agoMFC: r220752
rmacklem [Sun, 1 May 2011 03:01:21 +0000 (03:01 +0000)]
MFC: r220752
Get rid of the "nfscl: consider increasing kern.ipc.maxsockbuf"
message that was generated when doing experimental NFS client
mounts. I put that message in because the krpc would hang with
the default size for mounts that used large rsize/wsize values.
Since the bug that caused these hangs was fixed by r213756,
which fixed the way the krpc used soreserve(), I think the
message is no longer needed.

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

13 years agoMFC: r220751
rmacklem [Sun, 1 May 2011 02:47:54 +0000 (02:47 +0000)]
MFC: r220751
Fix up some of the sysctls for the experimental NFS client so
that they use the same names as the regular client. Also add
string descriptions for them.

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

13 years agoMFC: r220739
rmacklem [Sun, 1 May 2011 02:36:09 +0000 (02:36 +0000)]
MFC: r220739
Change some defaults in the experimental NFS client to be the
same as the regular NFS client for NFSv3. The main one is making
use of a reserved port# the default. Also, set the retry limit
for TCP the same and fix the code so that it doesn't disable
readdirplus for NFSv4.

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

13 years agoMFC: r220735
rmacklem [Sun, 1 May 2011 02:22:54 +0000 (02:22 +0000)]
MFC: r220735
Fix readdirplus in the experimental NFS client so that it
skips over ".." to avoid a LOR race with nfs_lookup(). This
fix is analagous to r138256 in the regular NFS client.

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

13 years agoBump __FreeBSD_version for the gcc MFC (r220150)
mm [Sat, 30 Apr 2011 22:15:14 +0000 (22:15 +0000)]
Bump __FreeBSD_version for the gcc MFC (r220150)

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

13 years agoMFC 219374, 219376, 219639, 219640, 219697, 219711, 220150:
mm [Sat, 30 Apr 2011 22:07:04 +0000 (22:07 +0000)]
MFC 219374, 219376, 219639, 219640, 219697, 219711, 220150:

MFC r219374:
Backport Intel Core 2 and AMD Geode CPU types from gcc-4.3 (GPLv2)
These options are supported in this shape in all newer GCC versions.

Source: gcc-4_3-branch (rev. 118090, 118973, 120846; GPLv2)

MFC r219376:
Add AMD Geode CPU type to bsd.cpu.mk and examples/etc/make.conf
For CPUTYPE=core2 use -march=core2

MFC r219639:
Backport SSSE3 instruction set support to base gcc.
Enabled by default for -march=core2

Source: gcc-4_3-branch (rev. 117958, 121687, 121726, 123639; GPLv2)

MFC r219640:
Add ssse3 capability for CPUTYPE=core2 to MACHINE_CPU in bsd.cpu.mk

MFC r219697:
Fix -march/-mtune=native autodetection for Intel Core 2 CPUs

Source: gcc-4_3-branch (partial rev. 119454; GPLv2)

MFC r219711:
Backport missing tunings for -march=core2:
- enable extra 80387 mathematical constants (ext_80387_constants)
- enable compare and exchange 16 bytes (cmpxchg16b)

Verified against llvm-gcc (and apple gcc)
Source: gcc-4_3-branch (ref. svn revs. 119260, 121140; GPLv2)

MFC r220150:
Upgrade of base gcc and libstdc++ to the last GPLv2-licensed revision
(rev. 127959 of gcc-4_2-branch).

Resolved GCC bugs:
c++: 17763, 29365, 30535, 30917, 31337, 31941, 32108, 32112, 32346,
     32898, 32992
debug: 32610, 32914
libstdc++: 33084, 33128
middle-end: 32563
rtl-optimization: 33148
tree-optimization: 25413, 32723
target: 32218

Source: gcc-4_2-branch (up to rev. 127959)

Obtained from: gcc (var. revs of gcc-4_2-branch and gcc-4_3-branch; GPLv2)
PR: gnu/153298, gnu/153959, gnu/154385, gnu/155308

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

13 years agoUnbreak non-x86 and in particular ia64, The default stack size
marcel [Sat, 30 Apr 2011 05:28:54 +0000 (05:28 +0000)]
Unbreak non-x86 and in particular ia64, The default stack size
on ia64 is 32KB. Unconditionally hardcoding a 16KB stack for
reasons of increasing the stack size on i386 is just wrong. If
the size was indeed expressed in terms of pages, as the commit
log suggested, then it would happen to be just right for ia64,
though only accidentally.

Pointy hat: avg, pjd

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

13 years agoMFC: r220732
rmacklem [Sat, 30 Apr 2011 01:29:18 +0000 (01:29 +0000)]
MFC: r220732
Add a lktype flags argument to nfscl_nget() and ncl_nget() in the
experimental NFS client so that its nfs_lookup() function can use
cn_lkflags in a manner analagous to the regular NFS client.

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

13 years agoMFC: r220731
rmacklem [Sat, 30 Apr 2011 01:16:19 +0000 (01:16 +0000)]
MFC: r220731
Add mutex locking on the nfs node in ncl_inactive() for the
experimental NFS client.

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

13 years agoMFC 221007:
dougb [Fri, 29 Apr 2011 20:46:09 +0000 (20:46 +0000)]
MFC 221007:

Create a function for the code from r192246 so that it can be used both
times mount is called.

Limit the automatic behavior to when AUTO is specified (as it is in
etc/defaults/rc.conf) and for everything else take advantage of all
of the goodness in checkyesno.

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

13 years agoMFC r216744 for rc.d/devd:
dougb [Fri, 29 Apr 2011 20:31:52 +0000 (20:31 +0000)]
MFC r216744 for rc.d/devd:

Add pidfile [1]

While I'm here, don't run the sysctl frob unconditionally, and
s/sysctl/$SYSCTL/

MFC r220962:

Introduce to rc.subr get_pidfile_from_conf(). It does just what it sounds
like, determines the path to a pid file as it is specified in a conf file.

Use the new feature for rc.d/named and rc.d/devd, the 2 services in the
base that list their pid files in their conf files.

Remove the now-obsolete named_pidfile, and warn users if they have it set.

MFC r220963:

Improve the error handling for the new get_pidfile_from_conf()

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

13 years agoMFC: r220683
rmacklem [Fri, 29 Apr 2011 18:49:36 +0000 (18:49 +0000)]
MFC: r220683
Change the experimental NFS client so that it creates nfsiod
threads in the same manner as the regular NFS client after
r214026 was committed. This resolves the lors fixed by r214026
and its predecessors for the regular client.

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

13 years agoMFC: r220648
rmacklem [Fri, 29 Apr 2011 18:30:53 +0000 (18:30 +0000)]
MFC: r220648
Fix the experimental NFSv4 server so that it uses VOP_PATHCONF()
to determine if a file system supports NFSv4 ACLs. Since
VOP_PATHCONF() must be called with a locked vnode, the function
is called before nfsvno_fillattr() and the result is passed in
as an extra argument.

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

13 years agoMFC: r220645
rmacklem [Fri, 29 Apr 2011 18:17:01 +0000 (18:17 +0000)]
MFC: r220645
Modify the experimental NFSv4 server so that it handles
crossing of server mount points properly. The functions
nfsvno_fillattr() and nfsv4_fillattr() were modified to
take the extra arguments that are the mount point, a flag
to indicate that it is a file system root and the mounted
on fileno. The mount point argument needs to be busy when
nfsvno_fillattr() is called, since the vp argument is not
locked.

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

13 years agoMFC: r200069
rmacklem [Fri, 29 Apr 2011 17:57:35 +0000 (17:57 +0000)]
MFC: r200069
Remove unneeded ifdefs.
MFC'd with trasz@'s permission.

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

13 years agoMFC r220362:
attilio [Fri, 29 Apr 2011 17:04:52 +0000 (17:04 +0000)]
MFC r220362:
Extend the DDB command watchdog with the ability to specify a timeout
value.

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

13 years agoMerge r220652 from head:
gavin [Fri, 29 Apr 2011 10:28:55 +0000 (10:28 +0000)]
Merge r220652 from head:

  Remove an incorrect be16toh() that prevented geom_part_apm from working on                                                                                                       little-endian machines.

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

13 years agoMFC r220582:
delphij [Fri, 29 Apr 2011 00:40:00 +0000 (00:40 +0000)]
MFC r220582:

Add support for IEE/IEC (and now also SI) power of two notions of
prefixes (Ki, Mi, Gi...) for humanize_number(3).

Note that applications has to pass HN_IEC_PREFIXES to use this
feature for backward compatibility reasons.

Reviewed by: arundel

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

13 years agoMFC of the ixgbe driver: revisions 217131, 217132, and 221041.
jfv [Fri, 29 Apr 2011 00:24:17 +0000 (00:24 +0000)]
MFC of the ixgbe driver: revisions 217131, 217132, and 221041.
This brings this driver up to the level in HEAD as well.

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

13 years agoMFC of the 1G Intel drivers, the following revisions
jfv [Fri, 29 Apr 2011 00:00:54 +0000 (00:00 +0000)]
MFC of the 1G Intel drivers, the following revisions
from HEAD are merged:

217318,218530,218548,218581,218582,218583,218587,218588,
219753,219763,219764,220251,220254,220375,221187,221189

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

13 years agoMFC r220316
thompsa [Thu, 28 Apr 2011 21:27:34 +0000 (21:27 +0000)]
MFC r220316

 Lower WARNS to unbreak the build, some archs may have alignment issues.

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

13 years agoMFC r215649,r215764,r215802,r215804,r215810,r215812,r216091,r216267,r218165,r220301...
hselasky [Thu, 28 Apr 2011 16:18:30 +0000 (16:18 +0000)]
MFC r215649,r215764,r215802,r215804,r215810,r215812,r216091,r216267,r218165,r220301,r215651,r215803,r216138,r218010,r217558,r220312,r220314,r215846 and r216268.
Backport USB PF and usbdump from head to 8-stable.

Approved by: thompsa

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

13 years agoMFC r220424:
gallatin [Thu, 28 Apr 2011 14:55:34 +0000 (14:55 +0000)]
MFC r220424:
  Fix a bug in mxge's LRO which can cause dup acks to
  get aggregated & hence prevent TCP from entering
  fast retransmit.

  Pointed out by: jeff
  Reviewed by: gnn

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

13 years agoMFC r220385: Implement mxge_init()
gallatin [Thu, 28 Apr 2011 14:42:42 +0000 (14:42 +0000)]
MFC r220385: Implement mxge_init()

  This fixes a long standing bug in mxge(4) where "ifconfig mxge0 $IP"
  did not bring the interface into a RUNNING state, like it does on
  most (all?) other FreeBSD NIC drivers.

  Thanks to gnn for mentioning the bug, and yongari for pointing out that
  ether_ioctl() invokes ifp->if_init() in SIOCSIFADDR.

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

13 years agoMFC 218794, 219026:
vanhu [Thu, 28 Apr 2011 08:49:43 +0000 (08:49 +0000)]
MFC 218794, 219026:
Fixed IPsec's HMAC_SHA256-512 support to be RFC4868 compliant.
This will break interoperability with all older versions of
FreeBSD for those algorithms.

Reviewed by: bz, gnn
Obtained from: NETASQ

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

13 years agoMFC r220920:
mav [Thu, 28 Apr 2011 07:34:37 +0000 (07:34 +0000)]
MFC r220920:
 - Fix mapping of the last two SATA ports on 6-port Intel controllers.
This improves hard-reset and hot-plug on these ports.
 - Device with ID 0x29218086 is a 2-port variant of ICH9 in legacy mode.
Skip probing for nonexistent slave devices there.

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

13 years agoMFC r220917:
mav [Thu, 28 Apr 2011 07:33:14 +0000 (07:33 +0000)]
MFC r220917:
Use periodic status polling added at r214671 only in ATA_CAM mode. Legacy
mode won't receive much benefit from it due to its hot-plug limitations.

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

13 years agoMFC r220822:
mav [Thu, 28 Apr 2011 07:26:28 +0000 (07:26 +0000)]
MFC r220822:
Properly handle memory allocation errors during error recovery.

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

13 years agoMFC r220886:
mav [Thu, 28 Apr 2011 07:22:41 +0000 (07:22 +0000)]
MFC r220886:
Add basic support for DMA-capable ATA disks on DMA-incapable controller.
This is really rare situation these days, but still may happen in embedded.

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

13 years agoMFC r220786:
mav [Thu, 28 Apr 2011 07:21:01 +0000 (07:21 +0000)]
MFC r220786:
Remove always false "< 0" check for unsgined int variable. This check is
also duplicate, as the value was already checked for 0 before decrementing.

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

13 years agoMFC r221077.
hselasky [Thu, 28 Apr 2011 06:57:46 +0000 (06:57 +0000)]
MFC r221077.
The maximum NCM frame size must be so that it
will generate a short terminated USB transfer if
the maximum NCM frame size is greater than what
the driver can handle.

Approved by:  thompsa

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

13 years agoMFC r221073.
hselasky [Thu, 28 Apr 2011 06:54:38 +0000 (06:54 +0000)]
MFC r221073.
Fix for missing EHCI datatoggle change case.

Approved by: thompsa

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

13 years agoMFC r220900.
hselasky [Thu, 28 Apr 2011 06:51:47 +0000 (06:51 +0000)]
MFC r220900.
Only set the sample rate if the USB audio channel reports
that it supports the frequency control request.

Approved by: thompsa

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

13 years agoMFC 210864:
jhb [Wed, 27 Apr 2011 21:13:20 +0000 (21:13 +0000)]
MFC 210864:
- Retire acpi_pcib_resume().  It is has just been an alias for
  bus_generic_resume() since the pci_link(4) driver was added.
- Change the ACPI PCI-PCI bridge driver to inherit most of its methods
  from the generic PCI-PCI bridge driver.
- This also exposes the generic PCI-PCI bridge driver as pcib_driver so
  other drivers can inherit from it.

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

13 years agoMFC r220520, r220521, r220522, r220523, r220573, r220744, r220865,
trociny [Wed, 27 Apr 2011 19:46:57 +0000 (19:46 +0000)]
MFC r220520, r220521, r220522, r220523, r220573, r220744, r220865,
  r220889, r220890, r220898, r220899:

r220520:

hastd(8) maintains a map of dirty extents, not hastctl(8). Fix this.

r220521:

Fix a typo in comments.

r220522:

In hast_proto_recv_data() check that the size of the data to be
received does not exceed the buffer size.

r220573 (pjd):

The replication mode that is currently support is fullsync, not memsync.
Correct this and print a warning if different replication mode is
configured.

r220523, r220744:

Remove hast_proto_recv(). It was used only in one place, where
hast_proto_recv_hdr() may be used.

r220865 (pjd):

Scenario:
- We have two nodes connected and synchronized (local counters on both sides
  are 0).
- We take secondary down and recreate it.
- Primary connects to it and starts synchronization (but local counters are
  still 0).
- We switch the roles.
- Synchronization restarts but data is synchronized now from new primary
  (because local counters are 0) that doesn't have new data yet.

This fix this issue we bump local counter on primary when we discover that
connected secondary was recreated and has no data yet.

Reported by:    trociny
Discussed with: trociny
Tested by:      trociny

r220889 (pjd):

Timeout must be positive.

r220890 (pjd):

If we act in different role than requested by the remote node, log it
as a warning and not an error.

MFC after:      1 week

r220898 (pjd), r220899 (pjd):

When we become primary, we connect to the remote and expect it to be in
secondary role. It is possible that the remote node is primary, but only
because there was a role change and it didn't finish cleaning up (unmounting
file systems, etc.). If we detect such situation, wait for the remote node
to switch the role to secondary before accepting I/Os. If we don't wait for
it in that case, we will most likely cause split-brain.

Approved by: pjd (mentor)

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

13 years agoMFC: Various small compile nits found by make universe that are in already
jhb [Wed, 27 Apr 2011 19:36:00 +0000 (19:36 +0000)]
MFC: Various small compile nits found by make universe that are in already
merged changes or larger changes not suitable for MFC.

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

13 years agoMFC 217265:
jhb [Wed, 27 Apr 2011 18:00:46 +0000 (18:00 +0000)]
MFC 217265:
Remove unneeded includes of <sys/linker_set.h>.  Other headers that use
it internally contain nested includes.

Requested by: hselasky

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

13 years agoMFC r216475 (by gonzo):
pluknet [Wed, 27 Apr 2011 17:07:22 +0000 (17:07 +0000)]
MFC r216475 (by gonzo):
- include argument should be in quotes

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

13 years agoMFC r220873, r220897, r220905.
np [Wed, 27 Apr 2011 16:16:01 +0000 (16:16 +0000)]
MFC r220873, r220897, r220905.

r220873:
- Move all Ethernet specific items from sge_eq to sge_txq.  sge_eq is
  now a suitable base for all kinds of egress queues.

- Add control queues (sge_ctrlq) and allocate one of these per hardware           channel.  They can be used to program filters and steer traffic (and
  more).

r220897:
Use the correct free routine when destroying a control queue.

r220905:
Ring the freelist doorbell from within refill_fl.  While here, fix a bug
that could have allowed the hardware pidx to reach the cidx even though
the freelist isn't empty.  (Haven't actually seen this but it was there
waiting to happen..)

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

13 years agoMFC r220987:
kib [Wed, 27 Apr 2011 09:35:40 +0000 (09:35 +0000)]
MFC r220987:
Fix typo.

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

13 years agoMFC: r220611
rmacklem [Wed, 27 Apr 2011 03:16:01 +0000 (03:16 +0000)]
MFC: r220611
Add VOP_PATHCONF() support to the experimental NFS client
so that it can, along with other things, report whether or
not NFS4 ACLs are supported.

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

13 years agoMFC: r220610
rmacklem [Wed, 27 Apr 2011 01:45:05 +0000 (01:45 +0000)]
MFC: r220610
Fix the experimental NFSv4 client so that it recognizes server
mount point crossings correctly. It was testing the wrong flag.
Also, try harder to make sure that the fsid is different than
the one assigned to the client mount point, by hashing the
server's fsid (just to create a different value deterministically)
when it is the same.

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

13 years agoMFC: r220585
rmacklem [Wed, 27 Apr 2011 01:33:12 +0000 (01:33 +0000)]
MFC: r220585
Fix a couple of mbuf leaks introduced by r217242. I do
not believe that these leaks had a practical impact,
since the situations in which they would have occurred
would have been extremely rare.

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

13 years agoMFC of 221092, tzdata2011g
edwin [Tue, 26 Apr 2011 22:15:32 +0000 (22:15 +0000)]
MFC of 221092, tzdata2011g

- Egypt has cancelled the move to DST for now.

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

13 years agoMFC r220812:
ae [Tue, 26 Apr 2011 18:18:10 +0000 (18:18 +0000)]
MFC r220812:
  Use M_WAITOK instead M_WAIT for malloc. Remove unneded checks.

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

13 years agoMFC r220840
emax [Tue, 26 Apr 2011 16:56:43 +0000 (16:56 +0000)]
MFC r220840

Improve the man page and l2control's usage() a bit.

Submitted by: arundel

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

13 years agoMFC 220975:
gjb [Tue, 26 Apr 2011 13:09:19 +0000 (13:09 +0000)]
MFC 220975:
- Clarification on kld_file_stat.size
- While here, remove a few C comments that don't seem to contribute
  anything additional to the man page.

PR: 146047

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

13 years agoMFC r220979:
kib [Tue, 26 Apr 2011 12:25:36 +0000 (12:25 +0000)]
MFC r220979:
Fix display of the drm sysctls (nop on stable/8).

Sponsored by: The FreeBSD Foundation

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

13 years agoMFC r220977:
kib [Tue, 26 Apr 2011 12:07:07 +0000 (12:07 +0000)]
MFC r220977:
Fix two bugs in r218670.

Hold the vnode around the region where object lock is dropped, until
vnode lock is acquired.

Do not drop the vnode reference for a case when the object was
deallocated during unlock. Note that in this case, VV_TEXT is cleared
by vnode_pager_dealloc().

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

13 years agoMFC r220836:
pluknet [Tue, 26 Apr 2011 10:02:15 +0000 (10:02 +0000)]
MFC r220836:

 Call init_param1() much earlier, so that msgbufsize is non-zero when we
 want to map and use the msgbuf.

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

13 years agoMFC: r220546
rmacklem [Mon, 25 Apr 2011 21:27:38 +0000 (21:27 +0000)]
MFC: r220546
Vrele ni_startdir in the experimental NFS server for the case
of NFSv2 getting an error return from VOP_MKNOD(). Without this
patch, the server file system remains busy after an NFSv2
VOP_MKNOD() fails.

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

13 years agoMFC: r210933,r211397,r220518
rmacklem [Mon, 25 Apr 2011 21:14:13 +0000 (21:14 +0000)]
MFC: r210933,r211397,r220518
Modify the man pages to reflect the addition of a backup
stable restart file, as done by r220510. I also merged the
typo fixes done in head as r210933, r211397 with joel@'s
permission.
This is a content change.

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

13 years agoMFC r212244: printf(1): Clarify that \OOO produces a byte, different %b
jilles [Mon, 25 Apr 2011 14:36:38 +0000 (14:36 +0000)]
MFC r212244: printf(1): Clarify that \OOO produces a byte, different %b
escape sequences.

Octal escape sequences are expanded to bytes, not characters, and multiple
are required for a multibyte character.

The valid escape sequences in %b strings are slightly different from the
escape sequences in the format string.

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

13 years agoMFC r218989:
pluknet [Mon, 25 Apr 2011 06:36:26 +0000 (06:36 +0000)]
MFC r218989:

Remove no more useful sysctl vm.max_proc_mmap, which also fixes mmap(2)
overflow seen with over 256GB of physical memory installed.

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

13 years agoMFC r220767:
ae [Mon, 25 Apr 2011 04:33:13 +0000 (04:33 +0000)]
MFC r220767:
  Use M_WAITOK flag instead M_WAIT for malloc.

  Suggested by: glebius

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

13 years agoMFC: r220530
rmacklem [Sun, 24 Apr 2011 23:04:08 +0000 (23:04 +0000)]
MFC: r220530
Add some cleanup code to the module unload operation for
the experimental NFS server, so that it doesn't leak memory
when unloaded. However, unloading the NFSv4 server is not
recommended, since all NFSv4 state will be lost by the unload
and clients will have to recover the state after a server
reload/restart as if the server crashed/rebooted.

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

13 years agoMFC: r220519
rmacklem [Sun, 24 Apr 2011 21:27:29 +0000 (21:27 +0000)]
MFC: r220519
Fix a bug in the userland rpc library, where it would use a
negative return value from write to update its position in
a buffer. The patch, courtesy of Andrey Simonenko, also simplifies
a conditional by removing the "i != cnt" clause, since it is
always true at this point in the code. The bug caused problems
for mountd, when it generated a large reply to an exports RPC
request.

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

13 years agoMFC: r220510
rmacklem [Sun, 24 Apr 2011 19:50:13 +0000 (19:50 +0000)]
MFC: r220510
Add support for a backup stable restart file to the nfsd,
used for NFSv4 restart. This permits the nfsd to create
the stable restart file as required and minimizes the risk
of trouble if the file is lost.

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

13 years agoMFC: r220507
rmacklem [Sun, 24 Apr 2011 19:35:54 +0000 (19:35 +0000)]
MFC: r220507
Add a VOP_UNLOCK() for the directory, when that is not what
VOP_LOOKUP() returned. This fixes a bug in the experimental
NFS server for the case where VFS_VGET() fails returning EOPNOTSUPP
in the ReaddirPlus RPC, forcing the use of VOP_LOOKUP() instead.

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

13 years agoMerge the part of r207141 that fixes the locking for ufs_rename() (and
kib [Sun, 24 Apr 2011 11:01:42 +0000 (11:01 +0000)]
Merge the part of r207141 that fixes the locking for ufs_rename() (and
r218838 followup).

Adopt the SU calls to the stable/8 SU implementation, with the help from
Kirk.

PR: kern/156545
Reviewed by: mckusick
Tested by: pho

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

13 years agoMFC r220882:
ru [Sat, 23 Apr 2011 05:29:59 +0000 (05:29 +0000)]
MFC r220882:

Don't clog syslog up with "inet_ntop(): Address family not supported
by protocol family" when processing requests received from the UNIX
domain socket.

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

13 years agoMFC r201038:
dougb [Sat, 23 Apr 2011 02:03:18 +0000 (02:03 +0000)]
MFC r201038:

Update the comments about files ending in .sh

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

13 years agoMFC r220760:
dougb [Fri, 22 Apr 2011 23:44:25 +0000 (23:44 +0000)]
MFC r220760:

The change in r206686 to allow the stop argument to work for a service
that is running even though not _enable'd had an annoying side effect.
If the service was already started at boot time by another means when
the related script came around again in rcorder it would start again,
regardless of _enable, because there was a valid pid.

So, split the test into 2 parts, one for (!rcvar && !stop), and one
for (stop && !valid_pid). This preserves the behavior from r206686
while preventing the undesired side effect.

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

13 years agoPull mergeinfo from r220370 up to etc/ where it belongs
dougb [Fri, 22 Apr 2011 23:42:23 +0000 (23:42 +0000)]
Pull mergeinfo from r220370 up to etc/ where it belongs

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

13 years agoMFC r220646: getfh(2): Add xrefs for fhopen(2), open(2), stat(2).
jilles [Fri, 22 Apr 2011 14:41:29 +0000 (14:41 +0000)]
MFC r220646: getfh(2): Add xrefs for fhopen(2), open(2), stat(2).

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

13 years agoMFC r220558.
hselasky [Fri, 22 Apr 2011 09:43:00 +0000 (09:43 +0000)]
MFC r220558.
  We don't need to call EOWRITE4(sc, EHCI_USBINTR, 0) directly from each EHCI
  bus driver at detach, hence ehci_detach() does exactly this since r199718.

Approved by: thompsa

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

13 years agoMFC r220649, r220874
np [Fri, 22 Apr 2011 02:22:36 +0000 (02:22 +0000)]
MFC r220649, r220874

r220649:
Fix a couple of bad races that can occur when a cxgbe interface is taken
down.  The ingress queue lock was unused and has been removed as part of
these changes.

- An in-flight egress update from the SGE must be handled before the
  queue that requested it is destroyed.  Wait for the update to arrive.

- Interrupt handlers must stop processing rx events for a queue before
  the queue is destroyed.  Events that have not yet been processed
  should be ignored once the queue disappears.

r220874:
Use Toeplitz hash for RSS.

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

13 years agoMFC r219939:
delphij [Fri, 22 Apr 2011 00:31:07 +0000 (00:31 +0000)]
MFC r219939:

humanize_number(3) multiply the input number by 100, which could cause an
integer overflow when the input is very large (for example, 100 Pi would
become about 10 Ei which exceeded signed int64_t).

Solve this issue by splitting the division into two parts and avoid the
multiplication.

PR: bin/146205
Reviewed by: arundel

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

13 years agoMFC r220801:
ru [Thu, 21 Apr 2011 09:34:44 +0000 (09:34 +0000)]
MFC r220801:

Changed "conscontrol unset" to accept an existing virtual
console device as an argument.  Unsetting virtual console
using /dev/console seems to have never worked.

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

13 years agoMFC r220621:
pluknet [Thu, 21 Apr 2011 09:01:43 +0000 (09:01 +0000)]
MFC r220621:

 Remove stale M_ZOMBIE malloc type.

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

13 years agoMerge from head/ 220745:
glebius [Thu, 21 Apr 2011 08:15:29 +0000 (08:15 +0000)]
Merge from head/ 220745:
  Fix error where error variable was assigned result of comparison,
  instead of function return value.

  Submitted by: Przemyslaw Frasunek <przemyslaw frasunek.com>

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

13 years agoMerge from head/ 220622:
glebius [Thu, 21 Apr 2011 08:13:44 +0000 (08:13 +0000)]
Merge from head/ 220622:
  Revert r194662, since it breaks ng_ksocket(4) and may break
  other socket consumers with alternate sb_upcall.

  PR:           kern/154676
  Submitted by: Arnaud Lacombe <lacombar gmail.com>

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

13 years agoMFC r218205,r218821,r218891,r219390,r219611,r220654,r220655,r220656: sh:
jilles [Wed, 20 Apr 2011 22:10:44 +0000 (22:10 +0000)]
MFC r218205,r218821,r218891,r219390,r219611,r220654,r220655,r220656: sh:
New testcases that already work in stable/8.

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

13 years agoFix CIDR parsing bug in mountd ACLs.
cperciva [Wed, 20 Apr 2011 21:00:24 +0000 (21:00 +0000)]
Fix CIDR parsing bug in mountd ACLs.

Approved by: so (cperciva)
Security: FreeBSD-SA-11:01.mountd

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

13 years agoMFC r220594:
pluknet [Wed, 20 Apr 2011 11:15:17 +0000 (11:15 +0000)]
MFC r220594:

 Remove the now defunct kern.ipc.nmbufs tunable.

PR: kern/132497 (part)

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

13 years agoMFC r220615:
mav [Tue, 19 Apr 2011 20:44:44 +0000 (20:44 +0000)]
MFC r220615:
Refactor hard-reset implementation in mvs(4).

Instead of spinning in a tight loop for up to 15 seconds, polling for device
readiness while it spins up, return reset completion just after PHY reports
"connect well" or 100ms connection timeout. If device was found, use callout
for checking device readiness with 100ms period up to full 31 second timeout.

This fixes system freeze for 5-10 seconds on drives hot plug-in.

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

13 years agoMFC r220789:
mav [Tue, 19 Apr 2011 20:41:00 +0000 (20:41 +0000)]
MFC r220789:
Handle ready timeout during polled operation same as done in mvs(4) before.

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

13 years agoMFC r220777:
mav [Tue, 19 Apr 2011 20:40:00 +0000 (20:40 +0000)]
MFC r220777:
 - Tune different wait loops to cut some more milliseconds from reset time.
 - Do not call ahci_start() before device signature received. It is required
by the specification and caused non-fatal reset timeouts on AMD chipsets.

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