zpool_set_003_neg.ksh revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# CDDL HEADER START
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# The contents of this file are subject to the terms of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Common Development and Distribution License (the "License").
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# You may not use this file except in compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# See the License for the specific language governing permissions
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# If applicable, add the following below this CDDL HEADER, with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# CDDL HEADER END
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Use is subject to license terms.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Copyright (c) 2012 by Delphix. All rights reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# DESCRIPTION:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# zpool set cannot set a readonly property
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# 1. Create a pool
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# 2. Verify that we can't set readonly properties on that pool
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterset -A props "available" "capacity" "guid" "health" "size" "used"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterset -A vals "100" "10" "12345" "HEALTHY" "10" "10"