]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC overview:
n_hibma [Sat, 7 May 2011 22:20:01 +0000 (22:20 +0000)]
MFC overview:
- Fix busg in events provided to devd from the USB stack.
- Provide more info on the u3g devices that attached.
- Make the ucom device numbering more sane.

MFC r214429

Add support for setting per-interface PnP information.

MFC r214761

- Simplify the way unit/subunit allocation is done in ucom.
- hw.usb.ucom.cons_unit is now split into
  hw.usb.ucom.cons_unit/...cons_subunit.

  Note: The tunable/sysctl hw.usb.ucom.cons_unit needs to be reviewed if

  a) a console was defined a USB serial devices, and a USB device with
  more than 1 subunit is present, and this device is attached before the
  device functioning as a console

  or

  b) a console was defined on a USB device with more than 1 subunit

MFC r214809

  Don't terminate the notification with \n. This is done in
  usb_device.c:devctl_notify_f().

MFC r214830

Bugfix: Move the 'at <location string' to the beginning of the attach
notification. devd would stop evaluating at 'at' (not '<k>=<v>') and
hence prevent 'port=X' (and 'bus=<"on" string>) from making it into the
environment for the devd action.

MFC r214831

- Remove an unused entry from the softc (only used in a debugging printf).
- Fix the loop count on detach (causing a panic on detaching a serial
  dongle).
- Increase a buffer in case some driver want extra long tty device names
  (postfixing the purpose of the tty for example, e.g. u3g.ppp).

MFC r214843

Implement ucom_set_pnpinfo_usb() providing ttyname and port number
information through devd. My E220 now produces the notification (1 line):

        +u3g0 at bus=1 hubaddr=1 port=0 devaddr=2 interface=0 \
        vendor=0x12d1 product=0x1003 devclass=0x00 devsubclass=0x00 \
        sernum="" release=0x0000 intclass=0xff intsubclass=0xff \
        ttyname=U0 ttyports=2 on uhub0

Note: serial/ufoma and net/uhso still provide port number and tty name
(uhso only) information through sysctls, which should now be removed.

MFC r214919

Bugfix: Set the bit that marks a device number in use.
This would cause a panic when disconnecting the second serial device.

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

13 years agoMFC r216719:
kaiw [Sat, 7 May 2011 10:35:43 +0000 (10:35 +0000)]
MFC r216719:

Document the syntax accepted by the `-M` option.

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

13 years agoMFC r216717:
kaiw [Sat, 7 May 2011 10:33:59 +0000 (10:33 +0000)]
MFC r216717:

Improve the description of the `-q` option.

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

13 years agoMFC r216716:
kaiw [Sat, 7 May 2011 10:32:52 +0000 (10:32 +0000)]
MFC r216716:

* Add mention of the `-f`, `-q`, `-S`, and `-V` options in the synopsis
  section.
* Document the `-l`, `-M` and `-S` options.
* Improve the text describing the behavior of the `-r` option.
* Start a section on standard compliance.
* Indicate in the synopsis that the `-S` and `-s` options are mutually
  exclusive.

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

13 years agoMFC r216014:
kaiw [Sat, 7 May 2011 10:31:34 +0000 (10:31 +0000)]
MFC r216014:

Add option -D for ranlib(1). When -D is speicified, ranlib(1) will generate
a deterministic archive symbol table (i.e. timestamp for the symbol table
member header is set to 0).

Submitted by:    Erik Cederstrand

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

13 years agoMFC r213643 (kientzle):
kaiw [Sat, 7 May 2011 10:27:23 +0000 (10:27 +0000)]
MFC r213643 (kientzle):

Add -D (deterministic) option to ar.
When set, it forces all timestamps and owners to zero and
modes to 0644.  Useful for producing libraries that are
bitwise identical across multiple build runs.

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

13 years agoMFC r208189:
kaiw [Sat, 7 May 2011 10:23:07 +0000 (10:23 +0000)]
MFC r208189:

Removed ar(1)'s support for compressed archives. This change removes
ar(1)'s dependencies on compressor libraries -lz, -lbz2 and -llzma and
fixes building HEAD on some versions of FreeBSD[78]. Option -j and -z
is now accepted but ignored.

Compressed ar(1) archives are not useful without a ld(1) that can read
them. Also, the current ar(1) compression scheme prevents random
access of archive members and needs to be redesigned anyway.

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

13 years agoMFC r201166 (kientzle):
kaiw [Sat, 7 May 2011 10:08:01 +0000 (10:08 +0000)]
MFC r201166 (kientzle):

ar only needs to support ar format.

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

13 years agoMFC r221388: SNDCTL_DSP_GETIPTR: set pointer to sndbuf_getfreeptr()
avg [Sat, 7 May 2011 09:26:11 +0000 (09:26 +0000)]
MFC r221388: SNDCTL_DSP_GETIPTR: set pointer to sndbuf_getfreeptr()

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

13 years agoMFC 198441 [1]:
gjb [Sat, 7 May 2011 03:29:22 +0000 (03:29 +0000)]
MFC 198441 [1]:

manlint fixes.

Reported by: manlint
Obtained from: rpaulo [1]

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

13 years agoMFC 205076 [1]:
gjb [Sat, 7 May 2011 03:09:16 +0000 (03:09 +0000)]
MFC 205076 [1]:

manlint fixes.

Reported by: manlint
Obtained from: uqs [1]

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

13 years agoMFC 205076 [1], 209034 [1], 211406 [2]:
gjb [Sat, 7 May 2011 02:37:34 +0000 (02:37 +0000)]
MFC 205076 [1], 209034 [1], 211406 [2]:

manlint fixes.

Reported by: manlint
Obtained from: uqs[1], joel[2]

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

13 years agoMFC: r220967
rmacklem [Sat, 7 May 2011 02:00:35 +0000 (02:00 +0000)]
MFC: r220967
Fix a LOR in vfs_busy() where, after msleeping, it would lock
the mutexes in the wrong order for the case where the
MBF_MNTLSTLOCK is set. I believe this did have the
potential for deadlock. For example, if multiple nfsd threads
called vfs_busyfs(), which calls vfs_busy() with MBF_MNTLSTLOCK.
Thanks go to pho for catching this during his testing.

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

13 years agoMFC r218422:
n_hibma [Fri, 6 May 2011 22:07:31 +0000 (22:07 +0000)]
MFC r218422:

 Curitel UM150 needs a quirk to stop it from detaching straight after
 attach (resetting actually).

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

13 years agoMFC r217637,218178
n_hibma [Fri, 6 May 2011 21:09:33 +0000 (21:09 +0000)]
MFC r217637,218178

 Add another ID for the ZTE MF190 Surf Stick
 New ID for the Novatel MC547

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

13 years agoMFC: r216962
marius [Fri, 6 May 2011 20:04:47 +0000 (20:04 +0000)]
MFC: r216962

Inherit the APB and the generic OFW PCI-PCI bridge driver from the generic
PCI-PCI bridge driver in order to safe some code.

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

13 years agoMFC: r221343
marius [Fri, 6 May 2011 20:02:23 +0000 (20:02 +0000)]
MFC: r221343

Fix an logic bug which caused jumbo buffers to not be synced and unloaded.
Reported and tested by: Michael Moll

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

13 years agoMFC r221401:
delphij [Fri, 6 May 2011 18:40:51 +0000 (18:40 +0000)]
MFC r221401:

Fix prototype for ffsll(3) and fls(3).

PR: docs/156796
Submitted by: Jean-Yves Migeon <jeanyves.migeon free.fr>

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

13 years agoMFC r220198:
fabient [Fri, 6 May 2011 14:05:32 +0000 (14:05 +0000)]
MFC r220198:
Clearing the flag when preempting will let the preempted thread run
too much time. This can finish in a scheduler deadlock with ping-pong
between two threads.

One sample of this is:
 - device lapic (to have a preemption point on critical_exit())
 - options DEVICE_POLLING with HZ>1499 (to have lapic freq = hardclock freq)
 - running a cpu intensive task (that does not enter the kernel)
 - only one CPU on SMP or no SMP.

As requested by jhb@ 4BSD have received the same type of fix instead of
propagating the flag to the new thread.

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

13 years agoMFC r220206:
fabient [Fri, 6 May 2011 13:24:10 +0000 (13:24 +0000)]
MFC r220206:
Optimisation in IPSEC(4):
 - Remove contention on ISR during the crypto operation by using rwlock(9).
 - Remove a second lookup of the SA in the callback.

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

13 years agoMFC r220194:
fabient [Fri, 6 May 2011 13:12:45 +0000 (13:12 +0000)]
MFC r220194:
Fix two SA refcount:
 - AH does not release the SA like in ESP/IPCOMP when handling EAGAIN
 - ipsec_process_done incorrectly release the SA.

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

13 years agoMFC r220903: sh: Do not word split "${#parameter}".
jilles [Fri, 6 May 2011 12:49:32 +0000 (12:49 +0000)]
MFC r220903: sh: Do not word split "${#parameter}".

This is only a problem if IFS contains digits, which is unusual but valid.

Because of an incorrect fix for PR bin/12137, "${#parameter}" was treated
as ${#parameter}. The underlying problem was that "${#parameter}"
erroneously added CTLESC bytes before determining the length. This
was properly fixed for PR bin/56147 but the incorrect fix was not backed
out.

Reported by: Seeker on forums.freebsd.org

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

13 years agoMFC r221012: sh: Check setuid()/setgid() return values.
jilles [Thu, 5 May 2011 22:07:02 +0000 (22:07 +0000)]
MFC r221012: sh: Check setuid()/setgid() return values.

If the -p option is turned off, privileges from a setuid or setgid binary
are dropped. Make sure to check if this succeeds. If it fails, this is an
error which will cause the shell to abort except in interactive mode or if
'command' was used to make 'set' or an outer 'eval' or '.' non-special.

Note that taking advantage of this feature and writing setuid shell scripts
seems unwise.

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

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