vdev.c (1e9bd7ec) | vdev.c (1a902ef8) |
---|---|
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 --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | 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 --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. | |
25 * Copyright (c) 2011, 2014 by Delphix. All rights reserved. | 24 * Copyright (c) 2011, 2014 by Delphix. All rights reserved. |
25 * Copyright 2015 Nexenta Systems, Inc. All rights reserved. |
|
26 */ 27 28#include <sys/zfs_context.h> 29#include <sys/fm/fs/zfs.h> 30#include <sys/spa.h> 31#include <sys/spa_impl.h> 32#include <sys/dmu.h> 33#include <sys/dmu_tx.h> --- 3165 unchanged lines hidden (view full) --- 3199 3200 if (strcmp(vdev_type, VDEV_TYPE_ROOT) == 0 && 3201 vd->vdev_children > 1) { 3202 return (B_FALSE); 3203 } else if (strcmp(vdev_type, VDEV_TYPE_RAIDZ) == 0 || 3204 strcmp(vdev_type, VDEV_TYPE_MISSING) == 0) { 3205 return (B_FALSE); 3206 } | 26 */ 27 28#include <sys/zfs_context.h> 29#include <sys/fm/fs/zfs.h> 30#include <sys/spa.h> 31#include <sys/spa_impl.h> 32#include <sys/dmu.h> 33#include <sys/dmu_tx.h> --- 3165 unchanged lines hidden (view full) --- 3199 3200 if (strcmp(vdev_type, VDEV_TYPE_ROOT) == 0 && 3201 vd->vdev_children > 1) { 3202 return (B_FALSE); 3203 } else if (strcmp(vdev_type, VDEV_TYPE_RAIDZ) == 0 || 3204 strcmp(vdev_type, VDEV_TYPE_MISSING) == 0) { 3205 return (B_FALSE); 3206 } |
3207 } else if (vd->vdev_wholedisk == 1) { 3208 return (B_FALSE); | |
3209 } 3210 3211 for (int c = 0; c < vd->vdev_children; c++) { 3212 if (!vdev_is_bootable(vd->vdev_child[c])) 3213 return (B_FALSE); 3214 } 3215 return (B_TRUE); 3216} --- 120 unchanged lines hidden --- | 3207 } 3208 3209 for (int c = 0; c < vd->vdev_children; c++) { 3210 if (!vdev_is_bootable(vd->vdev_child[c])) 3211 return (B_FALSE); 3212 } 3213 return (B_TRUE); 3214} --- 120 unchanged lines hidden --- |