freebsd-nq/sys
Steven Hartland 3e856909b7 Fix expandsz 16.0E vals and vdev_min_asize of RAIDZ children
When a member of a RAIDZ has been replaced with a device smaller than the
original, then the top level vdev can report its expand size as 16.0E.

The reduced child asize causes the RAIDZ to have a vdev_asize lower than its
vdev_max_asize which then results in an underflow during the calculation of
the parents expand size.

Fix this by updating the vdev_asize if it shrinks, which is already
protected by a check against vdev_min_asize so should always be safe.

Also for RAIDZ vdevs, ensure that the sum of their child vdev_min_asize is
always greater than the parents vdev_min_size.

Fixes: https://www.illumos.org/issues/7885

MFC after:	2 weeks
Sponsored by:	Multiplay
2017-04-03 13:11:28 +00:00
..
amd64 revert r315959 because it causes build problems 2017-03-27 12:34:29 +00:00
arm [versatilepb] Fix keyboard driver after switching to upstream DTS 2017-04-01 20:38:12 +00:00
arm64 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
boot Small cleanup to make i386/loader match efi/loader boot environment code 2017-04-03 04:29:57 +00:00
bsm Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
cam Split iscsi(4) ctl frontend off of ctl(4) as cfiscsi(4) 2017-03-30 04:56:27 +00:00
cddl Fix expandsz 16.0E vals and vdev_min_asize of RAIDZ children 2017-04-03 13:11:28 +00:00
compat Use the kern_clock_nanosleep() to implement Linux clock_nanosleep() with 2017-04-02 18:16:00 +00:00
conf Break audit_bsm_klib.c into two files: one (audit_bsm_klib.c) 2017-04-03 10:15:58 +00:00
contrib Copy needed include files from EDK2. This is a minimal set gleened 2017-03-08 02:47:59 +00:00
crypto Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
ddb Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
dev iwn: use correct mask for queue ids (0xf -> 0x1f). 2017-04-02 13:24:58 +00:00
fs ext2fs: Initial support for Extended Attributes. 2017-04-01 01:00:36 +00:00
gdb
geom Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
gnu Update our device tree files to a Linux 4.10 2017-03-07 13:56:49 +00:00
i386 Adjust the constraint for "src" in atomic_(f)cmpset_8. 2017-03-27 16:18:19 +00:00
isa Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kern Audit arguments to posix_fallocate(2) and posix_fadvise(2) system calls. 2017-03-31 14:17:14 +00:00
kgssapi
libkern Use inline asm instead of unportable intrinsics for the SSE4 crc32 2017-03-26 10:31:48 +00:00
mips [etherswitch] simplify kernconf for recently added etherswitch drivers 2017-03-27 19:26:09 +00:00
modules Add ipfw_pmod kernel module. 2017-04-03 03:07:48 +00:00
net Don't call init functions directly from the timer/watchdog function. 2017-03-30 16:54:01 +00:00
net80211 [net80211] refactor the A-MPDU RX window code 2017-04-02 20:59:12 +00:00
netgraph mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. 2017-01-20 00:02:11 +00:00
netinet Add O_EXTERNAL_DATA opcode support. 2017-04-03 02:44:40 +00:00
netinet6 Allow explicitly assigned IPv6 loopback address to be used in jails 2017-03-31 09:10:05 +00:00
netipsec GC some unused declarations. 2017-04-03 04:44:56 +00:00
netnatm
netpfil Add ipfw_pmod kernel module. 2017-04-03 03:07:48 +00:00
netsmb
nfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsclient Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsserver Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlm
ofed Add full VNET support to the inet_get_local_port_range() function in 2017-03-22 15:46:31 +00:00
opencrypto Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
powerpc Add Freescale eSPI driver found on QorIQ SoCs 2017-04-02 01:21:35 +00:00
riscv Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
rpc Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
security Break audit_bsm_klib.c into two files: one (audit_bsm_klib.c) 2017-04-03 10:15:58 +00:00
sparc64 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
sys Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
teken Oops, my fix for bright colors broke bright black some more (in cases 2017-03-27 10:48:28 +00:00
tests
tools [fdt] Make DTBs generated by make_dtb.sh overlay-ready 2017-03-10 22:45:07 +00:00
ufs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
vm Add kern_mincore() helper for micore() syscall. 2017-03-30 19:42:49 +00:00
x86 revert r315959 because it causes build problems 2017-03-27 12:34:29 +00:00
xdr
xen xenstore: fix suspension when using the xenstore device 2017-03-07 09:17:48 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00