209250 Commits

Author SHA1 Message Date
gjb
12d768e12e Document r281617, wc(1) race when receiving SIGINFO fixed.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:21 +00:00
gjb
b0b0f65530 Fix a FDP style nit. Wrap the lines as a result.
Found with:	textproc/igor
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:19 +00:00
gjb
4d9c6adbec Document r281802, support added for building FreeBSD/aarch64 virtual
machine and memory stick images.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:17 +00:00
gjb
3190cc969e Update the svn revision marker.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:15 +00:00
gjb
14ef687f7b Document r282434, openresolv updated to version 3.7.0.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:12 +00:00
gjb
7660a932d3 Document r282274, xen(4) PV domU kernel support removed.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:10 +00:00
gjb
522b64026b Document r282213, kern.racct.enable tunable and RACCT_DISABLED
kernel configuration option.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:08 +00:00
gjb
976281e9cc Document r282212, several improvements/updates to the HyperV drivers.
Add Microsoft OSTC to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:05 +00:00
gjb
fa6c125dd4 Document r282208, chmod(1), chflags(1), chgrp(1), and chown(8) now
affect symbolic links when '-R' is used.

Add Multiplay to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:02 +00:00
gjb
f58158d54d Fix a typo.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:00 +00:00
julian
7e3f691222 Tweak seekdir, telldir and readdir so that when htere are deletes going on,
as seek to teh last location saved will still work. This is needed for Samba
to be able to correctly handle delete requests from windows. This does not
completely fix seekdir when deletes are present but fixes the worst of the
problems. The real solution must involve some changes to the API for eh VFS
and getdirentries(2).

Obtained from:	Panzura inc
MFC after:	1 week
2015-05-05 14:52:33 +00:00
andrew
86c09d04c8 Add DEV_ACPI to opt_acpi.h to be used to detect when ACPI is enabled in
the kernel.
2015-05-05 14:19:22 +00:00
andrew
97c01243ee Update the comment on what CPUs this driver supports. 2015-05-05 14:17:15 +00:00
jilles
eb4e837132 cp: Remove fts sorting.
In an attempt to improve performance, cp reordered directories first
(although the comment says directories last). This is not effective with new
UFS layout policies.

The sorting reorders multiple arguments passed to cp, which may be
undesirable.

Additionally, the comparison function does not induce a total order. Per
POSIX, this causes undefined behaviour in qsort().

NetBSD removed the sorting in 2009.

On filesystems that return directory entries in hash/btree order, sorting by
d_fileno before statting improves performance on large directories. However,
this can only be implemented in fts(3).

PR:		53475
Reviewed by:	bde (in 2004)
MFC after:	1 week
2015-05-05 13:23:03 +00:00
osa
454dab38d6 Add "The Design and Implementation of the FreeBSD OS, 2nd Ed.". 2015-05-05 11:39:54 +00:00
andrew
7b66fb359f Move the point we attach the ofw driver on arm64 to nexus.c. This will
allow us to have a single place to decide to use ofw or acpi.
2015-05-05 11:13:16 +00:00
osa
24dc56b9a2 Document DragonFly releases 4.0.2 - 4.0.5 and OpenBSD 5.7.
Fix typo for NetBSD 6.1.5.
2015-05-05 11:12:20 +00:00
andrew
1540a06f88 Add FDT to the list of known GUIDs. 2015-05-05 11:07:43 +00:00
avg
897e19b7f1 zfs: do not hold an extra reference on a root vnode while a filesystem is mounted
At present zfs_domount() acquires a reference on the filesystem's root vnode
and that reference is kept until zfs_umount.
The latter calls vflush(rootrefs = 1) to dispose of the extra reference.

There is no explanation of why that reference is kept - what problem it
solves or what behavior it improves.
Also, that logic is FreeBSD specific.

There is one real problem with that reference, though.
zfs recv -F may receive a full, non-incremental stream to a mounted filesystem.
In that case the received root object is likely to have a different z_gen
attribute value. Because of that, zfs_rezget will leave the previous root znode
and vnode disassociated from the actual object (z_sa_hdl == NULL).
Thus, future calls to VFS_ROOT() -> zfs_root() will produce a new vnode-znode
pair, while the old one will be kept alive by the outstanding reference.
So, the outstanding reference will not actually be for the new root vnode
(or, more precisely, vnodes - because a root vnode may be recycled and a newer
one can be created).
As a result, when vflush(rootrefs = 1) s called there will be two problems:

- a leaked reference on the old root vnode preventing a graceful unmount
- insufficient references on the actual root vnode leading to a crash upon
  access to the vnode after it is destroyed by vgone() + vdrop()

The second issue will actually override the first one.

Differential Revision:	https://reviews.freebsd.org/D2353
Reviewed by:		delphij, kib, smh
MFC after:	17 days
2015-05-05 11:01:06 +00:00
andrew
69bbb6bc36 Disable the use of floating-point and vector registers in the loader. They
need the vfp unit to be enabled which may not be the case.
2015-05-05 11:00:50 +00:00
avg
509c82b2c2 dmu_recv_end_check: don't leak hold if dsl_destroy_snapshot_check_impl fails
The leak may happen if !drc_newfs && drc_force and there is an error
iterating through snapshots or any of snapshot checks fails.

See https://www.illumos.org/issues/5870
See https://reviews.csiden.org/r/206/

Reviewed by:	mahrens (as mahrens@delphix.com)
MFC after:	15 days
Sponsored by:	ClusterHQ
2015-05-05 10:56:16 +00:00
pluknet
877d1d2eb2 Fix major copy/paste and other style errors. 2015-05-05 10:44:17 +00:00
andrew
dfa310bc17 Copy new attribute types when linking. bfd will copy attributes as needed,
however it will fail to output them if the type is not set correctly. This
can happen when it finds an attribute it hasn't seen before, for example
when building shared objects it will use the attributes from crti.o, hwever
this file has no attributes set.

Differential Revision:	https://reviews.freebsd.org/D2413
Reviewed by:	imp
2015-05-05 10:35:29 +00:00
andrew
5bf47c36d0 When cross-building ${LIBSTAND} may be set to the host copy. Point to the
version built with the toolchain.

Differential Revision:	https://reviews.freebsd.org/D2312
Submitted by:	jhb
2015-05-05 10:32:59 +00:00
garga
79ad4db276 Add support for Sierra MC7354 card
Author:		Jeremy Porter <jporter@netgate.com>
Differential Revision:	https://reviews.freebsd.org/D2444
Reviewed by:	gnn, hselasky
MFC after:	1 week
Sponsored by:	Netgate
2015-05-05 10:19:43 +00:00
bapt
87da24f6db Enlarge the buffer for storing macros as some macros can be longer than 5 2015-05-05 09:54:47 +00:00
bapt
fcab16a373 Update the list of known roff commands (adding the mdoc package)
Obtained from:	NetBSD
2015-05-05 09:50:21 +00:00
bapt
dd5948751d Properly assign open and close brackets and checks memory
Obtained from:	NetBSD
2015-05-05 09:33:32 +00:00
ae
7814ded30c Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme.
Sort DOSPTYP_* entries in diskmbr.h by value.
Document these scheme-specific types in gpart(8).

MFC after:	1 week
2015-05-05 09:33:02 +00:00
bapt
8224924ecc Ensure we read existing values of the stk table
Obtained from:	NetBSD
2015-05-05 09:29:32 +00:00
bapt
a7c69e6c58 Use stdup(3) and check its return instead from homebrew version using strcpy(3)
and malloc(3)

Obtained from:	NetBSD
2015-05-05 09:26:32 +00:00
bapt
7517f3fab7 cosmetic fixes
Obtained from:	NetBSD
2015-05-05 09:24:29 +00:00
bapt
d9e656c586 Apply seom style(9) fixes from NetBSD
Obtained from:	NetBSD
2015-05-05 09:01:42 +00:00
bapt
41ce620053 Prevent useless use of strdup(3)
Obtained from:	NetBSD
2015-05-05 08:25:25 +00:00
bapt
de72406be4 Replace homebrewed NIL by NULL 2015-05-05 08:17:40 +00:00
bapt
c5d7e189d1 Use stdbool instead of homebrewed boolean 2015-05-05 08:15:10 +00:00
bapt
09ff591b15 Another function to ansify 2015-05-05 07:52:41 +00:00
bapt
1627eefffa Remove unused variables 2015-05-05 07:51:57 +00:00
bapt
0c925e0867 Explicitly use O_RDONLY instead of 0 2015-05-05 07:49:46 +00:00
bapt
642b9f5173 Use strlcpy(3) instead of strcpy(3) 2015-05-05 07:47:36 +00:00
bapt
a0da5a4be4 upper the warning level to 3 2015-05-05 07:42:40 +00:00
bapt
b04f76faa2 Another bit of ansification 2015-05-05 07:42:10 +00:00
bapt
ef4463e203 Ansify to allow to work on it later 2015-05-05 07:33:38 +00:00
peter
ec163c3dc9 Fix an error in r281551, part of the getfsstat() / kern_getfsstat()
rework.  The number of entries was supposed to be returned to the user,
not used as a scratch variable.

This broke RELENG_4 jails starting up on current systems.
2015-05-05 05:14:12 +00:00
imp
38e035555c Add some data found in TI's application note "SCPA035: PCI1510
Implementation Guide" about default values.
2015-05-05 04:23:55 +00:00
imp
b3050ea40f When dealing with the TI12XX family of parts, we sometimes need to
initialize the MFUNC registers. Our old test of assuming that if this
register is set at all is not quite right. Many scenarios (including
the power-on defaults for chips w/o EEPROMs) land us in trouble. The
MFUNC0 pin should be set to signal #INTA and the MFUNC1 pin should be
set to signal #INTB of multi-socketed devices. Since my memory recalls
issues with blindly clearing the upper bytes of this register, perform
the heuristic only when both MFUNC0 and 1 are clear. We won't work
well using these pins for GPIO, and the serial interrupts won't save
us because we go out of our way to generally disable them. They are
needed to support legacy drivers for 16-bit PC Cards that are
hard-wired to specific IRQ values. Since FreeBSD never had any of
these, we configure the more reliable direct signaling. This was just
one small piece of that which had been left out back in the day.
2015-05-05 04:13:48 +00:00
allanjude
9f65bd9565 Add a sanity check to the swap size in zfsboot of bsdinstall
Loop until the user enters a valid size (>100mb or 0)

Differential Revision:	https://reviews.freebsd.org/D2299
Reported By:	Shawn Webb
Reviewed by:	roberto
Approved by:	brd
MFC after:	2 weeks
Sponsored by:	ScaleEngine Inc.
2015-05-05 03:08:49 +00:00
loos
8e5a92abe8 Now that DMA works, enable the audio driver on RPi 2. 2015-05-05 01:45:38 +00:00
loos
08c9978298 Enable DMA for sdhci on RPi 2 (BCM2836). 2015-05-05 00:27:55 +00:00
loos
d1a453b983 Fix DMA on RPi 2.
BCM2836 has a different base address for peripherals.

Obtained from:	netbsd
2015-05-05 00:19:04 +00:00