From 441d80aa4f613b6298fc8bd3151f4be02dbf84fc Mon Sep 17 00:00:00 2001 From: lling Date: Fri, 24 Feb 2006 13:20:01 -0800 Subject: 6322005 support for persistent offline --- usr/src/lib/libzfs/common/libzfs_pool.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr/src/lib/libzfs/common/libzfs_pool.c') 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); -- cgit v1.2.3