MFC r270973

r270973
Fix for WITNESS warning while doing xpt_rescan.
This happen when converting any JBOD to RAID or creating
any new RAID from Unconfigured Drives.

Without this fix, user may see call trace if  WITNESS is enabled.
System may panic when reconfiguring the RAID.

Reviewed by: ambrisko
Approved by: re (gleb)

---


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271252 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFH (r270392, r270676, r270679, r270698): add support for subdirectories in rc.conf.d

Approved by:	re (glebius)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271260 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 271048:
Always seek back to the beginning of a regular directory, even if the
previous seek location was 0.  Without this, readdir() would see
dd_loc of zero and call getdirentries() which would start reading
entries at the current seek location of the directory ignoring the
first batch of entries.  Also, rewinddir() should always seek so that
it reads the directory from the beginning to get updated entries.

PR:		192935
Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271095, vt(4) keymap support added to the syscons
rc(8) startup script.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271111, vt(4) enabled for PS3.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271116, ofwfb updated to work with
x11-servers/xorg-server.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271128, several performance enhancements to vt(4).

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271130, sys/boot/libstand moved to 32-bit specific
directory naming convention.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271268 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Refine entry for r271130 since a follow-up commit
  adds 64-bit libstand.

- Document r271135, initial UEFI boot support.

- Document r271136, boot1.efi, boot1.efifat, loader.efi
  installed to /boot.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271269 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271153, KSTACK_PAGES increased 4 -> 8 on powerpc64.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271270 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271205, powerpc ATI Radeon 9700 backlight fix.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271271 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271234, mrsas(4) enabled in GENERIC for amd64
and i386.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271260, support for /etc/rc.d/<service>/
subdirectories.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270976: Allow standalone debug for non-default ${PROG} targets

This allows WITH_DEBUG_FILES to produce standalone debug for the ELF
runtime linker.

We previously disabled standalone debug files for bsd.prog.mk consumers
that included a non-default ${PROG} target, but this is not required.

Consumers that do not support standalone debug are still handled by
disabling it for statically linked binaries, and for those that specify
a non-default binary format.

Sponsored by:	DARPA, AFRL
Approved by:	re


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271047: Avoid ./ in zoneinfo entries in METALOG

Use of "find ." resulted in METALOG entries with an extra ./ -- e.g.,
./usr/share/zoneinfo/./America/Toronto.  Avoid this by using globbing
via "find *" instead.

Approved by:	re
Sponsored by:	DARPA, AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r263720, hostname- and IP-based restrictions added
to ctld(8).

Submitted by:	trasz
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271276 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Document 263725, ctld(8) 'portal-group' is overrideable.
- Document 263726, ctld(8) 'auth-group' default entry.

Submitted by:	trasz
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r270927:
  Add the reverse part to rule #9. Also change its description in the
  netstat(8) output.

Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271288 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r265014: Report boot method (BIOS/UEFI) via sysctl machdep.bootmethod

Approved by:	re
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r267176, r267181, r268445 (ATF-related commits):

Phabric: https://reviews.freebsd.org/D706
Approved by: rpaulo (mentor)
Approved by: re (gjb)
Reviewed by: jmmv
Sponsored by: EMC / Isilon Storage Division

r267176:

 Add the *_TESTS_SH_SED_* functionality to atf.test.mk.

 This exists already in plain.test.mk and tap.test.mk and should have been
 added to atf.test.mk too when the feature was first introduced.

 (It is probably time to address the related TODOs but I will do that
 separately.)

r267181:

 Move atf-sh from /usr/bin/ to /usr/libexec/

 In r266650, we made libatf-c and libatf-c++ private libraries so that no
 components outside of the source tree could unintendedly depend on them.

 This change does the same for the "atf-sh library" by moving the atf-sh
 interpreter from its public location in /usr/bin/ to the private location
 in /usr/libexec/.  Our build system will ensure that our own test programs
 use the right binary, but users won't be able to depend on atf-sh by
 "mistake".

 Committing this now to ride the UPDATING notice added with r267172 today.

r268445:

 Fix atf-sh's integration_test

 With the move of atf-sh into /usr/libexec in r267181, some of the
 tests in the integration_test program broke because they could not
 execute atf-sh from the path any longer.

 This slipped through because I do have a local atf installation in
 my home directory that appears in my path, hence the tests could
 still execute my own version.

 Fix this by forcing /usr/libexec to appear at the beginning of the
 path when attempting to execute atf-sh.

 To make upgrading easy (and to avoid an unnecessary entry in UPDATING),
 make integration_test depend on the Makefile so that a rebuild of the
 shell script is triggered.  This requires a hack in the *.test.mk files
 to ensure the Makefile is not treated as a source to the generated
 program.  Ugly, I know, but I don't have a better way of doing this at
 the moment.  Will think of one once I address the TODO in the *.test.mk
 files that suggests generalizing the file generation functionality.

 PR:		191052
 Reviewed by:	Garrett Cooper


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f