Deleted Added
full compact
vdev_missing.c (339034) vdev_missing.c (339111)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 10 unchanged lines hidden (view full) ---

19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 10 unchanged lines hidden (view full) ---

19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26/*
27 * Copyright (c) 2012, 2014 by Delphix. All rights reserved.
27 * Copyright (c) 2012, 2016 by Delphix. All rights reserved.
28 */
29
30/*
31 * The 'missing' vdev is a special vdev type used only during import. It
32 * signifies a placeholder in the root vdev for some vdev that we know is
33 * missing. We pass it down to the kernel to allow the rest of the
34 * configuration to parsed and an attempt made to open all available devices.
35 * Because its GUID is always 0, we know that the guid sum will mismatch and we

--- 50 unchanged lines hidden (view full) ---

86 vdev_default_asize,
87 vdev_missing_io_start,
88 vdev_missing_io_done,
89 NULL,
90 NULL,
91 NULL,
92 NULL,
93 NULL,
28 */
29
30/*
31 * The 'missing' vdev is a special vdev type used only during import. It
32 * signifies a placeholder in the root vdev for some vdev that we know is
33 * missing. We pass it down to the kernel to allow the rest of the
34 * configuration to parsed and an attempt made to open all available devices.
35 * Because its GUID is always 0, we know that the guid sum will mismatch and we

--- 50 unchanged lines hidden (view full) ---

86 vdev_default_asize,
87 vdev_missing_io_start,
88 vdev_missing_io_done,
89 NULL,
90 NULL,
91 NULL,
92 NULL,
93 NULL,
94 NULL,
94 VDEV_TYPE_MISSING, /* name of this vdev type */
95 B_TRUE /* leaf vdev */
96};
97
98vdev_ops_t vdev_hole_ops = {
99 vdev_missing_open,
100 vdev_missing_close,
101 vdev_default_asize,
102 vdev_missing_io_start,
103 vdev_missing_io_done,
104 NULL,
105 NULL,
106 NULL,
107 NULL,
108 NULL,
95 VDEV_TYPE_MISSING, /* name of this vdev type */
96 B_TRUE /* leaf vdev */
97};
98
99vdev_ops_t vdev_hole_ops = {
100 vdev_missing_open,
101 vdev_missing_close,
102 vdev_default_asize,
103 vdev_missing_io_start,
104 vdev_missing_io_done,
105 NULL,
106 NULL,
107 NULL,
108 NULL,
109 NULL,
110 NULL,
109 VDEV_TYPE_HOLE, /* name of this vdev type */
110 B_TRUE /* leaf vdev */
111};
111 VDEV_TYPE_HOLE, /* name of this vdev type */
112 B_TRUE /* leaf vdev */
113};