196330 Commits

Author SHA1 Message Date
gjb
28c99f4366 MFC r269888:
Fix a typo in a comment: s/interprete/interpret/

Sponsored by:	The FreeBSD Foundation
2014-08-15 03:52:40 +00:00
mckusick
d042b76532 MFC of 269674:
The journal is only prepared to handle full-size block numbers, so we
have to adjust freeblk records to reflect the change to a full-size block.
For example, suppose we have a block made up of fragments 8-15 and
want to free its last two fragments. We are given a request that says:
    FREEBLK ino=5, blkno=14, lbn=0, frags=2, oldfrags=0
where frags are the number of frags to free and oldfrags are the number
of fragments to keep. To block align it, we have to change it to have a
valid full-size blkno, so it becomes:
    FREEBLK ino=5, blkno=8, lbn=0, frags=2, oldfrags=6

Submitted by: Mikihito Takehara
Tested by:    Mikihito Takehara
Reviewed by:  Jeff Roberson
2014-08-14 23:38:04 +00:00
jhb
cabf1ab5da MFC 268531,269079,269204:
Fix various edge cases with rewinddir(), seekdir(), and telldir():
- In the unionfs case, opendir() and fdopendir() read the directory's full
  contents and cache it.  This cache is not refreshed when rewinddir() is
  called, so rewinddir() will not notice updates to a directory.  Fix this
  by splitting the code to fetch a directory's contents out of
  __opendir_common() into a new _filldir() function and call this from
  rewinddir() when operating on a unionfs directory.
- If rewinddir() is called on a directory opened with fdopendir() before
  any directory entries are fetched, rewinddir() will not adjust the seek
  location of the backing file descriptor.  If the file descriptor passed
  to fdopendir() had a non-zero offset, the rewinddir() will not rewind to
  the beginning.  Fix this by always seeking back to 0 in rewinddir().
  This means the dd_rewind hack can also be removed.
- Add missing locking to rewinddir()
- POSIX says that passing a location returned by telldir() to seekdir()
  after an intervening call to rewinddir() is undefined, so reclaim any
  pending telldir() cookies in the directory when rewinddir() is called.
- If telldir() is called immediately after a call to seekdir(), POSIX
  requires the return value of telldir() to equal the value passed to
  seekdir().  The current seekdir code with SINGLEUSE enabled breaks
  this case as each call to telldir() allocates a new cookie.  Instead,
  remove the SINGLEUSE code and change telldir() to look for an existing
  cookie for the directory's current location rather than always creating
  a new cookie.

PR:		121656
2014-08-14 20:20:21 +00:00
markj
599cdb2d59 MFC r257877:
Don't try to use the 32-bit drti.o unless the data model is explicitly set
to ILP32. Otherwise dtrace -G will attempt to use it on amd64 if it can't
determine which data model to use, which happens when -64 is omitted and
no object files are provided, e.g. with

# dtrace -G -n BEGIN

This would result in a linker error, but now works properly.

Also remove an unnecessary #ifdef.
2014-08-14 16:45:01 +00:00
smh
5c82afaaa3 Make the ixgbe tunables now match their sysctl counterparts.
Previously the tunables and sysctls had different names for example:
hw.ixgbe.enable_aim => hw.ix.enable_aim

Anyone using ixgbe tunables should ensure they update /boot/loader.conf.

This is a direct commit to stable as the changes to sysctls in head
already fix this issue in a different way.

Sponsored by:	Multiplay
2014-08-14 14:07:05 +00:00
gavin
2ad4eee5a8 Merge r266206 from head (by bjk):
Review pass through jail.8

  Replace usage of "prison" with "jail", since that term has mostly dropped
  out of use.  Note once at the beginning that the "prison" term is equivalent,
  but do not use it otherwise. [1]

  Some grammar issues.

  Some mdoc formatting fixes.

  Consistently use \(em for em dashes, with spaces around it.

  Avoid contractions.

  Prefer ssh to telnet.

PR:		176832 [1]
2014-08-14 12:50:25 +00:00
trasz
5bc1b6b16a MFC r267615:
Rename a variable; no functional changes.

Sponsored by:	The FreeBSD Foundation
2014-08-14 12:33:24 +00:00
trasz
b94d41f0ae MFC r267614:
Add "iscsictl -M", which allows one to change session parameters
without removing it and adding back.

Sponsored by:	The FreeBSD Foundation
2014-08-14 12:31:18 +00:00
roberto
cb8cf293f9 MFC r269662:
10 has a new flex (2.5.37) and the config.h for unbound has been updated to
take this into account. Alas it breaks source upgrade from any version of
9 because flex is not built as a bootstrap-tools (it would be for older
versions).

That means "libunbound/configlexer.c" is built with the old flex but using
config.h for the new one. Build is thus broken going from 9.* to 10.

Make flex a bootstrap-tools entry if host is less than 1000033 to take into
account the flex update in 10.

Tested on both 9.2-RC3 and 9.3 by myself and dim@. Running buildworld in
head but as both 10 and 11 has the new flex, it will not matter.

Reviewed by:    imp
Approved by:    des, imp
MFC after:      1 week
Phabric:        D554
2014-08-14 12:16:03 +00:00
gavin
ac37b42b28 Add a header to the entries for the removal of csup example files.
This is a direct commit to 10, as the equivelent commit to head included
other changes that will not be merged to stable branches.
2014-08-13 22:34:14 +00:00
rpaulo
caf7689615 MFC r268300 r268541 r268544 r268565 r269775 r269838 r269839 r269840
r269842 r269844 r269899:

BSD make support for generating and compiling USDT DTrace probes.
2014-08-13 16:11:57 +00:00
ae
809079ca2d MFC r269306:
Add new rule to source address selection algorithm. It prefers address
  with better virtual status. Use ifa_preferred() to choose better address.

PR:		187341
2014-08-13 15:48:10 +00:00
gavin
2a5e29a8c2 Merge r267859 (by bapt), r268998 from head:
o Mark send-pr info page as an obsolete file

o /usr/bin/sendbug and the sendbug(1) man page were part of send-pr and
  are no longer installed since r267486 (r267734 in stable/10).  Add them
  to ObsoleteFiles.inc1, which should have been done in r267486.

PR:		192010 (partial)
Submitted by:	Vick Khera (partial)
2014-08-13 12:55:44 +00:00
gavin
b3d4f13333 Merge r268842 from head:
Fix two typos in iscsictl.8

PR:		191581
Submitted by:	Jimmy Olgeni
2014-08-13 12:47:51 +00:00
gavin
9a525ec03f Merge r268728 from head:
When we fail to extract the pkg binaries (for example, / is read-only),
  give a more helpful error message.
2014-08-13 12:44:44 +00:00
gavin
5940066af7 Merge r268725 from head:
Since r202933, kthread_suspend_check() takes no arguments.  Update the
  example to match.
2014-08-13 12:41:31 +00:00
gavin
389d6e5a74 Merge r268637 from head:
fortune(8): Search fortune files installed by ports/packages as well as
  those supplied by the base system.

PR:		191800
Submitted by:	Andy Kosela
2014-08-13 12:36:59 +00:00
gavin
60b4865344 Merge r268488 from head:
Reword an awkward option description

PR:		191726
Submitted by:	yaneurabeya gmail.com
2014-08-13 12:35:11 +00:00
gavin
3d15d9c9c1 Merge r267867 from head:
Remove example cvsup config files.
2014-08-13 12:32:52 +00:00
trasz
fd8b4675b0 MFC r269197:
Fix potential double free that could happen after connection error.
2014-08-13 11:11:27 +00:00
hselasky
0f8aee9425 MFC r269567:
Add new USB phone descriptor template for USB device side mode.
2014-08-13 08:21:52 +00:00
hselasky
8a490e6058 MFC r266396 and r267183:
Build fixes. Add support for fast interrupts.
2014-08-13 08:18:49 +00:00
hselasky
96ae0a8bad MFC r269565:
Rename driver name a bit to avoid unit number confusion in dmesg.
2014-08-13 07:13:42 +00:00
hselasky
65b6c4f29b MFC r269566:
Fix for deadlock in USB device side mode.
2014-08-13 07:02:23 +00:00
hselasky
1f00e71a08 MFC r269604:
- Implement fast interrupt handler to save CPU usage.
- Cleanup some register reads and writes to use existing register
  access macros.
- Ensure code which only applies to the control endpoint is not run
  for other endpoints in the data transfer path.
2014-08-13 06:59:40 +00:00
kib
c23d839444 MFC r269643:
Weaken the requirement for the vm object lock by only asserting locked
object in vm_pager_page_unswapped(), instead of locked exclusively.
2014-08-13 06:58:42 +00:00
kib
82ab11ec35 MFC r269642:
Add wrappers to assert that vm object is unlocked and for try upgrade.
2014-08-13 06:55:30 +00:00
rpaulo
4313c083af MFC r269744
Run dtrace in 32-bit mode when compiling 32-bit libraries.
2014-08-13 06:45:02 +00:00
rpaulo
bd71cae4c3 MFC r269776
Remove the BROKEN_LIBELF section.
2014-08-13 06:41:06 +00:00
marcel
8760318092 MFC 269745: Create a redundant grain directory and table. 2014-08-13 01:43:38 +00:00
dim
3cca469e52 MFC r269750:
In r268463, I misplaced a return in demangle(), causing the function to
erroneously skip symbols that were not mangled at all.  Fix this by
moving the return into the preceding if block.

While here, simplify the code by letting __cxa_demangle() allocate the
needed space for the demangled symbol.  This also fixes a memory leak,
which would occur whenever __cxa_demangle() failed.

Reported by:	pgj
PR:		base/191981
2014-08-12 17:56:48 +00:00
emaste
e822669a55 MFC cleanup of libusb20 example
r257779 by hselasky:

  - Use libusb20_strerror() function instead of custom usb_error() one.
  - Rename "aux.[ch]" to "util.[ch]" which is a more common name for
  utility functions and allows checkout on some non-FreeBSD systems
  where the "aux.*" namespace is reserved.
  - Fix some compile warnings while at it.

r257796 by glebius:

  Finish r257779.

PR:		183728
2014-08-12 14:53:02 +00:00
hselasky
9320d65920 MFC r257594:
Add description of two EHCI PCI IDs.
2014-08-12 12:22:39 +00:00
hselasky
c46b6137cd MFC r268316:
Fix OFED startup order: All SYSINIT()'s and modules should be loaded
prior to starting "/sbin/init" which will run all the "/etc/rc.d/xxx"
scripts. Else there can be a race configuring the interfaces via
"/etc/rc.conf".

Sponsored by:	Mellanox Technologies
2014-08-12 12:10:29 +00:00
hselasky
7485d0a3eb MFC r268315:
Fix compile warning.

Sponsored by:	Mellanox Technologies
2014-08-12 12:07:57 +00:00
hselasky
0645e306f0 MFC r268314:
Fix some compile warnings.

Sponsored by:	Mellanox Technologies
2014-08-12 12:06:21 +00:00
peter
72d63a715a MFC r266728,266731,266735,266736,268135,268960,269833
Update apr 1.4.8 -> 1.5.1
 Update apr-util 1.5.2 -> 1.5.3
 Update serf 1.3.4 -> 1.3.7
 Update svnlite 1.8.8 -> 1.8.10
 Deal with svnlite.1 manpage.
2014-08-12 01:40:11 +00:00
delphij
d307c6d3b7 MFC r269230: MFV r269224:
Increase default ARC buf_hash_table size.  When typical block size is small,
the hash table could be too small, which would lead to long hash chains and
limit performance for cached reads.

A new loader tunable, vfs.zfs.arc_average_blocksize, have been added which
allows users to override the default assumption of average (typical) block
size.  Old default was 65536 (64 KiB) and new default is 8192 (8 KiB).

Illumos issue:
    5034 ARC's buf_hash_table is too small
2014-08-12 00:59:19 +00:00
delphij
63a479a6fb MFC r269229,269404,269466: MFV r269223:
Change dn->dn_dbufs from linked list to AVL tree.

Illumos issues:
  4873 zvol unmap calls can take a very long time for larger datasets
2014-08-12 00:53:03 +00:00
jlh
2a07fd9787 MFC r269302:
Fix relative numerical addressing (addr,+N).

  As a bonus the patch untangles a bit the logic and makes the code
  easier to grasp.

  PR:           192108
2014-08-11 20:38:52 +00:00
dim
f8d542ba4f MFC r269740:
Pull in r214736 from upstream libc++ trunk (by Marshall Clow):

  Fix PR#20520 - predicate called too many times in list::remove_if.
  Add tests for list, forward_list, and the std::remove_if algorithm

This fixes an issue where std::list<>::remove_if() and remove() could
erroneously visit elements twice.

Reported by:	Dominic Fandrey <kamikaze@bsdforen.de>
PR:		192303
2014-08-11 20:37:03 +00:00
imp
c7338ae617 MFC: Merge in the changes in -current:
Support ! operator in "files" files.
Improve error detection and reporting
Cleanup code to make it easier to maintain.
Remove mandatory keyword: it has been used for 17 years.
Bump version number (we should have bumped for -I too, but didn't)

	r261501 | imp | 2014-02-04 17:26:11 -0700 (Tue, 04 Feb 2014) | 5 lines
	Fix ! by not clearing not at the bottom of the loop.
	Add a blank line
	Submitted by:   bde (blank line)

	r261493 | imp | 2014-02-04 11:28:58 -0700 (Tue, 04 Feb 2014) | 5 lines
	Implement the '!' operator for files* files. It means 'include this
	only if the specified option is NOT specified.' Bump version because
	old config won't be able to cope with files* files that have this
	construct in them.

	r261446 | imp | 2014-02-03 12:14:36 -0700 (Mon, 03 Feb 2014) | 5 lines
	Convert the loop by gotos into a for loop to improve readability. I
	did this only with the inner loop for the token parsing, and not the
	outer loop which was understandable enough when the extra layers of
	looping went away...

	r261445 | imp | 2014-02-03 12:10:33 -0700 (Mon, 03 Feb 2014) | 4 lines
	Fix a bug introduced in r261437 that failed to honor "optional
	profiling-routine" to work, since profiling-routine is not really an
	option or a device, but a special case elsewhere in the code.

	r261444 | imp | 2014-02-03 11:56:41 -0700 (Mon, 03 Feb 2014) | 2 lines
	Slight cleanup to the error messaging to compress code vertically...

	r261442 | imp | 2014-02-03 11:31:51 -0700 (Mon, 03 Feb 2014) | 2 lines
	Better error messages when EOF is hit in the middle of a phrase.

	r261438 | imp | 2014-02-03 09:54:53 -0700 (Mon, 03 Feb 2014) | 5 lines
	Move the check for standard keyword + optional inclusion specifier to
	its proper location. Otherwise you could have 'file.c standard pci'
	without an error. This construct isn't in our tree, and has no well
	defined meaning.

	r261437 | imp | 2014-02-03 09:47:10 -0700 (Mon, 03 Feb 2014) | 4 lines
	Don't believe we have a requirement until after we've checked all the
	known key words. This will make error messages slightly better in
	weird corner cases, but should otherwise be a nop.

	r261436 | imp | 2014-02-03 09:46:01 -0700 (Mon, 03 Feb 2014) | 3 lines
	In the 17 years since r30796, the mandatory keyword has never been used
	in any files as far as I can tell, and is currently unused. Retire it.

	r261435 | imp | 2014-02-03 08:10:44 -0700 (Mon, 03 Feb 2014) | 6 lines
	Slightly deobfuscate read_file() and likely pessimize the runtime
	performance by epsilon.
	(Translation: elminate bogus macros that hid 'returns' making it hard
	 to read and moved a block of code inline rather than at the end of the
	 fuction where it was effectively a 'gosub' kind of goto).
2014-08-11 18:42:20 +00:00
smh
ffdde8cca2 MFC r269522
Added support for extra ifconfig args to jail ip4.addr & ip6.addr params

This allows for CARP interfaces to be  used in jails e.g.
ip4.addr = "em0|10.10.1.20/32 vhid 1 pass MyPass advskew 100"

r269340 will not be MFC'ed as mentioned due to the slim window and the
amount of additional commits required to support it.

Sponsored by:	Multiplay
2014-08-11 08:58:35 +00:00
delphij
dbecd3b0d9 MFC r269180:
When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR:		bin/151023
Submitted by:	tjmao at tjmao.net
2014-08-11 06:54:07 +00:00
ian
6b999dff3e MFC r269403, r269405, r269410, r269414:
Add 64-bit atomic ops for armv6, and also for armv4 only in kernel code.
  Use the new ops in the cddl code (and avoid defining functions with the
  same names locally).
2014-08-11 02:20:24 +00:00
ian
8067096dad MFC r269393, r269394, r269395:
Fix parsing of arch extensions in binutils/gas.
  Use ".arch_extension sec" when compiling ARM TI code that uses the
  security extensions.
2014-08-11 01:48:00 +00:00
ian
059e60aeba MFC r269390: Fix unwind info in hand-written asm (avoid nested functions). 2014-08-11 01:29:28 +00:00
ian
6ffbefa108 MFC r269341: Populate disk->d_ident with the sd or mmc card's serial number. 2014-08-11 01:22:10 +00:00
ian
b9e66f3b29 MFC r269206, r269207, r269208, r269209, r269210, r269211, r269212, r269213,
r269214, r269215, r269216, r269217, r269221:

  busdma-v6 improvements, primarily:
  - Allocate the temporary segments array per-map rather than per-tag.
  - Avoid needlessly bouncing IO for mbufs and buffers allocated by
    bus_dmamem_alloc() (in both situations we known they're allocated
    on cacheline boundaries and don't need bouncing).
  - Various minor reformatting and cleanups.
2014-08-11 01:10:15 +00:00
ian
a08c00a48a MFC r268993, r268893, r268994, plus partial r264070, r264082
Fix C++ exception handling for ARM EABI.

 Just the part of r264070 that creates the FBSD_1.4 namespace in libc
 is hand-applied, and then r264082 which creates the Versions.def entry
 is MFC'd.
2014-08-10 22:26:29 +00:00