2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A {{
"libbe:prop1",
"libbe:prop2"},
2N/A {
"libbe:prop3",
"mountpoint"},
2N/A {
"libbe:prop5",
"libbe:prop6"}};
2N/A {
"val3",
"/foodir"},
2N/A {{
"libbe:prop1",
"libbe:prop2"},
2N/A {
"libbe:prop3",
"libbe:prop4"},
2N/A {
"libbe:prop5",
"libbe:prop6"},
2N/A {
"libbe:prop7",
"mountpoint"}};
2N/A {
"val7",
"/mydir"}};
2N/A "\ttbeadm create [-d BE_desc] [-e nonActiveBe | -i [-n]] \n" 2N/A "\t\t[-o property=value] ... [-p zpool] [beName]\n" 2N/A "\ttbeadm destroy [-fs] beName\n" 2N/A "\ttbeadm create_snap [-p policy] beName [snapshot]\n" 2N/A "\ttbeadm destroy_snap beName snapshot\n" 2N/A "\ttbeadm list [-s] [beName]\n" 2N/A "\ttbeadm mount [-s ro|rw] beName mountpoint\n" 2N/A "\ttbeadm unmount [-f] beName\n" 2N/A "\ttbeadm rename origBeName newBeName\n" 2N/A "\ttbeadm activate beName\n" 2N/A "\ttbeadm rollback beName snapshot\n");
2N/A /* Turn error printing on */ 2N/A /* Special option to test be_init() function */ 2N/A /* Initialize a nested BE. */ 2N/A /* Allow auto-naming when initializing a BE */ 2N/A "'=' for -o option\n");
2N/A "error: out of memory\n");
2N/A printf(
"ERROR: -e and -i are exclusive options\n");
2N/A * Check if obe_name is really a snapshot name. 2N/A * If so, split it out. 2N/A * Add boolean value to determine if we're initializing 2N/A * Add boolean value to determine if we're allowing 2N/A * auto-naming in case there is a BE name conflict. 2N/A * Add the default file system test values to test 2N/A * creating an initial BE. 2N/A printf(
"nvlist_add_uint16 failed for BE_ATTR_FS_NUM " 2N/A "BE_ATTR_FS_NAMES\n");
2N/A /* Add properties for the non-shared filesystems. */ 2N/A "BE_ATTR_FS_ZFS_PROPERTIES\n");
2N/A "BE_ATTR_FS_ZFS_PROPERTIES\n");
2N/A "BE_ATTR_SHARED_FS_NAMES\n");
2N/A /* Add properties for the shared filesystems. */ 2N/A "BE_ATTR_SHARED_FS_ZFS_PROPERTIES\n");
2N/A "BE_ATTR_SHARED_FS_ZFS_PROPERTIES\n");
2N/A * We requested to allow auto named BE; find out the 2N/A * name of the BE that was initialized for us. 2N/A * We requested an auto named BE; find out the 2N/A * name of the BE that was created for us and 2N/A * the auto snapshot created from the original BE. 2N/A printf(
"failed to get BE_ATTR_NEW_BE_NAME attribute\n");
2N/A printf(
"failed to get BE_ATTR_SNAP_NAME attribute\n");
2N/A printf(
"nvlist_add_string failed for BE_ATTR_NEW_BE_NAME " 2N/A "BE_ATTR_DESTROY_FLAGS.\n");
2N/A "BE name\t\tActive\tActive \tBootable Dataset\t\t\t" 2N/A " \t\t \ton boot\t\t \t\t \t \n");
2N/A "-------\t\t------\t-------\t-------- -------\t\t\t" 2N/A /* Snapshot name provided */ 2N/A * We requested an auto named snapshot; find out 2N/A * the snapshot name that was created for us. 2N/A printf(
"failed to get BE_ATTR_SNAP_NAME attribute\n");
2N/A * XXX - Need to generate a random mountpoint here; 2N/A * right now we're just exitting if one isn't supplied. 2N/A "BE_ATTR_UNMOUNT_FLAGS\n");