freebsd-skq/sys
Pawel Jakub Dawidek 58804a192e The same code is used to import and to create pool.
The order of operations is the following:
1. Try to open vdev by remembered path and guid.
2. If 1 failed, try to find vdev which guid matches and ignore the path.
3. If 2 failed this means either that the vdev we're looking for is gone
   or that pool is being created and vdev doesn't contain proper guid yet.
   To be able to handle pool creation we open vdev by path anyway.

Because of 3 it is possible that we open wrong vdev on import which can lead to
confusions.

The solution for this is to check spa_load_state. On pool creation it will be
equal to SPA_LOAD_NONE and we can open vdev only by path immediately and if it
is not equal to SPA_LOAD_NONE we first open by path+guid and when that fails,
we open by guid. We no longer open wrong vdev on import.

MFC after:	2 weeks
2010-03-19 20:14:27 +00:00
..
amd64 pmap amd64/i386: fix a typo in a comment 2010-03-19 14:48:32 +00:00
arm fix type in comment 2010-03-12 22:39:35 +00:00
boot BWCT boards can have 128MB SDRAM. 2010-03-09 00:50:58 +00:00
bsm Add audit events for process descriptor system calls, which will appear in 2009-09-29 21:25:59 +00:00
cam We actually can generate a host number. 2010-03-17 18:53:58 +00:00
cddl The same code is used to import and to create pool. 2010-03-19 20:14:27 +00:00
compat Regen 2010-03-19 11:14:37 +00:00
conf Provide groundwork for 32-bit binary compatibility on non-x86 platforms, 2010-03-11 14:49:06 +00:00
contrib Integrate OpenBSD rev 1.5 of x86emu.c. 2010-03-09 22:42:24 +00:00
crypto
ddb Add a space before printing 'thread pid ...' to match the space before 2010-02-12 19:52:51 +00:00
dev - Added support for 5709S/5716S PHYs. 2010-03-18 21:00:53 +00:00
fs Fix a long standing regression of readdir(3) in fdescfs(5) introduced 2010-03-16 19:59:14 +00:00
gdb
geom Simplify loops. 2010-03-18 13:11:43 +00:00
gnu Bring in the ext2fs work done by Aditya Sarawgi during and after Google Summer 2010-01-14 14:30:54 +00:00
i386 Back out revision 205307. 2010-03-19 16:09:57 +00:00
ia64 Revamp the interrupt code based on the previous commit: 2010-03-17 00:37:15 +00:00
isa Introduce the new kernel sub-tree x86 which should contain all the code 2010-02-25 14:13:39 +00:00
kern Split eventhandler_register() into an internal part and a wrapper function 2010-03-19 19:51:03 +00:00
kgssapi
libkern Merge from head at r201628. 2010-01-06 05:58:07 +00:00
mips Go ahead and add USB support to the generic config. 2010-03-14 19:04:42 +00:00
modules make UMA the default allocator for ZFS buffers - this avoids 2010-03-13 21:53:48 +00:00
net Split eventhandler_register() into an internal part and a wrapper function 2010-03-19 19:51:03 +00:00
net80211 Unbreak build by removing a code bit that is only related to other code 2010-03-18 15:28:17 +00:00
netatalk
netgraph Now fix functionality of 'netstat -f netgraph' that hasn't worked 2010-03-12 15:04:59 +00:00
netinet Add pcb reference counting to the pcblist sysctl handler functions 2010-03-17 18:28:27 +00:00
netinet6 The proper fix for the delayed SCTP checksum is to 2010-03-12 22:58:52 +00:00
netipsec Correct typo in comment. 2010-02-18 22:34:29 +00:00
netipx
netnatm
netncp
netsmb Don't print out a message on loading a module. 'kldload -v' and 'kldstat 2009-09-10 18:33:08 +00:00
nfs Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
nfsclient Simplify code a bit. 2010-02-18 22:10:55 +00:00
nfsserver Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
nlm Handle GRANTED_RES messages more gracefully: Send along a grant cookie 2009-10-07 19:50:14 +00:00
opencrypto Add comments trying to explain what bad things happen here, i.e. 2010-01-09 15:43:47 +00:00
pc98 Remove COMPAT_43TTY from stock kernel configuration files. 2010-03-13 09:21:00 +00:00
pci Add initial support for RTL8103E PCIe fastethernet. 2010-01-27 17:49:27 +00:00
powerpc Fix two small bugs. The PowerPC 970 does not support non-coherent memory 2010-03-15 00:27:40 +00:00
rpc Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic 2010-01-12 07:49:34 +00:00
security Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-style 2010-03-02 15:05:48 +00:00
sparc64 o Add support for UltraSparc-IV+: 2010-03-17 22:45:09 +00:00
sun4v Remove COMPAT_43TTY from stock kernel configuration files. 2010-03-13 09:21:00 +00:00
sys Split eventhandler_register() into an internal part and a wrapper function 2010-03-19 19:51:03 +00:00
teken Fall back to ASCII codepoints for box drawing. 2010-02-08 09:16:59 +00:00
tools Output a comment on top of each generated file explaining where it came 2009-10-25 09:48:21 +00:00
ufs When ffs_realloccg() failed to allocate bigger fragment and, because 2010-02-13 10:34:50 +00:00
vm turn 205266 in to a no-op until the problem can be properly diagnosed 2010-03-18 20:30:25 +00:00
x86 Improving the clocks auto-tunning by firstly checking if the atrtc may be 2010-03-03 17:13:29 +00:00
xdr
xen don't hold spin lock across free 2010-02-21 01:12:18 +00:00
Makefile