freebsd-nq/sys
Alan Somers 663f649ff6 Refactor vdev_geom_attach and friends to reduce code duplication
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
	Move checks for provider's sectorsize and mediasize into a single
	location in vdev_geom_attach. Remove the zfs::vdev::taste class;
	it's ok to use the regular vdev class for tasting. Consolidate guid
	checks into a single location in vdev_attach_ok. Consolidate some
	error handling code from vdev_geom_attach into vdev_geom_detach,
	closing a resource leak of geom consumers in the process.

Reviewed by:	avg
MFC after:	4 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D5974
2016-04-29 15:23:51 +00:00
..
amd64 fix missing variable in r298736 2016-04-28 09:40:24 +00:00
arm TEGRA: Add interrupt support for Tegra GPIO controller. 2016-04-28 13:00:40 +00:00
arm64 Disable ACPI on arm64 ad it has only had minimal testing and is causing 2016-04-26 14:21:39 +00:00
boot Refactor DTS files for Zynq-based SoCs 2016-04-26 23:09:47 +00:00
bsm
cam Small typos. 2016-04-28 15:18:28 +00:00
cddl Refactor vdev_geom_attach and friends to reduce code duplication 2016-04-29 15:23:51 +00:00
compat ndis(4): it's rather unrealistic to expect a size_t here. 2016-04-28 03:19:53 +00:00
conf Merge ACPICA 20160422. 2016-04-27 19:09:21 +00:00
contrib Fix build without ACPI_DEBUG. 2016-04-27 20:24:48 +00:00
crypto aesni(4): Initialize error before use 2016-04-20 03:05:32 +00:00
ddb ddb: Make use of our roundup() macro when available. 2016-04-26 01:52:35 +00:00
dev Correct some error codes to native FreeBSD ones. 2016-04-29 11:01:06 +00:00
fs sys/devfs: unsign an index to prevent signed integer overflow. 2016-04-28 02:39:43 +00:00
gdb
geom sys/geom: spelling fixes. 2016-04-28 19:26:46 +00:00
gnu Change OpenWRT imported dtsi files 2016-04-20 14:29:03 +00:00
i386 Cleanup redundant parenthesis from existing howmany()/roundup() macro uses. 2016-04-22 16:57:42 +00:00
isa isa/pnp: for pointers replace 0 with NULL. 2016-04-14 17:20:35 +00:00
kern INTRNG: Define 'INTR_IRQ_INVALID' constant and use it consistently 2016-04-28 12:04:12 +00:00
kgssapi kgssapi: Don't leak memory in error cases 2016-04-26 18:11:45 +00:00
libkern Merge ACPICA 20160422. 2016-04-27 19:09:21 +00:00
mips Add a bus_null_rescan() method that always fails with an error. 2016-04-27 17:49:42 +00:00
modules Sort SUBDIR. 2016-04-27 19:38:24 +00:00
net Complete the UDP tunneling of ICMP msgs to those protocols 2016-04-28 15:53:10 +00:00
net80211 [net80211] fix indenting. 2016-04-28 20:30:49 +00:00
netgraph sys: extend use of the howmany() macro when available. 2016-04-26 15:38:17 +00:00
netinet tcp/syncache: Set flowid and hash type properly for SYN|ACK 2016-04-29 07:23:08 +00:00
netinet6 Complete the UDP tunneling of ICMP msgs to those protocols 2016-04-28 15:53:10 +00:00
netipsec netipsec: Don't leak memory when deep copy fails 2016-04-26 23:23:44 +00:00
netnatm kernel: use our nitems() macro when it is available through param.h. 2016-04-19 23:48:27 +00:00
netpfil Make create_object callback optional and return EOPNOTSUPP when it isn't 2016-04-27 15:28:25 +00:00
netsmb Remove unused SMB_DIALECT_MAX macro. 2016-04-20 21:13:24 +00:00
nfs
nfsclient
nfsserver
nlm Remove slightly used const values that can be replaced with nitems(). 2016-04-21 15:38:28 +00:00
ofed Fix NOIP kernels to compile. 2016-04-24 15:56:05 +00:00
opencrypto
pc98 Use our nitems() macro when param.h is available. 2016-04-20 15:45:55 +00:00
powerpc Add a bus_null_rescan() method that always fails with an error. 2016-04-27 17:49:42 +00:00
riscv Rework the list of all pmaps: embed the list link into pmap. 2016-04-26 14:38:18 +00:00
rpc kgssapi(4): Fix string overrun in Kerberos principal construction 2016-04-20 04:45:23 +00:00
security sys: use our nitems() macro when param.h is available. 2016-04-21 19:40:10 +00:00
sparc64 Add a bus_null_rescan() method that always fails with an error. 2016-04-27 17:49:42 +00:00
sys INTRNG: Define 'INTR_IRQ_INVALID' constant and use it consistently 2016-04-28 12:04:12 +00:00
teken
tests
tools
ufs Add FEATURE knob for testing for UFS extended attribute kernel support 2016-04-22 08:09:27 +00:00
vm Trim redundant message. 2016-04-27 21:51:24 +00:00
x86 sys: use our roundup2/rounddown2() macros when param.h is available. 2016-04-21 19:57:40 +00:00
xdr RPC: for pointers replace 0 with NULL. 2016-04-14 17:06:37 +00:00
xen
Makefile