]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoAdd a new macro, release.current.release, to denote the head/ branch
Glen Barber [Sun, 23 Jun 2013 20:19:00 +0000 (20:19 +0000)]
Add a new macro, release.current.release, to denote the head/ branch
with the -RELEASE suffix.  This fixes the incorrect text on the -CURRENT
errata page from showing '10.0-CURRENT' followed by 'until 9.1-RELEASE is
released.'

11 years agoAdd missing copyright years.
Glen Barber [Sun, 23 Jun 2013 19:47:59 +0000 (19:47 +0000)]
Add missing copyright years.

11 years agoCache the Open Firmware CPU properties at attach time, so we don't always
Justin Hibbits [Sun, 23 Jun 2013 14:20:54 +0000 (14:20 +0000)]
Cache the Open Firmware CPU properties at attach time, so we don't always
enter it at runtime to get static data.

11 years agoAdd a newline character to the end of the "Check URL again" error message
Devin Teske [Sun, 23 Jun 2013 10:51:26 +0000 (10:51 +0000)]
Add a newline character to the end of the "Check URL again" error message
because long URLs do not induce extra height despite wrapping by dialog(1).
NOTE: For even longer lines, the cursor up/down keys work to scroll through

11 years agoMerge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):
Devin Teske [Sun, 23 Jun 2013 10:48:26 +0000 (10:48 +0000)]
Merge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):
Add support for installation directly via HTTP.

While we're here, remove the menu-item for Passive FTP (since moving to
ftp(1) and switching FTPMODE to `auto' by default -- see r251613 -- the
single remaining FTP menu-item works for both ftp.f.o and ftp-archive.f.o;
previously each requiring separately active versus passive both work with
the `auto' setting). In scripting you still have mediaSetFTPActive and
mediaSetFTPPassive but the remaining FTP menu-item uses mediaSetFTP which
defaults to `auto' (aforementioned SVN r251613).

11 years agoImplement the $probe_only parameter (previously unimplemented).
Devin Teske [Sun, 23 Jun 2013 10:04:23 +0000 (10:04 +0000)]
Implement the $probe_only parameter (previously unimplemented).

11 years agoFine-tune the parsing of the URL. Re-order, comment, and add debugging to
Devin Teske [Sun, 23 Jun 2013 09:41:47 +0000 (09:41 +0000)]
Fine-tune the parsing of the URL. Re-order, comment, and add debugging to
each case of unique URL format.

11 years agoDefine and use e2fs_lbn_t in ext2fs.
Pedro F. Giffuni [Sun, 23 Jun 2013 02:44:42 +0000 (02:44 +0000)]
Define and use e2fs_lbn_t in ext2fs.

In line to what is done in UFS, define an internal type
e2fs_lbn_t for the logical block numbers.

This change is basically a no-op as the new type is unchanged
(int32_t) but it may be useful as bumping this may be required
for ext4fs.

Also, as pointed out by Bruce Evans:

-Use daddr_t for daddr in ext2_bmaparray(). This seems to
improve reliability with the reallocblks option.
- Add a cast to the fsbtodb() macro as in UFS.

Reviewed by: bde
MFC after: 3 days

11 years agoIf MAKE_CONF and/or SRC_CONF are set and not character devices,
Glen Barber [Sat, 22 Jun 2013 22:12:24 +0000 (22:12 +0000)]
If MAKE_CONF and/or SRC_CONF are set and not character devices,
copy to chroot to use with release build.

Submitted by: Garrett Cooper (original version)
Approved by: kib (mentor)
MFC after: 1 week

11 years agoFix r252074 so that it builds on 64bit arches.
Rick Macklem [Sat, 22 Jun 2013 21:58:21 +0000 (21:58 +0000)]
Fix r252074 so that it builds on 64bit arches.

11 years agoFix a code typo that prevented the probing of the current defaultrouter
Devin Teske [Sat, 22 Jun 2013 03:54:17 +0000 (03:54 +0000)]
Fix a code typo that prevented the probing of the current defaultrouter
in-order to pre-populate the editor.

11 years agoOops, previous revision (r252084) broke non-full-path resolution (e.g.,
Devin Teske [Sat, 22 Jun 2013 03:50:14 +0000 (03:50 +0000)]
Oops, previous revision (r252084) broke non-full-path resolution (e.g.,
ftp://ftp.freebsd.org or ftp://ftp.freebsd.org/). Now both full-path and
non-full resolution is working regardless of trailing-slash.

11 years agoTrim the trailing `/' from the ftp_dir when validating that the directory
Devin Teske [Sat, 22 Jun 2013 03:44:49 +0000 (03:44 +0000)]
Trim the trailing `/' from the ftp_dir when validating that the directory
exists on the FTP server. This now means that when you specify a full-path
to the repository on the FTP server that it doesn't matter whether you have
a trailing `/' or not.

11 years agoTake advantage of the fact that f_getvar evaluates the $var_to_get parameter
Devin Teske [Sat, 22 Jun 2013 02:57:52 +0000 (02:57 +0000)]
Take advantage of the fact that f_getvar evaluates the $var_to_get parameter
within braces, allowing all manner of parameter expansions (properly quoted
or escaped, of course).

11 years agoFix a regression introduced by r251967, resulting in:
Devin Teske [Sat, 22 Jun 2013 02:51:22 +0000 (02:51 +0000)]
Fix a regression introduced by r251967, resulting in:

/usr/libexec/bsdconfig/110.mouse/mouse: 134:
Syntax error: ";;" unexpected (expecting "fi")

11 years agoFix a regression introduced by r251967, resulting in:
Devin Teske [Sat, 22 Jun 2013 02:47:54 +0000 (02:47 +0000)]
Fix a regression introduced by r251967, resulting in:

/usr/libexec/bsdconfig/080.console/console: 136:
Syntax error: ";;" unexpected (expecting "fi")

11 years agoAdd missing local declaration.
Devin Teske [Fri, 21 Jun 2013 23:21:16 +0000 (23:21 +0000)]
Add missing local declaration.

11 years agoRemove unused library include.
Devin Teske [Fri, 21 Jun 2013 23:18:29 +0000 (23:18 +0000)]
Remove unused library include.

11 years agoAlphabetize library includes.
Devin Teske [Fri, 21 Jun 2013 23:13:55 +0000 (23:13 +0000)]
Alphabetize library includes.

11 years agoStyle.
Devin Teske [Fri, 21 Jun 2013 22:53:51 +0000 (22:53 +0000)]
Style.

11 years agoTypo and grammar fixes to comments.
Devin Teske [Fri, 21 Jun 2013 22:47:31 +0000 (22:47 +0000)]
Typo and grammar fixes to comments.

11 years agoThe NFSv4.1 LayoutCommit operation requires a valid offset and length.
Rick Macklem [Fri, 21 Jun 2013 22:46:16 +0000 (22:46 +0000)]
The NFSv4.1 LayoutCommit operation requires a valid offset and length.
(0, 0 is not sufficient) This patch a loop for each file layout, using
the offset, length of each file layout in a separate LayoutCommit.

11 years agoWhen the NFSv4.1 client is writing to a pNFS Data Server (DS), the
Rick Macklem [Fri, 21 Jun 2013 22:26:18 +0000 (22:26 +0000)]
When the NFSv4.1 client is writing to a pNFS Data Server (DS), the
file's size attribute does not get updated. As such, it is necessary
to invalidate the attribute cache before clearing NMODIFIED for pNFS.

MFC after: 2 weeks

11 years agoSince some NFSv4 servers enforce the requirement for a reserved port#,
Rick Macklem [Fri, 21 Jun 2013 19:41:30 +0000 (19:41 +0000)]
Since some NFSv4 servers enforce the requirement for a reserved port#,
enable use of the (no)resvport mount option for NFSv4. I had thought
that the RFC required that non-reserved port #s be allowed, but I couldn't
find it in the RFC.

MFC after: 2 weeks

11 years agoRename run(4) firmware file from runfw to run.fw. Previous name was the
Oleksandr Tymoshenko [Fri, 21 Jun 2013 18:16:54 +0000 (18:16 +0000)]
Rename run(4) firmware file from runfw to run.fw. Previous name was the
same as top-level target name for "device runfw" kernel option and
caused cyclic dependancy that lead to kernel build breakage

Module change is not strictly required and done for name unification sake

PR: conf/175751
Submitted by:     Issei <i10a at herbmint.jp>

11 years agoCall sshd_precmd instead of sshd_configtest when the operator
Xin LI [Fri, 21 Jun 2013 17:23:19 +0000 (17:23 +0000)]
Call sshd_precmd instead of sshd_configtest when the operator
requests reload or restart, which, in addition of testing the
configuration, will also generate host keys when they are not
present (previous behavior).

Obtained from: FreeNAS
Ok'ed by: bdrewery, des
MFC after: 1 week

11 years agoSwitch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h
Steven Hartland [Fri, 21 Jun 2013 15:55:03 +0000 (15:55 +0000)]
Switch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h

MFC after: 1 week

11 years agoFix intermittent ZFS lock panic when kernel is compiled with debugging caused
Steven Hartland [Fri, 21 Jun 2013 15:47:10 +0000 (15:47 +0000)]
Fix intermittent ZFS lock panic when kernel is compiled with debugging caused
by access of uninitialized smlock in mmutex_init.

MFC after: 1 week

11 years agoFixed ZFS zpool freeze (debug command) not processing due to invalid ioctl call syntax.
Steven Hartland [Fri, 21 Jun 2013 15:30:46 +0000 (15:30 +0000)]
Fixed ZFS zpool freeze (debug command) not processing due to invalid ioctl call syntax.

MFC after: 1 week

11 years agoFixed import of destroyed ZFS pools failing due to vdev_geom incorrectly
Steven Hartland [Fri, 21 Jun 2013 12:02:09 +0000 (12:02 +0000)]
Fixed import of destroyed ZFS pools failing due to vdev_geom incorrectly
preventing config loads from devices associated with destroyed pools.

Reviewed by: avg
MFC after: 1 week

11 years agoFix kmod_*stat_inc() after r249276. The incorrect code actually
Gleb Smirnoff [Fri, 21 Jun 2013 06:36:26 +0000 (06:36 +0000)]
Fix kmod_*stat_inc() after r249276. The incorrect code actually
increased the pointer, not the memory it points to.

In collaboration with: kib
Reported & tested by: Ian FREISLICH <ianf clue.co.za>
Sponsored by: Nginx, Inc.

11 years agoNon-virtualised hhook points are supported as of r251732.
Lawrence Stewart [Fri, 21 Jun 2013 03:37:35 +0000 (03:37 +0000)]
Non-virtualised hhook points are supported as of r251732.

MFC after: 1 week
X-MFC with: 251732

11 years ago- Use length of _PATH_DEV instead of a hardcoded value[*].
Hiroki Sato [Fri, 21 Jun 2013 01:47:22 +0000 (01:47 +0000)]
- Use length of _PATH_DEV instead of a hardcoded value[*].
- Use MD_NAME for "md".

Pointed out by: trasz [*]
MFC after: 1 week

11 years agoCorrected ATA Passthrough defines from decimal to hex
Steven Hartland [Thu, 20 Jun 2013 21:38:08 +0000 (21:38 +0000)]
Corrected ATA Passthrough defines from decimal to hex

Reviewed by: scottl
MFC after: 1 week

11 years agoPorts switched from dialog to dialog4ports some time ago.
Eitan Adler [Thu, 20 Jun 2013 21:16:46 +0000 (21:16 +0000)]
Ports switched from dialog to dialog4ports some time ago.

PR: docs/179785
Repored by: Kevin Oberman <rkoberman@gmail.com>
Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru>
MFC After: 3 days

11 years ago - Add a per-zone lock for zones without kegs.
Jeff Roberson [Thu, 20 Jun 2013 19:08:12 +0000 (19:08 +0000)]
 - Add a per-zone lock for zones without kegs.
 - Be more explicit about zone vs keg locking.  This functionally changes
   almost nothing.
 - Add a size parameter to uma_zcache_create() so we can size the buckets.
 - Pass the zone to bucket_alloc() so it can modify allocation flags
   as appropriate.
 - Fix a bug in zone_alloc_bucket() where I missed an address of operator
   in a failure case.  (Found by pho)

Sponsored by: EMC / Isilon Storage Division

11 years agoPull in r183984 from llvm trunk:
Dimitry Andric [Thu, 20 Jun 2013 18:25:10 +0000 (18:25 +0000)]
Pull in r183984 from llvm trunk:

  Make PrologEpilogInserter save/restore all callee saved registers in
  functions which call __builtin_unwind_init()

  __builtin_unwind_init() is an undocumented gcc intrinsic which has
  this effect, and is used in libgcc_eh.

  Goes part of the way toward fixing PR8541.

This obsoletes the ugly hack to libgcc's unwind code from r245272, and
should also work for other arches, so revert the hack too.

11 years agoDocument RA_RECURSED and RA_NOTRECURSED.
John Baldwin [Thu, 20 Jun 2013 17:26:25 +0000 (17:26 +0000)]
Document RA_RECURSED and RA_NOTRECURSED.

MFC after: 3 days

11 years agoeturn -1 when the specified backing store file is not found in the md
Hiroki Sato [Thu, 20 Jun 2013 17:01:02 +0000 (17:01 +0000)]
eturn -1 when the specified backing store file is not found in the md
device list.

MFC after: 1 week

11 years ago- Add "-f file" support to listing mode (-l). When a -f option is
Hiroki Sato [Thu, 20 Jun 2013 14:30:16 +0000 (14:30 +0000)]
- Add "-f file" support to listing mode (-l).  When a -f option is
  specified, only md(4) devices which have the specified file as backing
  store are displayed.
- Use MD_NAME instead of "md".
- Use _PATH_DEV instead of "/dev/".

MFC after: 1 week

11 years agoAllow immediate operand.
Konstantin Belousov [Thu, 20 Jun 2013 14:30:04 +0000 (14:30 +0000)]
Allow immediate operand.

Sponsored by: The FreeBSD Foundation

11 years agoUse corresponding macros to update statistics for AH, ESP, IPIP, IPCOMP,
Andrey V. Elsukov [Thu, 20 Jun 2013 11:44:16 +0000 (11:44 +0000)]
Use corresponding macros to update statistics for AH, ESP, IPIP, IPCOMP,
PFKEY.

MFC after: 2 weeks

11 years agoUse IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
Andrey V. Elsukov [Thu, 20 Jun 2013 09:55:53 +0000 (09:55 +0000)]
Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
accounting.

MFC after: 2 weeks

11 years agoFix a code typo in a case-statement match expression that prevented IPv6
Devin Teske [Thu, 20 Jun 2013 07:29:42 +0000 (07:29 +0000)]
Fix a code typo in a case-statement match expression that prevented IPv6
URLs with port designator from working properly (e.g. http://[::1]:80/).

11 years agoWhen the fall-back of a case-statement is the last thing executed in a
Devin Teske [Thu, 20 Jun 2013 05:51:44 +0000 (05:51 +0000)]
When the fall-back of a case-statement is the last thing executed in a
while-loop _and_ all prior matches in the same case-statement either break
or continue, we can safely break the fall-back out of the case-statement.
This should improve readability and allow for longer-lines by reducing the
level of indentation by-one for the fall-back case.
(a continuation of SVN r252019)

11 years agoWhen the fall-back of a case-statement is the last thing executed in a
Devin Teske [Thu, 20 Jun 2013 05:48:08 +0000 (05:48 +0000)]
When the fall-back of a case-statement is the last thing executed in a
while-loop _and_ all prior matches in the same case-statement either break
or continue, we can safely break the fall-back out of the case-statement.
This should improve readability and allow for longer-lines by reducing the
level of indentation by-one for the fall-back case.

11 years agoRemove pedanticism and consolidate some logic.
Devin Teske [Thu, 20 Jun 2013 05:42:21 +0000 (05:42 +0000)]
Remove pedanticism and consolidate some logic.

11 years agoAdd debugging (for a case that shouldn't arise, but makes it more obvious
Devin Teske [Thu, 20 Jun 2013 05:40:11 +0000 (05:40 +0000)]
Add debugging (for a case that shouldn't arise, but makes it more obvious
if a menu addition is made in one plce but forgotten in another).

11 years ago- Add CIDR notation support like 192.168.1-2.10-16/24 to $ifconfig_IF_aliasN.
Hiroki Sato [Thu, 20 Jun 2013 02:29:49 +0000 (02:29 +0000)]
- Add CIDR notation support like 192.168.1-2.10-16/24 to $ifconfig_IF_aliasN.
  This is an extended version of ipv4_addr_IF which supports both IPv4 and
  IPv6, and multiple range specifications.  To avoid to generate too many
  addresses, the maximum number of the generated addresses is currently
  limited to 31.

- Add $ifconfig_IF_aliases, which accepts multiple IP aliases in a variable.

- ipv6_prefix_IF now supports !/64 prefix length.  In addition to the old
  64-bit format (2001:db8:1:1), a full 128-bit format like 2001:db8:1:1::/64
  is supported.

- Replace ifconfig command with $IFCONFIG_CMD variable to support
  a dry-run mode in the future.

- Remove IP aliases before removing all of IPv4 addresses when doing
  "rc.d/netif down".

- Add a DAD wait to network6_getladdr() because it is possible to fail to
  configure an EUI64 address when ipv6_prefix_IF is specified.

A summary of the supported ifconfig_* variables is as follows:

 # IPv4 configuration.
 ifconfig_em0="inet 192.168.0.1"
 # IPv6 configuration.
 ifconfig_em0_ipv6="inet6 2001:db8::1/64"
 # IPv4 address range spec.  Now deprecated.
 ipv4_addr_em0="10.2.1.1-10"
 # IPv6 alias.
 ifconfig_em0_alias0="inet6 2001:db8:5::1 prefixlen 70"
 # IPv4 alias.
 ifconfig_em0_alias1="inet 10.2.2.1/24"
 # IPv4 alias with range spec w/o AF keyword (backward compat).
 ifconfig_em0_alias2="10.3.1.1-10/32"
 # IPv6 alias with range spec.
 ifconfig_em0_alias3="inet6 2001:db8:20-2f::1/64"
 # ifconfig_IF_aliases is just like ifconfig_IF_aliasN.
 ifconfig_em0_aliases="inet 10.3.3.201-204/24 inet6 2001:db8:210-213::1/64 inet 10.1.1.1/24"
 # IPv6 alias (backward compat)
 ipv6_ifconfig_em0_alias0="inet6 2001:db8:f::1/64"
 # IPv6 alias w/o AF keyword (backward compat)
 ipv6_ifconfig_em0_alias1="2001:db8:f:1::1/64"
 # IPv6 prefix.
 ipv6_prefix_em0="2001:db8::/64"

Tested by: Kimmo Paasiala

11 years agoOnly enable svn on amd64/ia64/sparc64/i386.
Peter Wemm [Thu, 20 Jun 2013 02:26:32 +0000 (02:26 +0000)]
Only enable svn on amd64/ia64/sparc64/i386.

11 years agoTry to fix build of apr on FreeBSD/arm.
Tim Kientzle [Thu, 20 Jun 2013 02:04:03 +0000 (02:04 +0000)]
Try to fix build of apr on FreeBSD/arm.

11 years agoRename some prefixes in the Block Group Descriptor fields to ext4bgd_
Pedro F. Giffuni [Thu, 20 Jun 2013 00:00:33 +0000 (00:00 +0000)]
Rename some prefixes in the Block Group Descriptor fields to ext4bgd_

Change prefix to avoid confusion and denote that these fields
are generally only available starting with ext4.

MFC after: 3 days

11 years agoFix a mystery cut-n-paste corruption from the previous commit.
Scott Long [Wed, 19 Jun 2013 23:09:10 +0000 (23:09 +0000)]
Fix a mystery cut-n-paste corruption from the previous commit.

Submitted by: Brenden Fabeny

11 years agoMark geom_mirror as capable of unmapped i/o
Scott Long [Wed, 19 Jun 2013 21:52:32 +0000 (21:52 +0000)]
Mark geom_mirror as capable of unmapped i/o

Obtained from: Netflix
MFC after: 3 days

11 years agoUse PIM6STAT_INC() and MRT6STAT_INC() macros for IPv6 multicast
Andrey V. Elsukov [Wed, 19 Jun 2013 21:50:17 +0000 (21:50 +0000)]
Use PIM6STAT_INC() and MRT6STAT_INC() macros for IPv6 multicast
statistics accounting.

MFC after: 2 weeks

11 years agoUse RIP6STAT_INC() macro for raw ip6 statistics accounting.
Andrey V. Elsukov [Wed, 19 Jun 2013 20:48:34 +0000 (20:48 +0000)]
Use RIP6STAT_INC() macro for raw ip6 statistics accounting.

MFC after: 2 weeks

11 years agoFix a couple of typos that broke buildworld for me.
Don Lewis [Wed, 19 Jun 2013 19:44:57 +0000 (19:44 +0000)]
Fix a couple of typos that broke buildworld for me.

Reviewed by: peter

11 years agoStyle -- no ;; needed on fallback clause within case-statement.
Devin Teske [Wed, 19 Jun 2013 18:44:55 +0000 (18:44 +0000)]
Style -- no ;; needed on fallback clause within case-statement.

11 years agoWhitespace.
Devin Teske [Wed, 19 Jun 2013 18:32:18 +0000 (18:32 +0000)]
Whitespace.

11 years agoWhitespace and comments.
Devin Teske [Wed, 19 Jun 2013 18:13:58 +0000 (18:13 +0000)]
Whitespace and comments.

11 years agoAlphabetize reserved-word (resword) registration.
Devin Teske [Wed, 19 Jun 2013 17:14:59 +0000 (17:14 +0000)]
Alphabetize reserved-word (resword) registration.

11 years agoAlphabetize includes.
Devin Teske [Wed, 19 Jun 2013 17:13:16 +0000 (17:13 +0000)]
Alphabetize includes.

11 years agoUse ICMP6STAT_INC() macro for ICMPv6 errors accounting.
Andrey V. Elsukov [Wed, 19 Jun 2013 15:59:21 +0000 (15:59 +0000)]
Use ICMP6STAT_INC() macro for ICMPv6 errors accounting.

MFC after: 2 weeks

11 years agoFix an unfortunate typo with the compat shims
Scott Long [Wed, 19 Jun 2013 05:11:30 +0000 (05:11 +0000)]
Fix an unfortunate typo with the compat shims

Obtained from: Netflix
MFC after: now

11 years agoSome clarifications and updates for the comments, mostly retrieved
Konstantin Belousov [Wed, 19 Jun 2013 05:05:16 +0000 (05:05 +0000)]
Some clarifications and updates for the comments, mostly retrieved
from Bruce Evans.  Trim the trailing spaces.

MFC after: 1 week

11 years agoThe SUSv4tc1 requires that pthread_setcancelstate() shall be not a
Konstantin Belousov [Wed, 19 Jun 2013 04:47:41 +0000 (04:47 +0000)]
The SUSv4tc1 requires that pthread_setcancelstate() shall be not a
cancellation point.  When enabling the cancellation, only process the
pending cancellation for asynchronous mode.

Reported and reviewed by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

11 years agoWhen a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an
Lawrence Stewart [Wed, 19 Jun 2013 03:08:01 +0000 (03:08 +0000)]
When a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an
mbuf that was fully consumed by the previous call, the mbuf ptr returned by the
current call ends up being the previous mbuf in the sb chain to the one that
contains the data we want.

This does not cause any observable issues because the mbuf copy routines happily
walk the mbuf chain to get to the data at the moff offset, which in this case
means they effectively skip over the mbuf returned by sbsndptr().

We can't adjust sb->sb_sndptr during the previous call for this case because the
next mbuf in the chain may not exist yet. We therefore need to detect the
condition and make the adjustment during the current call.

Fix by detecting the special case of moff being at the start of the next mbuf in
the chain and adjust the required accounting variables accordingly.

Reviewed by: andre
MFC after: 2 weeks

11 years ago - Persist the caller's flags in the bucket allocation flags so we don't
Jeff Roberson [Wed, 19 Jun 2013 02:30:32 +0000 (02:30 +0000)]
 - Persist the caller's flags in the bucket allocation flags so we don't
   lose a M_NOVM when we recurse into a bucket allocation.

Sponsored by: EMC / Isilon Storage Division

11 years agoBandaid: mips doesn't seem to have the full set of atomics builtins. I
Peter Wemm [Wed, 19 Jun 2013 02:16:04 +0000 (02:16 +0000)]
Bandaid: mips doesn't seem to have the full set of atomics builtins.  I
will investigate more.

11 years agoRemove extra whitespace lines.
Devin Teske [Wed, 19 Jun 2013 00:24:08 +0000 (00:24 +0000)]
Remove extra whitespace lines.

11 years agoChange a humongous if-statement at the end of f_install_zoneinfo_file() into
Devin Teske [Wed, 19 Jun 2013 00:13:54 +0000 (00:13 +0000)]
Change a humongous if-statement at the end of f_install_zoneinfo_file() into
an early return, allowing a huge chunk of code to be indented one-level less

11 years agoTake advantage of newly updated f_dialog_{yesno,noyes}() functions from
Devin Teske [Wed, 19 Jun 2013 00:09:21 +0000 (00:09 +0000)]
Take advantage of newly updated f_dialog_{yesno,noyes}() functions from
SVN r251977 (adding an $hline parameter).

11 years agoWhen I first wrote the timezone module, it was in sysutils/tzdialog and it
Devin Teske [Wed, 19 Jun 2013 00:08:29 +0000 (00:08 +0000)]
When I first wrote the timezone module, it was in sysutils/tzdialog and it
pre-dates bsdconfig. Update the code to take advantage of f_dialog_msgbox().

11 years agoChange the f_dialog_{yesno,noyes}() function-arguments in `dialog.subr' to
Devin Teske [Tue, 18 Jun 2013 23:48:05 +0000 (23:48 +0000)]
Change the f_dialog_{yesno,noyes}() function-arguments in `dialog.subr' to
accomodate an $hline value for overriding the default. This change does
not effect any current modules as it turns out that not one single usage of
either f_dialog_yesno() or f_dialog_noyes() relied on accepting more than a
first argument (read: all occurrences quoted the first parameter; so $* was
never depended upon).

This will allow some custom invocations of --yesno and --noyes to roll over
to these functions (for example, in `timezone/timezone').

11 years agoFix a gcc warning uncovered after r251745.
Sergey Kandaurov [Tue, 18 Jun 2013 23:31:09 +0000 (23:31 +0000)]
Fix a gcc warning uncovered after r251745.

Reported by: Sergey V. Dyatko
Reviewed by: neel

11 years agoPerform some code consolidation and replace nested case-statements with
Devin Teske [Tue, 18 Jun 2013 23:18:32 +0000 (23:18 +0000)]
Perform some code consolidation and replace nested case-statements with
more logical if-else statements for each menu selection.

11 years agoFix a regression introduced by r251967, resulting in:
Devin Teske [Tue, 18 Jun 2013 23:14:45 +0000 (23:14 +0000)]
Fix a regression introduced by r251967, resulting in:

/usr/libexec/bsdconfig/140.startup/startup: 130:
Syntax error: ";;" unexpected (expecting "fi")

11 years agoWhitespace.
Devin Teske [Tue, 18 Jun 2013 23:11:36 +0000 (23:11 +0000)]
Whitespace.

11 years agoPerform some code consolidation and add some additional error
Devin Teske [Tue, 18 Jun 2013 21:44:35 +0000 (21:44 +0000)]
Perform some code consolidation and add some additional error
checking/reporting. (similar to SVN revisions 251919 and 251928)

11 years agoTeach delete-old how to clean up after WITH/WITHOUT_SVN{LITE} permutations.
Peter Wemm [Tue, 18 Jun 2013 21:41:06 +0000 (21:41 +0000)]
Teach delete-old how to clean up after WITH/WITHOUT_SVN{LITE} permutations.

11 years agoComments.
Devin Teske [Tue, 18 Jun 2013 21:35:38 +0000 (21:35 +0000)]
Comments.

11 years agoAdd quad port probe support, this gives the admin proper information about the slot
Jack F Vogel [Tue, 18 Jun 2013 21:28:19 +0000 (21:28 +0000)]
Add quad port probe support, this gives the admin proper information about the slot
(which should be a PCIE Gen 3 slot for this adapter) by looking back thru the PCI
parent devices to the slot device.

The fix above also corrects the bandwidth display to GT/s rather than the
incorrect Gb/s

Next, allow the use of ALTQ if you select the compile option IXGBE_LEGACY_TX.

Allow the use of 'unsupported' optic modules by a compile option as well.

Add a phy reset capability into the stop code, this is so a static configured
driver will still behave properly when taken down (not being able to unload it).

This revision synchronizes the shared code with Intel internal current code,
and note that it now includes DCB supporting code, this was necessitated by
some internal changes with the code, but it also will provide the opportunity
to develop this feature in the core driver down the road.

I have edited the README to get rid of some of the worse anachronisms in it
as well, its by no means as robust as I might wish at this point however.

Oh, I also have included some conditional stuff in the code so it will be
compatible in both the 9.X and 10 environments.

Performance has been a focus in recent changes and I believe this revision
driver will perform very well in most workloads.

MFC after: 2 weeks

11 years agoOn some generations of the Intel GPU, disabling of the VGA Display
Konstantin Belousov [Tue, 18 Jun 2013 20:19:09 +0000 (20:19 +0000)]
On some generations of the Intel GPU, disabling of the VGA Display
stops updating the vertical retrace indicator.  The text mouse
renderer in syscons is executing from the callout and spins waiting
for the start of next frame.  As result, after the X server finishes,
since the VGA cannot be turned on, but syscons does not know about
this, the clock swi spins forever.

Hack around the problem by disabling wait for the retrace if KMS is
activated.

Diagnosed and tested by: Michiel Boland <boland37@xs4all.nl>
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

11 years agoSince the gem pagefault handler relocks the vm object lock, other
Konstantin Belousov [Tue, 18 Jun 2013 20:02:52 +0000 (20:02 +0000)]
Since the gem pagefault handler relocks the vm object lock, other
thread might fault on the same GTT offset meantime and instantiate the
mapping.  Recheck that the mgt device object still does not have a
page at the current offset after relocking, and return a possibly
installed page.

Reported by: Oleg Sidorkin <osidorkin@gmail.com>
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

11 years agoRemove stray empty line.
Konstantin Belousov [Tue, 18 Jun 2013 19:56:52 +0000 (19:56 +0000)]
Remove stray empty line.

MFC after: 3 days

11 years agoFix use after free bug.
Simon J. Gerraty [Tue, 18 Jun 2013 19:35:51 +0000 (19:35 +0000)]
Fix use after free bug.
Parse_SetInput:
curFile->fname was using the buffer passed to it - which ReadMakefile frees.
This change makes the comment in ParseEOF about leaking curFile->fname true.

11 years agoMerge 1.8.0
Peter Wemm [Tue, 18 Jun 2013 16:36:21 +0000 (16:36 +0000)]
Merge 1.8.0

11 years agoImport svn-1.8.0 final
Peter Wemm [Tue, 18 Jun 2013 16:33:03 +0000 (16:33 +0000)]
Import svn-1.8.0 final

11 years agoTweak generated config to make it more likely to work on 32 bit systems.
Peter Wemm [Tue, 18 Jun 2013 16:05:33 +0000 (16:05 +0000)]
Tweak generated config to make it more likely to work on 32 bit systems.

Pointed out by: Trond.Endrestol@fagskolen.gjovik.no

11 years agoMore ext2fs header cleanups:
Pedro F. Giffuni [Tue, 18 Jun 2013 15:49:30 +0000 (15:49 +0000)]
More ext2fs header cleanups:

- Set MAXMNTLEN nearer to where it is used.
- Move EXT2_LINK_MAX to ext2_dir.h .

MFC after: 3 days

11 years agoPass proper memory type to free() in ata_ali_chipinit().
Alexander Motin [Tue, 18 Jun 2013 15:04:17 +0000 (15:04 +0000)]
Pass proper memory type to free() in ata_ali_chipinit().

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week

11 years agoFix bug in destructor for checker manager in DTC that caused segfaults on
David Chisnall [Tue, 18 Jun 2013 10:26:22 +0000 (10:26 +0000)]
Fix bug in destructor for checker manager in DTC that caused segfaults on
exit.

11 years agoComments and whitespace.
Devin Teske [Tue, 18 Jun 2013 09:54:09 +0000 (09:54 +0000)]
Comments and whitespace.

11 years agoComments.
Devin Teske [Tue, 18 Jun 2013 09:45:10 +0000 (09:45 +0000)]
Comments.

11 years agoPerform some code consolidation and add some additional error
Devin Teske [Tue, 18 Jun 2013 09:43:10 +0000 (09:43 +0000)]
Perform some code consolidation and add some additional error
checking/reporting. (similar to SVN revision 251919)

11 years agoWhitespace and comments.
Devin Teske [Tue, 18 Jun 2013 09:41:34 +0000 (09:41 +0000)]
Whitespace and comments.

11 years agoPerform some code consolidation and add some additional error
Devin Teske [Tue, 18 Jun 2013 09:28:49 +0000 (09:28 +0000)]
Perform some code consolidation and add some additional error
checking/reporting. (similar to SVN revisions 251905 and 251915)

11 years agoRemove unnecessary loops, perform some code consolidation, and add some
Devin Teske [Tue, 18 Jun 2013 09:19:59 +0000 (09:19 +0000)]
Remove unnecessary loops, perform some code consolidation, and add some
additional error checking/reporting. (same thing going on here as SVN
r251905 -- just this time for the mouse module instead of console)

11 years agoWhitespace.
Devin Teske [Tue, 18 Jun 2013 09:05:08 +0000 (09:05 +0000)]
Whitespace.

11 years agoUse newly enhanced f_dialog_msgbox() from SVN r251912.
Devin Teske [Tue, 18 Jun 2013 08:59:47 +0000 (08:59 +0000)]
Use newly enhanced f_dialog_msgbox() from SVN r251912.