zfs_share_002_pos.ksh revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
286N/A# The contents of this file are subject to the terms of the 286N/A# Common Development and Distribution License (the "License"). 286N/A# You may not use this file except in compliance with the License. 286N/A# See the License for the specific language governing permissions 286N/A# and limitations under the License. 286N/A# When distributing Covered Code, include this CDDL HEADER in each 286N/A# If applicable, add the following below this CDDL HEADER, with the 286N/A# fields enclosed by brackets "[]" replaced with your own identifying 286N/A# information: Portions Copyright [yyyy] [name of copyright owner] 286N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 286N/A# Use is subject to license terms. 286N/A# Copyright (c) 2012 by Delphix. All rights reserved. 286N/A# Verify that "zfs share" with a non-existent file system fails. 286N/A# 1. Make sure the NONEXISTFSNAME ZFS file system is not in 'zfs list'. 286N/A# 2. Invoke 'zfs share <file system>'. 286N/A# 3. Verify that share fails 286N/A "failed with an unexpected return code of $ret."