--- a/usr/src/cmd/ztest/ztest.c Fri Feb 24 10:48:56 2006 -0800
+++ b/usr/src/cmd/ztest/ztest.c Fri Feb 24 13:20:01 2006 -0800
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -2427,7 +2426,7 @@
*/
if (zopt_maxfaults == 1 && path1[0] != '\0') {
if (ztest_random(10) < 6)
- (void) vdev_offline(spa, path1);
+ (void) vdev_offline(spa, path1, B_TRUE);
else
(void) vdev_online(spa, path1);
return;
@@ -2460,7 +2459,7 @@
*/
if (zopt_maxfaults >= 4 && path1[0] != '\0') {
if (ztest_random(10) < 6)
- (void) vdev_offline(spa, path1);
+ (void) vdev_offline(spa, path1, B_TRUE);
else
(void) vdev_online(spa, path1);
}