Deleted Added
full compact
vdev_geom.c (208682) vdev_geom.c (209962)
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

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

452 */
453 cp = vdev_geom_open_by_guid(vd);
454 }
455 }
456
457 if (cp == NULL) {
458 ZFS_LOG(1, "Provider %s not found.", vd->vdev_path);
459 error = ENOENT;
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

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

452 */
453 cp = vdev_geom_open_by_guid(vd);
454 }
455 }
456
457 if (cp == NULL) {
458 ZFS_LOG(1, "Provider %s not found.", vd->vdev_path);
459 error = ENOENT;
460 } else if (cp->acw == 0 && (spa_mode & FWRITE) != 0) {
460 } else if (cp->acw == 0 && (spa_mode(vd->vdev_spa) & FWRITE) != 0) {
461 int i;
462
463 g_topology_lock();
464 for (i = 0; i < 5; i++) {
465 error = g_access(cp, 0, 1, 0);
466 if (error == 0)
467 break;
468 g_topology_unlock();

--- 159 unchanged lines hidden ---
461 int i;
462
463 g_topology_lock();
464 for (i = 0; i < 5; i++) {
465 error = g_access(cp, 0, 1, 0);
466 if (error == 0)
467 break;
468 g_topology_unlock();

--- 159 unchanged lines hidden ---