MFC 229621:
Convert all users of IF_ADDR_LOCK to use new locking macros that specify
either a read lock or write lock.


git-svn-id: svn://svn.freebsd.org/base/stable/9@233200 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 232072: Pretty-print the advice constants passed to posix_fadvise(2).


git-svn-id: svn://svn.freebsd.org/base/stable/9@233205 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC:	r232991

Add a PCI quirk to ignore PCI map registers from configuration space.
This works around a resource conflict, e. g., MSI K9AGM2 motherboard.


git-svn-id: svn://svn.freebsd.org/base/stable/9@233210 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 227470:

Report the amount of memory from smbios data if provided.

This should get the correct memory size even if a 32-bit image is running
on a machine with > 4GB of memory.  This can be useful is using a 32-bit
installer on a machine which will eventually run a 64-bit image.

Reviewed by:	kmoore


git-svn-id: svn://svn.freebsd.org/base/stable/9@233217 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232681

Work around broken BIOS memory reporting

Andrzej has a machine with 32GB of RAM, but only 16GB is reported by the
smbios.memory.enabled.  Thus, use the greater of hw.realmem and the smbios
value.

Reported by:	Andrzej Tobola <ato of iem pw edu pl>


git-svn-id: svn://svn.freebsd.org/base/stable/9@233218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232880

Fix a bug running the autoinstall functionality.

Submitted by:	kmoore
Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/stable/9@233219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232889

Make sure when creating new MBR partition it is set to active by default.

Submitted by:	kmoore
Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/stable/9@233220 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232890

Fix a couple of bugs saving network config.
Don't duplicate wlans_ lines.
Enable ipv6 on wireless devices correctly.

Submitted by:	kmoore
Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/stable/9@233221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232895

Check for intel RAID devices

Submitted by:	kmoore
Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/stable/9@233222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232898

Improve ZFS exporting functionality, only export pools which are on a
specific device we happen to be writing to. This fixes an issue when
running pc-sysinstall on a running system which needs ZFS and the main
disk gets exported.

Submitted by:	kmoore
Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/stable/9@233223 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232899

Add the ability to use a varity of ZFS dataset options.
While here fix a bug causing zpools with /tmp mount-points to fail

Submitted by:	kmoore
Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/stable/9@233224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 232510:
	Permit the use of raidz3 in pc-sysinstall

PR:		conf/164709
Approved by:	cperciva (implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@233225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 232901

Use gpart "-a" flag to 4k alignment.

Submitted by:	kmoore
Obtained from:	PC-BSD


git-svn-id: svn://svn.freebsd.org/base/stable/9@233226 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9