fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
0a4e9518a44f226be6d39383330b5b1792d2f184gw * Common Development and Distribution License (the "License").
0a4e9518a44f226be6d39383330b5b1792d2f184gw * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens * information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER END
dcba9f3fbefe06ad19972b4de0351924601e5767George Wilson * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Use is subject to license terms.
738f37bc3dcd61e8a893af0f2d466d76690b70ecGeorge Wilson * Copyright (c) 2012, 2014 by Delphix. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The 'missing' vdev is a special vdev type used only during import. It
fa9e4066f08beec538e775443c5be79dd423fcabahrens * signifies a placeholder in the root vdev for some vdev that we know is
fa9e4066f08beec538e775443c5be79dd423fcabahrens * missing. We pass it down to the kernel to allow the rest of the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * configuration to parsed and an attempt made to open all available devices.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Because its GUID is always 0, we know that the guid sum will mismatch and we
fa9e4066f08beec538e775443c5be79dd423fcabahrens * won't be able to open the pool anyway.
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* ARGSUSED */
4263d13f00c9691fa14620eff82abef795be0693George Wilsonvdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize,
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Really this should just fail. But then the root vdev will be in the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * faulted state with VDEV_AUX_NO_REPLICAS, when what we really want is
fa9e4066f08beec538e775443c5be79dd423fcabahrens * VDEV_AUX_BAD_GUID_SUM. So we pretend to succeed, knowing that we
fa9e4066f08beec538e775443c5be79dd423fcabahrens * will fail the GUID sum check before ever trying to open the pool.
fa9e4066f08beec538e775443c5be79dd423fcabahrens return (0);
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* ARGSUSED */
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* ARGSUSED */
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* ARGSUSED */