diff options
Diffstat (limited to 'usr/src/lib/libzfs/common/libzfs_pool.c')
-rw-r--r-- | usr/src/lib/libzfs/common/libzfs_pool.c | 9 |
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); |