summaryrefslogtreecommitdiff
path: root/usr/src/lib/libzfs/common/libzfs_pool.c
diff options
context:
space:
mode:
authorlling <none@none>2006-02-24 13:20:01 -0800
committerlling <none@none>2006-02-24 13:20:01 -0800
commit441d80aa4f613b6298fc8bd3151f4be02dbf84fc (patch)
tree06bdb22d10ffebb5cc8385a789012cc7188e8f4b /usr/src/lib/libzfs/common/libzfs_pool.c
parent033f983390fa5d2b54e3e09d83ac9000d71ddaae (diff)
downloadillumos-gate-441d80aa4f613b6298fc8bd3151f4be02dbf84fc.tar.gz
6322005 support for persistent offline
Diffstat (limited to 'usr/src/lib/libzfs/common/libzfs_pool.c')
-rw-r--r--usr/src/lib/libzfs/common/libzfs_pool.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_pool.c b/usr/src/lib/libzfs/common/libzfs_pool.c
index 5f243acfc5..949b02adfd 100644
--- a/usr/src/lib/libzfs/common/libzfs_pool.c
+++ b/usr/src/lib/libzfs/common/libzfs_pool.c
@@ -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.
@@ -861,7 +860,7 @@ zpool_vdev_online(zpool_handle_t *zhp, const char *path)
* Take the specified vdev offline
*/
int
-zpool_vdev_offline(zpool_handle_t *zhp, const char *path)
+zpool_vdev_offline(zpool_handle_t *zhp, const char *path, int istmp)
{
zfs_cmd_t zc = { 0 };
char msg[1024];
@@ -870,6 +869,8 @@ zpool_vdev_offline(zpool_handle_t *zhp, const char *path)
(void) snprintf(zc.zc_prop_value, sizeof (zc.zc_prop_value),
"%s%s", path[0] == '/' ? "" : "/dev/dsk/", path);
+ zc.zc_cookie = istmp;
+
if (ioctl(zfs_fd, ZFS_IOC_VDEV_OFFLINE, &zc) == 0)
return (0);